Skip to content

Commit

Permalink
Modernize gem. (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jun 30, 2023
1 parent 8214825 commit 329c2f4
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- macos

ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
- macos

ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
Expand Down
3 changes: 3 additions & 0 deletions config/sus.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2023, by Samuel Williams.

require 'covered/sus'
include Covered::Sus
7 changes: 5 additions & 2 deletions gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

gemspec

gem "stringio", git: "https://github.com/ruby/stringio"

group :maintenance, optional: true do
gem "bake-modernize"
gem "bake-gem"
Expand All @@ -18,6 +16,11 @@
end

group :test do
gem "covered"
gem "sus"

gem "bake-test"
gem "bake-test-external"

gem "stringio", "~> 3.0.7"
end
2 changes: 1 addition & 1 deletion lib/protocol/http1/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2022, by Samuel Williams.
# Copyright, 2019-2023, by Samuel Williams.

module Protocol
module HTTP1
Expand Down
6 changes: 1 addition & 5 deletions protocol-http1.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ Gem::Specification.new do |spec|

spec.files = Dir.glob(['{lib}/**/*', '*.md'], File::FNM_DOTMATCH, base: __dir__)

spec.required_ruby_version = ">= 2.4"
spec.required_ruby_version = ">= 2.7.6b"

spec.add_dependency "protocol-http", "~> 0.22"

spec.add_development_dependency "bundler"
spec.add_development_dependency "covered"
spec.add_development_dependency "sus"
end
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,11 @@ We welcome contributions to this project.
3. Commit your changes (`git commit -am 'Add some feature'`).
4. Push to the branch (`git push origin my-new-feature`).
5. Create new Pull Request.

### Developer Certificate of Origin

This project uses the [Developer Certificate of Origin](https://developercertificate.org/). All contributors to this project must agree to this document to have their contributions accepted.

### Contributor Covenant

This project is governed by [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
2 changes: 1 addition & 1 deletion test/protocol/http1/body/chunked.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2023, by Samuel Williams.
# Copyright, 2019-2023, by Samuel Williams.

require 'protocol/http1/body/chunked'
require 'connection_context'
Expand Down
2 changes: 1 addition & 1 deletion test/protocol/http1/body/fixed.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2023, by Samuel Williams.
# Copyright, 2019-2023, by Samuel Williams.

require 'protocol/http1/body/fixed'

Expand Down
2 changes: 1 addition & 1 deletion test/protocol/http1/body/remainder.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2023, by Samuel Williams.
# Copyright, 2019-2023, by Samuel Williams.

require 'protocol/http1/body/remainder'

Expand Down

0 comments on commit 329c2f4

Please sign in to comment.