Skip to content

Commit 3356de8

Browse files
committed
Modernize code.
1 parent 5dca581 commit 3356de8

40 files changed

+45
-43
lines changed

.github/workflows/documentation-coverage.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: ruby/setup-ruby@v1
1919
with:
20-
ruby-version: "3.3"
20+
ruby-version: "3.4"
2121
bundler-cache: true
2222

2323
- name: Validate coverage

.github/workflows/documentation.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: ruby/setup-ruby@v1
3131
with:
32-
ruby-version: "3.3"
32+
ruby-version: "3.4"
3333
bundler-cache: true
3434

3535
- name: Installing packages

.github/workflows/test-coverage.yaml

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

2323
ruby:
24-
- "3.3"
24+
- "3.4"
2525

2626
steps:
2727
- uses: actions/checkout@v4
@@ -49,7 +49,7 @@ jobs:
4949
- uses: actions/checkout@v4
5050
- uses: ruby/setup-ruby@v1
5151
with:
52-
ruby-version: "3.3"
52+
ruby-version: "3.4"
5353
bundler-cache: true
5454

5555
- uses: actions/download-artifact@v4

.github/workflows/test-external.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- "3.1"
2424
- "3.2"
2525
- "3.3"
26+
- "3.4"
2627

2728
steps:
2829
- uses: actions/checkout@v4

.github/workflows/test.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- "3.1"
2525
- "3.2"
2626
- "3.3"
27+
- "3.4"
2728

2829
experimental: [false]
2930

benchmark/string.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, 2022-2023, by Samuel Williams.
4+
# Copyright, 2022-2025, by Samuel Williams.
55

66
def generator
77
100000.times do |i|

config/sus.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, 2023, by Samuel Williams.
4+
# Copyright, 2023-2025, by Samuel Williams.
55

66
require "covered/sus"
77
include Covered::Sus

lib/protocol/http/accept_encoding.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-2023, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
55

66
require_relative "middleware"
77

lib/protocol/http/body/head.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, 2020-2023, by Samuel Williams.
4+
# Copyright, 2020-2025, by Samuel Williams.
55

66
require_relative "readable"
77

lib/protocol/http/content_encoding.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-2023, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
55

66
require_relative "middleware"
77

lib/protocol/http/cookie.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-2023, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
55
# Copyright, 2022, by Herrick Fang.
66

77
require_relative "url"

lib/protocol/http/header/cache_control.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, 2020-2023, by Samuel Williams.
4+
# Copyright, 2020-2025, by Samuel Williams.
55
# Copyright, 2023, by Thomas Morgan.
66

77
require_relative "split"

lib/protocol/http/header/connection.rb

+2-2
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
# Copyright, 2024, by Thomas Morgan.
66

77
require_relative "split"
@@ -53,4 +53,4 @@ def upgrade?
5353
end
5454
end
5555
end
56-
end
56+
end

lib/protocol/http/header/cookie.rb

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

66
require_relative "multiple"
77
require_relative "../cookie"
@@ -32,4 +32,4 @@ class SetCookie < Cookie
3232
end
3333
end
3434
end
35-
end
35+
end

lib/protocol/http/header/etag.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, 2020-2023, by Samuel Williams.
4+
# Copyright, 2020-2025, by Samuel Williams.
55

66
module Protocol
77
module HTTP

lib/protocol/http/header/etags.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, 2020-2023, by Samuel Williams.
4+
# Copyright, 2020-2025, by Samuel Williams.
55
# Copyright, 2023, by Thomas Morgan.
66

77
require_relative "split"

lib/protocol/http/header/multiple.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-2023, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
55

66
module Protocol
77
module HTTP

lib/protocol/http/header/split.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-2023, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
55

66
module Protocol
77
module HTTP

lib/protocol/http/header/vary.rb

+2-2
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, 2020-2023, by Samuel Williams.
4+
# Copyright, 2020-2025, by Samuel Williams.
55

66
require_relative "split"
77

@@ -28,4 +28,4 @@ def << value
2828
end
2929
end
3030
end
31-
end
31+
end

lib/protocol/http/middleware.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-2023, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
55

66
require_relative "methods"
77
require_relative "headers"

lib/protocol/http/peer.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, 2017-2024, by Samuel Williams.
4+
# Copyright, 2024-2025, by Samuel Williams.
55

66
module Protocol
77
module HTTP

lib/protocol/http/reference.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-2023, by Samuel Williams.
4+
# Copyright, 2018-2025, by Samuel Williams.
55

66
require_relative "url"
77

license.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright, 2018-2024, by Samuel Williams.
3+
Copyright, 2018-2025, by Samuel Williams.
44
Copyright, 2019, by Yuta Iwama.
55
Copyright, 2020, by Olle Jonsson.
66
Copyright, 2020, by Bryan Powell.

test/protocol/http/body/head.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, 2023, by Samuel Williams.
4+
# Copyright, 2023-2025, by Samuel Williams.
55

66
require "protocol/http/body/head"
77
require "protocol/http/body/buffered"

test/protocol/http/content_encoding.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-2023, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
55

66
require "protocol/http/accept_encoding"
77
require "protocol/http/content_encoding"

test/protocol/http/header/authorization.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-2023, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
55

66
require "protocol/http/header/authorization"
77
require "protocol/http/headers"

test/protocol/http/header/cache_control.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, 2023, by Samuel Williams.
4+
# Copyright, 2023-2025, by Samuel Williams.
55
# Copyright, 2023, by Thomas Morgan.
66

77
require "protocol/http/header/cache_control"

test/protocol/http/header/cookie.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, 2021-2023, by Samuel Williams.
4+
# Copyright, 2021-2025, by Samuel Williams.
55
# Copyright, 2022, by Herrick Fang.
66

77
require "protocol/http/header/cookie"

test/protocol/http/header/date.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, 2023, by Samuel Williams.
4+
# Copyright, 2023-2025, by Samuel Williams.
55

66
require "protocol/http/header/date"
77

test/protocol/http/header/etag.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, 2023, by Samuel Williams.
4+
# Copyright, 2023-2025, by Samuel Williams.
55

66
require "protocol/http/header/etag"
77

test/protocol/http/header/etags.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, 2020-2023, by Samuel Williams.
4+
# Copyright, 2020-2025, by Samuel Williams.
55
# Copyright, 2023, by Thomas Morgan.
66

77
require "protocol/http/header/etags"

test/protocol/http/header/multiple.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, 2020-2023, by Samuel Williams.
4+
# Copyright, 2020-2025, by Samuel Williams.
55

66
require "protocol/http/header/multiple"
77

test/protocol/http/header/vary.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, 2023, by Samuel Williams.
4+
# Copyright, 2023-2025, by Samuel Williams.
55

66
require "protocol/http/header/vary"
77

test/protocol/http/headers.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-2023, by Samuel Williams.
4+
# Copyright, 2018-2025, by Samuel Williams.
55

66
require "protocol/http/headers"
77
require "protocol/http/cookie"

test/protocol/http/headers/merged.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-2023, by Samuel Williams.
4+
# Copyright, 2018-2025, by Samuel Williams.
55

66
require "protocol/http/headers"
77

test/protocol/http/http.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-2023, by Samuel Williams.
4+
# Copyright, 2018-2025, by Samuel Williams.
55

66
require "protocol/http"
77

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

66
require "protocol/http/methods"
77

test/protocol/http/middleware.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-2023, by Samuel Williams.
4+
# Copyright, 2019-2025, by Samuel Williams.
55

66
require "protocol/http/middleware"
77

test/protocol/http/peer.rb

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

66
require "protocol/http/peer"
77
require "socket"
@@ -17,4 +17,4 @@
1717
address: be_equal(address),
1818
)
1919
end
20-
end
20+
end

test/protocol/http/reference.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-2023, by Samuel Williams.
4+
# Copyright, 2018-2025, by Samuel Williams.
55

66
require "protocol/http/reference"
77

0 commit comments

Comments
 (0)