Skip to content

Commit

Permalink
Modernize gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Dec 9, 2023
1 parent 98b6648 commit c21055c
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
ruby-version: "3.2"
bundler-cache: true

- uses: actions/download-artifact@v3
Expand Down
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 @@ -23,7 +23,6 @@ jobs:
- macos

ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
/.covered.db
/external

*.lock
*.lock
2 changes: 1 addition & 1 deletion config/external.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
falcon:
url: https://github.com/socketry/falcon
command: bundle exec rspec
command: bundle exec bake test
11 changes: 10 additions & 1 deletion gems.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, 2022, by Samuel Williams.
# Copyright, 2022-2023, by Samuel Williams.

source "https://rubygems.org"

Expand All @@ -13,3 +13,12 @@

gem 'utopia-project'
end

group :test do
gem "sus", "~> 0.12"
gem "covered", "~> 0.16"
gem "sus-fixtures-async-http", "~> 0.1"

gem "bake-test", "~> 0.1"
gem "bake-test-external", "~> 0.1"
end
2 changes: 1 addition & 1 deletion lib/protocol/rack/adapter/generic.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, 2022, by Samuel Williams.
# Copyright, 2022-2023, by Samuel Williams.

require 'console'

Expand Down
2 changes: 1 addition & 1 deletion lib/protocol/rack/input.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, 2022, by Samuel Williams.
# Copyright, 2022-2023, by Samuel Williams.
# Copyright, 2023, by Genki Takiuchi.

require 'async/io/buffer'
Expand Down
2 changes: 1 addition & 1 deletion lib/protocol/rack/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, 2022, by Samuel Williams.
# Copyright, 2022-2023, by Samuel Williams.

module Protocol
module Rack
Expand Down
9 changes: 1 addition & 8 deletions protocol-rack.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,8 @@ Gem::Specification.new do |spec|

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

spec.required_ruby_version = ">= 2.5"
spec.required_ruby_version = ">= 3.0"

spec.add_dependency "protocol-http", "~> 0.23"
spec.add_dependency "rack", ">= 1.0"

spec.add_development_dependency "async-http", "~> 0.59"
spec.add_development_dependency "bake-test", "~> 0.1"
spec.add_development_dependency "bake-test-external", "~> 0.1"
spec.add_development_dependency "covered", "~> 0.16"
spec.add_development_dependency "sus", "~> 0.12"
spec.add_development_dependency "sus-fixtures-async-http", "~> 0.1"
end
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ We welcome contributions to this project.
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.

## See Also

- [protocol-http](https://github.com/socketry/protocol-http) — General abstractions for HTTP client/server implementations.
Expand Down
2 changes: 1 addition & 1 deletion test/protocol/rack/adapter/generic.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, 2022, by Samuel Williams.
# Copyright, 2022-2023, by Samuel Williams.

require 'protocol/rack/adapter/generic'
require 'protocol/http/request'
Expand Down
2 changes: 1 addition & 1 deletion test/protocol/rack/input.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, 2022, by Samuel Williams.
# Copyright, 2022-2023, by Samuel Williams.
# Copyright, 2023, by Genki Takiuchi.

require 'protocol/rack/input'
Expand Down

0 comments on commit c21055c

Please sign in to comment.