Skip to content

Commit e19529e

Browse files
committed
Modernize code + drop support for Ruby v3.1.
1 parent 8160d0f commit e19529e

File tree

11 files changed

+14
-9
lines changed

11 files changed

+14
-9
lines changed

.github/workflows/test-external.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- macos
2121

2222
ruby:
23-
- "3.1"
2423
- "3.2"
2524
- "3.3"
2625
- "3.4"

.github/workflows/test.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- macos
2222

2323
ruby:
24-
- "3.1"
2524
- "3.2"
2625
- "3.3"
2726
- "3.4"

.rubocop.yml

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ Layout/EmptyLinesAroundClassBody:
4545
Layout/EmptyLinesAroundModuleBody:
4646
Enabled: true
4747

48+
Layout/EmptyLineAfterMagicComment:
49+
Enabled: true
50+
4851
Style/FrozenStringLiteralComment:
4952
Enabled: true
5053

lib/protocol/http/body/buffered.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2019-2024, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
55
# Copyright, 2020, by Bryan Powell.
6+
# Copyright, 2025, by William T. Nelson.
67

78
require_relative "readable"
89

lib/protocol/http/body/head.rb

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Released under the MIT License.
44
# Copyright, 2020-2025, by Samuel Williams.
5+
# Copyright, 2025, by William T. Nelson.
56

67
require_relative "readable"
78

lib/protocol/http/body/rewindable.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2019-2024, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
5+
# Copyright, 2025, by William T. Nelson.
56

67
require_relative "wrapper"
78
require_relative "buffered"

lib/protocol/http/methods.rb

+1-1
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, 2018-2024, by Samuel Williams.
4+
# Copyright, 2018-2025, by Samuel Williams.
55

66
module Protocol
77
module HTTP

lib/protocol/http/request.rb

+1-1
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-2024, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
55

66
require_relative "body/buffered"
77
require_relative "body/reader"

lib/protocol/http/version.rb

+1-1
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, 2018-2024, by Samuel Williams.
4+
# Copyright, 2018-2025, by Samuel Williams.
55

66
module Protocol
77
module HTTP

license.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Copyright, 2023, by Genki Takiuchi.
1111
Copyright, 2023-2024, by Thomas Morgan.
1212
Copyright, 2023, by Marcelo Junior.
1313
Copyright, 2024, by Earlopain.
14+
Copyright, 2025, by William T. Nelson.
1415

1516
Permission is hereby granted, free of charge, to any person obtaining a copy
1617
of this software and associated documentation files (the "Software"), to deal

protocol-http.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
77
spec.version = Protocol::HTTP::VERSION
88

99
spec.summary = "Provides abstractions to handle HTTP protocols."
10-
spec.authors = ["Samuel Williams", "Thomas Morgan", "Bruno Sutic", "Herrick Fang", "Bryan Powell", "Dan Olson", "Earlopain", "Genki Takiuchi", "Marcelo Junior", "Olle Jonsson", "Yuta Iwama"]
10+
spec.authors = ["Samuel Williams", "Thomas Morgan", "Bruno Sutic", "Herrick Fang", "Bryan Powell", "Dan Olson", "Earlopain", "Genki Takiuchi", "Marcelo Junior", "Olle Jonsson", "William T. Nelson", "Yuta Iwama"]
1111
spec.license = "MIT"
1212

1313
spec.cert_chain = ["release.cert"]
@@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
2222

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

25-
spec.required_ruby_version = ">= 3.1"
25+
spec.required_ruby_version = ">= 3.2"
2626
end

0 commit comments

Comments
 (0)