Skip to content

Commit

Permalink
Modernize code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 29, 2025
1 parent 714ed4a commit f9e5986
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
ruby-version: "3.4"
bundler-cache: true

- name: Validate coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
ruby-version: "3.4"
bundler-cache: true

- name: Installing packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- macos

ruby:
- "3.3"
- "3.4"

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
ruby-version: "3.4"
bundler-cache: true

- uses: actions/download-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- "3.1"
- "3.2"
- "3.3"
- "3.4"

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- "3.1"
- "3.2"
- "3.3"
- "3.4"

experimental: [false]

Expand Down
2 changes: 1 addition & 1 deletion async-http.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Gem::Specification.new do |spec|
spec.add_dependency "async-pool", "~> 0.9"
spec.add_dependency "io-endpoint", "~> 0.14"
spec.add_dependency "io-stream", "~> 0.6"
spec.add_dependency "metrics", "~> 0.12"
spec.add_dependency "protocol-http", "~> 0.49"
spec.add_dependency "protocol-http1", "~> 0.30"
spec.add_dependency "protocol-http2", "~> 0.22"
spec.add_dependency "traces", "~> 0.10"
spec.add_dependency "metrics", "~> 0.12"
end
2 changes: 1 addition & 1 deletion lib/async/http/protocol/http1/client.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2018-2024, by Samuel Williams.
# Copyright, 2018-2025, by Samuel Williams.

require_relative "connection"

Expand Down
4 changes: 2 additions & 2 deletions lib/async/http/protocol/http1/request.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2018-2024, by Samuel Williams.
# Copyright, 2018-2025, by Samuel Williams.

require_relative "../request"

Expand All @@ -13,7 +13,7 @@ class Request < Protocol::Request
def self.valid_path?(target)
if target.start_with?("/")
return true
elsif target == '*'
elsif target == "*"
return true
else
return false
Expand Down
2 changes: 1 addition & 1 deletion lib/async/http/protocol/http2/request.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2018-2024, by Samuel Williams.
# Copyright, 2018-2025, by Samuel Williams.

require_relative "../request"
require_relative "stream"
Expand Down
2 changes: 1 addition & 1 deletion lib/async/http/protocol/http2/response.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2018-2024, by Samuel Williams.
# Copyright, 2018-2025, by Samuel Williams.

require_relative "../response"
require_relative "stream"
Expand Down
2 changes: 1 addition & 1 deletion lib/async/http/proxy.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2024, by Samuel Williams.
# Copyright, 2019-2025, by Samuel Williams.

require_relative "client"
require_relative "endpoint"
Expand Down
2 changes: 1 addition & 1 deletion license.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright, 2017-2024, by Samuel Williams.
Copyright, 2017-2025, by Samuel Williams.
Copyright, 2018, by Viacheslav Koval.
Copyright, 2018, by Janko Marohnić.
Copyright, 2019, by Denis Talakevich.
Expand Down
2 changes: 1 addition & 1 deletion test/async/http/proxy.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2024, by Samuel Williams.
# Copyright, 2019-2025, by Samuel Williams.
# Copyright, 2020, by Sam Shadwell.

require "async"
Expand Down

0 comments on commit f9e5986

Please # to comment.