Skip to content

Commit 329c2f4

Browse files
authored
Modernize gem. (#19)
1 parent 8214825 commit 329c2f4

File tree

10 files changed

+21
-13
lines changed

10 files changed

+21
-13
lines changed

.github/workflows/test-external.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- macos
2121

2222
ruby:
23-
- "2.7"
2423
- "3.0"
2524
- "3.1"
2625
- "3.2"

.github/workflows/test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- macos
2222

2323
ruby:
24-
- "2.7"
2524
- "3.0"
2625
- "3.1"
2726
- "3.2"

config/sus.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# frozen_string_literal: true
22

3+
# Released under the MIT License.
4+
# Copyright, 2023, by Samuel Williams.
5+
36
require 'covered/sus'
47
include Covered::Sus

gems.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
gemspec
99

10-
gem "stringio", git: "https://github.com/ruby/stringio"
11-
1210
group :maintenance, optional: true do
1311
gem "bake-modernize"
1412
gem "bake-gem"
@@ -18,6 +16,11 @@
1816
end
1917

2018
group :test do
19+
gem "covered"
20+
gem "sus"
21+
2122
gem "bake-test"
2223
gem "bake-test-external"
24+
25+
gem "stringio", "~> 3.0.7"
2326
end

lib/protocol/http1/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

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

66
module Protocol
77
module HTTP1

protocol-http1.gemspec

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ Gem::Specification.new do |spec|
1717

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

20-
spec.required_ruby_version = ">= 2.4"
20+
spec.required_ruby_version = ">= 2.7.6b"
2121

2222
spec.add_dependency "protocol-http", "~> 0.22"
23-
24-
spec.add_development_dependency "bundler"
25-
spec.add_development_dependency "covered"
26-
spec.add_development_dependency "sus"
2723
end

readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,11 @@ We welcome contributions to this project.
6868
3. Commit your changes (`git commit -am 'Add some feature'`).
6969
4. Push to the branch (`git push origin my-new-feature`).
7070
5. Create new Pull Request.
71+
72+
### Developer Certificate of Origin
73+
74+
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.
75+
76+
### Contributor Covenant
77+
78+
This project is governed by [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.

test/protocol/http1/body/chunked.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2023, by Samuel Williams.
4+
# Copyright, 2019-2023, by Samuel Williams.
55

66
require 'protocol/http1/body/chunked'
77
require 'connection_context'

test/protocol/http1/body/fixed.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2023, by Samuel Williams.
4+
# Copyright, 2019-2023, by Samuel Williams.
55

66
require 'protocol/http1/body/fixed'
77

test/protocol/http1/body/remainder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2023, by Samuel Williams.
4+
# Copyright, 2019-2023, by Samuel Williams.
55

66
require 'protocol/http1/body/remainder'
77

0 commit comments

Comments
 (0)