Skip to content

Commit 1ca65e9

Browse files
committed
Revert "Revert "Fix Ruby 2.7 support (mastodon#12831)""
This reverts commit eea7cb9.
1 parent eea7cb9 commit 1ca65e9

3 files changed

Lines changed: 19 additions & 20 deletions

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ gem 'hiredis', '~> 0.6'
5656
gem 'redis-namespace', '~> 1.7'
5757
gem 'health_check', git: 'https://github.com/ianheggie/health_check', ref: '0b799ead604f900ed50685e9b2d469cd2befba5b'
5858
gem 'htmlentities', '~> 4.3'
59-
gem 'http', '~> 3.3', git: 'https://github.com/zunda/http.git', branch: 'v3.3.0-use-ruby-2.7.0'
59+
gem 'http', '~> 4.3'
6060
gem 'http_accept_language', '~> 2.1'
6161
gem 'http_parser.rb', '~> 0.6', git: 'https://github.com/tmm1/http_parser.rb', ref: '54b17ba8c7d8d20a16dfc65d1775241833219cf2', submodules: true
6262
gem 'httplog', '~> 1.3'

Gemfile.lock

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,6 @@ GIT
4848
specs:
4949
nilsimsa (1.1.2)
5050

51-
GIT
52-
remote: https://github.com/zunda/http.git
53-
revision: 7734958c98b836bd06f27282be82e8697c93173b
54-
branch: v3.3.0-use-ruby-2.7.0
55-
specs:
56-
http (3.3.0)
57-
addressable (~> 2.3)
58-
http-cookie (~> 1.0)
59-
http-form_data (~> 2.0)
60-
http_parser.rb (~> 0.6.0)
61-
6251
GIT
6352
remote: https://github.com/zunda/sidekiq-scheduler.git
6453
revision: 761c0053240cbb7e0eff63938093147ffb6f8f3c
@@ -158,7 +147,7 @@ GEM
158147
rack (>= 0.9.0)
159148
binding_of_caller (0.8.0)
160149
debug_inspector (>= 0.0.1)
161-
blurhash (0.1.3)
150+
blurhash (0.1.4)
162151
ffi (~> 1.10.0)
163152
brakeman (4.7.2)
164153
browser (2.7.1)
@@ -244,7 +233,7 @@ GEM
244233
discard (1.1.0)
245234
activerecord (>= 4.2, < 7)
246235
docile (1.3.2)
247-
domain_name (0.5.20180417)
236+
domain_name (0.5.20190701)
248237
unf (>= 0.0.5, < 1.0.0)
249238
doorkeeper (5.2.3)
250239
railties (>= 5)
@@ -277,6 +266,9 @@ GEM
277266
fast_blank (1.0.0)
278267
fastimage (2.1.7)
279268
ffi (1.10.0)
269+
ffi-compiler (1.0.1)
270+
ffi (>= 1.0.0)
271+
rake
280272
fog-core (2.1.0)
281273
builder
282274
excon (~> 0.58)
@@ -300,9 +292,9 @@ GEM
300292
ffi (~> 1.0)
301293
globalid (0.4.2)
302294
activesupport (>= 4.2.0)
303-
goldfinger (2.1.0)
295+
goldfinger (2.1.1)
304296
addressable (~> 2.5)
305-
http (~> 3.0)
297+
http (~> 4.0)
306298
nokogiri (~> 1.8)
307299
oj (~> 3.0)
308300
hamlit (2.11.0)
@@ -323,9 +315,16 @@ GEM
323315
hiredis (0.6.3)
324316
hkdf (0.3.0)
325317
htmlentities (4.3.4)
318+
http (4.3.0)
319+
addressable (~> 2.3)
320+
http-cookie (~> 1.0)
321+
http-form_data (~> 2.2)
322+
http-parser (~> 1.2.0)
326323
http-cookie (1.0.3)
327324
domain_name (~> 0.5)
328-
http-form_data (2.1.1)
325+
http-form_data (2.2.0)
326+
http-parser (1.2.1)
327+
ffi-compiler (>= 1.0, < 2.0)
329328
http_accept_language (2.1.1)
330329
httplog (1.3.3)
331330
rack (>= 1.0)
@@ -347,7 +346,7 @@ GEM
347346
iso-639 (0.2.8)
348347
jaro_winkler (1.5.4)
349348
jmespath (1.4.0)
350-
json (2.2.0)
349+
json (2.3.0)
351350
json-canonicalization (0.1.0)
352351
json-ld-preloaded (3.0.6)
353352
json-ld (~> 3.0)
@@ -742,7 +741,7 @@ DEPENDENCIES
742741
health_check!
743742
hiredis (~> 0.6)
744743
htmlentities (~> 4.3)
745-
http (~> 3.3)!
744+
http (~> 4.3)
746745
http_accept_language (~> 2.1)
747746
http_parser.rb (~> 0.6)!
748747
httplog (~> 1.3)

app/lib/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def valid_url?(url)
9696
end
9797

9898
def http_client
99-
HTTP.use(:auto_inflate).timeout(:per_operation, TIMEOUT.dup).follow(max_hops: 2)
99+
HTTP.use(:auto_inflate).timeout(TIMEOUT.dup).follow(max_hops: 2)
100100
end
101101
end
102102

0 commit comments

Comments
 (0)