From 3514b72a5e31402057178ce38c6abf6bc4d192ac Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sat, 9 Dec 2023 20:22:31 +1300 Subject: [PATCH] Modernize gem. --- .github/workflows/coverage.yaml | 2 +- .github/workflows/test-external.yaml | 1 - .github/workflows/test.yaml | 1 - .gitignore | 2 +- gems.rb | 11 ++++++++++- lib/protocol/rack/adapter/generic.rb | 2 +- lib/protocol/rack/input.rb | 2 +- lib/protocol/rack/version.rb | 2 +- protocol-rack.gemspec | 9 +-------- readme.md | 8 ++++++++ test/protocol/rack/adapter/generic.rb | 2 +- test/protocol/rack/input.rb | 2 +- 12 files changed, 26 insertions(+), 18 deletions(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 079c288..575fbac 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -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 diff --git a/.github/workflows/test-external.yaml b/.github/workflows/test-external.yaml index 214149c..cbff675 100644 --- a/.github/workflows/test-external.yaml +++ b/.github/workflows/test-external.yaml @@ -20,7 +20,6 @@ jobs: - macos ruby: - - "2.7" - "3.0" - "3.1" - "3.2" diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f799df4..e3c6a36 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -23,7 +23,6 @@ jobs: - macos ruby: - - "2.7" - "3.0" - "3.1" - "3.2" diff --git a/.gitignore b/.gitignore index 6a0e22c..cbd5648 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ /.covered.db /external -*.lock \ No newline at end of file +*.lock diff --git a/gems.rb b/gems.rb index 0b35f41..d8d300f 100644 --- a/gems.rb +++ b/gems.rb @@ -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" @@ -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 diff --git a/lib/protocol/rack/adapter/generic.rb b/lib/protocol/rack/adapter/generic.rb index 65e973b..d146189 100644 --- a/lib/protocol/rack/adapter/generic.rb +++ b/lib/protocol/rack/adapter/generic.rb @@ -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' diff --git a/lib/protocol/rack/input.rb b/lib/protocol/rack/input.rb index 8cb2040..2ff819c 100644 --- a/lib/protocol/rack/input.rb +++ b/lib/protocol/rack/input.rb @@ -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' diff --git a/lib/protocol/rack/version.rb b/lib/protocol/rack/version.rb index ad23875..86629ff 100644 --- a/lib/protocol/rack/version.rb +++ b/lib/protocol/rack/version.rb @@ -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 diff --git a/protocol-rack.gemspec b/protocol-rack.gemspec index cf54f7d..0f646f3 100644 --- a/protocol-rack.gemspec +++ b/protocol-rack.gemspec @@ -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 diff --git a/readme.md b/readme.md index a74c431..0a37595 100644 --- a/readme.md +++ b/readme.md @@ -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. diff --git a/test/protocol/rack/adapter/generic.rb b/test/protocol/rack/adapter/generic.rb index 1ce792c..98cc354 100644 --- a/test/protocol/rack/adapter/generic.rb +++ b/test/protocol/rack/adapter/generic.rb @@ -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' diff --git a/test/protocol/rack/input.rb b/test/protocol/rack/input.rb index a28f518..e3bf113 100644 --- a/test/protocol/rack/input.rb +++ b/test/protocol/rack/input.rb @@ -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'