Skip to content

Commit f89a351

Browse files
committed
Modernize code + drop support for Ruby v3.1.
1 parent 79b4f05 commit f89a351

29 files changed

+32
-29
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
@@ -23,7 +23,6 @@ jobs:
2323
- macos
2424

2525
ruby:
26-
- "3.1"
2726
- "3.2"
2827
- "3.3"
2928
- "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

async-http.gemspec

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

99
spec.summary = "A HTTP client and server library."
10-
spec.authors = ["Samuel Williams", "Brian Morearty", "Bruno Sutic", "Janko Marohnić", "Thomas Morgan", "Adam Daniels", "Igor Sidorov", "Anton Zhuravsky", "Cyril Roelandt", "Denis Talakevich", "Hal Brodigan", "Ian Ker-Seymer", "Josh Huber", "Marco Concetto Rudilosso", "Olle Jonsson", "Orgad Shaneh", "Sam Shadwell", "Stefan Wrobel", "Tim Meusel", "Trevor Turk", "Viacheslav Koval", "dependabot[bot]"]
10+
spec.authors = ["Samuel Williams", "Brian Morearty", "Bruno Sutic", "Janko Marohnić", "Thomas Morgan", "Adam Daniels", "Igor Sidorov", "Anton Zhuravsky", "Cyril Roelandt", "Denis Talakevich", "Hal Brodigan", "Ian Ker-Seymer", "Jean Boussier", "Josh Huber", "Marco Concetto Rudilosso", "Olle Jonsson", "Orgad Shaneh", "Sam Shadwell", "Stefan Wrobel", "Tim Meusel", "Trevor Turk", "Viacheslav Koval", "dependabot[bot]"]
1111
spec.license = "MIT"
1212

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

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

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

2727
spec.add_dependency "async", ">= 2.10.2"
2828
spec.add_dependency "async-pool", "~> 0.9"

bake/async/http/h2spec.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
def build
77
# Fetch the code:

examples/download/chunked.rb

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

44
# Released under the MIT License.
5-
# Copyright, 2020-2024, by Samuel Williams.
5+
# Copyright, 2020-2025, by Samuel Williams.
66

77
require "async"
88
require "async/clock"

examples/google/search.rb

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

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

77
require "async"
88
require "async/clock"

examples/licenses/list.rb

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

44
# Released under the MIT License.
5-
# Copyright, 2020-2024, by Samuel Williams.
5+
# Copyright, 2020-2025, by Samuel Williams.
66

77
require "csv"
88
require "json"

examples/stream/stop.rb

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

44
# Released under the MIT License.
5-
# Copyright, 2020-2024, by Samuel Williams.
5+
# Copyright, 2020-2025, by Samuel Williams.
66

77
require "async"
88
require "async/http/internet"

lib/async/http/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, 2017-2024, by Samuel Williams.
4+
# Copyright, 2017-2025, by Samuel Williams.
55
# Copyright, 2022, by Ian Ker-Seymer.
66

77
require "io/endpoint"

lib/async/http/endpoint.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, 2021-2022, by Adam Daniels.
66
# Copyright, 2024, by Thomas Morgan.
77
# Copyright, 2024, by Igor Sidorov.

lib/async/http/protocol/http.rb

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

33
# Released under the MIT License.
44
# Copyright, 2024, by Thomas Morgan.
5-
# Copyright, 2024, by Samuel Williams.
5+
# Copyright, 2024-2025, by Samuel Williams.
66

77
require_relative "defaulton"
88

lib/async/http/protocol/http1.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, 2017-2025, by Samuel Williams.
55
# Copyright, 2024, by Thomas Morgan.
66

77
require_relative "configurable"

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

lib/async/http/protocol/http1/server.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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
# Copyright, 2020, by Igor Sidorov.
66
# Copyright, 2023, by Thomas Morgan.
77
# Copyright, 2024, by Anton Zhuravsky.
8+
# Copyright, 2025, by Jean Boussier.
89

910
require_relative "connection"
1011
require_relative "finishable"

lib/async/http/protocol/http10.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, 2017-2025, by Samuel Williams.
55
# Copyright, 2024, by Thomas Morgan.
66

77
require_relative "http1"

lib/async/http/protocol/http11.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, 2017-2025, by Samuel Williams.
55
# Copyright, 2018, by Janko Marohnić.
66
# Copyright, 2024, by Thomas Morgan.
77

lib/async/http/protocol/http2.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
# Copyright, 2024, by Thomas Morgan.
66

77
require_relative "configurable"

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

lib/async/http/protocol/http2/connection.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, 2018-2024, by Samuel Williams.
4+
# Copyright, 2018-2025, by Samuel Williams.
55
# Copyright, 2020, by Bruno Sutic.
6+
# Copyright, 2025, by Jean Boussier.
67

78
require_relative "stream"
89

lib/async/http/protocol/http2/server.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
require_relative "request"

lib/async/http/protocol/http2/stream.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
# Copyright, 2022, by Marco Concetto Rudilosso.
66
# Copyright, 2023, by Thomas Morgan.
77

lib/async/http/protocol/https.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
# Copyright, 2019, by Brian Morearty.
66

77
require_relative "defaulton"

lib/async/http/server.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, 2017-2025, by Samuel Williams.
55
# Copyright, 2019, by Brian Morearty.
66

77
require "async"

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

66
module Async
77
module HTTP

license.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Copyright, 2023, by dependabot[bot].
2222
Copyright, 2023, by Josh Huber.
2323
Copyright, 2024, by Anton Zhuravsky.
2424
Copyright, 2024, by Hal Brodigan.
25+
Copyright, 2025, by Jean Boussier.
2526

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

test/async/http/protocol/http.rb

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

33
# Released under the MIT License.
44
# Copyright, 2024, by Thomas Morgan.
5-
# Copyright, 2024, by Samuel Williams.
5+
# Copyright, 2024-2025, by Samuel Williams.
66

77
require "async/http/protocol/http"
88
require "async/http/a_protocol"

test/async/http/protocol/http1.rb

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

33
# Released under the MIT License.
4-
# Copyright, 2024, by Thomas Morgan.
5-
# Copyright, 2024, by Samuel Williams.
4+
# Copyright, 2025, by Samuel Williams.
65

76
require "async/http/protocol/http"
87
require "async/http/a_protocol"

test/async/http/protocol/http2.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 "async/http/protocol/http2"
77
require "async/http/a_protocol"

0 commit comments

Comments
 (0)