Skip to content

Commit f9e5986

Browse files
committed
Modernize code.
1 parent 714ed4a commit f9e5986

File tree

13 files changed

+15
-13
lines changed

13 files changed

+15
-13
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
@@ -26,6 +26,7 @@ jobs:
2626
- "3.1"
2727
- "3.2"
2828
- "3.3"
29+
- "3.4"
2930

3031
experimental: [false]
3132

async-http.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ Gem::Specification.new do |spec|
2828
spec.add_dependency "async-pool", "~> 0.9"
2929
spec.add_dependency "io-endpoint", "~> 0.14"
3030
spec.add_dependency "io-stream", "~> 0.6"
31+
spec.add_dependency "metrics", "~> 0.12"
3132
spec.add_dependency "protocol-http", "~> 0.49"
3233
spec.add_dependency "protocol-http1", "~> 0.30"
3334
spec.add_dependency "protocol-http2", "~> 0.22"
3435
spec.add_dependency "traces", "~> 0.10"
35-
spec.add_dependency "metrics", "~> 0.12"
3636
end

lib/async/http/protocol/http1/client.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
require_relative "connection"
77

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

66
require_relative "../request"
77

@@ -13,7 +13,7 @@ class Request < Protocol::Request
1313
def self.valid_path?(target)
1414
if target.start_with?("/")
1515
return true
16-
elsif target == '*'
16+
elsif target == "*"
1717
return true
1818
else
1919
return false

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

66
require_relative "../request"
77
require_relative "stream"

lib/async/http/protocol/http2/response.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
require_relative "../response"
77
require_relative "stream"

lib/async/http/proxy.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 "client"
77
require_relative "endpoint"

license.md

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

3-
Copyright, 2017-2024, by Samuel Williams.
3+
Copyright, 2017-2025, by Samuel Williams.
44
Copyright, 2018, by Viacheslav Koval.
55
Copyright, 2018, by Janko Marohnić.
66
Copyright, 2019, by Denis Talakevich.

test/async/http/proxy.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
# Copyright, 2020, by Sam Shadwell.
66

77
require "async"

0 commit comments

Comments
 (0)