Skip to content

Commit eea7cb9

Browse files
committed
Revert "Fix Ruby 2.7 support (mastodon#12831)"
This reverts commit 24cd212 and moves things back to local branch.
1 parent 73b37e3 commit eea7cb9

3 files changed

Lines changed: 20 additions & 19 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', '~> 4.3'
59+
gem 'http', '~> 3.3', git: 'https://github.com/zunda/http.git', branch: 'v3.3.0-use-ruby-2.7.0'
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: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ 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+
5162
GIT
5263
remote: https://github.com/zunda/sidekiq-scheduler.git
5364
revision: 761c0053240cbb7e0eff63938093147ffb6f8f3c
@@ -147,7 +158,7 @@ GEM
147158
rack (>= 0.9.0)
148159
binding_of_caller (0.8.0)
149160
debug_inspector (>= 0.0.1)
150-
blurhash (0.1.4)
161+
blurhash (0.1.3)
151162
ffi (~> 1.10.0)
152163
brakeman (4.7.2)
153164
browser (2.7.1)
@@ -233,7 +244,7 @@ GEM
233244
discard (1.1.0)
234245
activerecord (>= 4.2, < 7)
235246
docile (1.3.2)
236-
domain_name (0.5.20190701)
247+
domain_name (0.5.20180417)
237248
unf (>= 0.0.5, < 1.0.0)
238249
doorkeeper (5.2.3)
239250
railties (>= 5)
@@ -266,9 +277,6 @@ GEM
266277
fast_blank (1.0.0)
267278
fastimage (2.1.7)
268279
ffi (1.10.0)
269-
ffi-compiler (1.0.1)
270-
ffi (>= 1.0.0)
271-
rake
272280
fog-core (2.1.0)
273281
builder
274282
excon (~> 0.58)
@@ -292,9 +300,9 @@ GEM
292300
ffi (~> 1.0)
293301
globalid (0.4.2)
294302
activesupport (>= 4.2.0)
295-
goldfinger (2.1.1)
303+
goldfinger (2.1.0)
296304
addressable (~> 2.5)
297-
http (~> 4.0)
305+
http (~> 3.0)
298306
nokogiri (~> 1.8)
299307
oj (~> 3.0)
300308
hamlit (2.11.0)
@@ -315,16 +323,9 @@ GEM
315323
hiredis (0.6.3)
316324
hkdf (0.3.0)
317325
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)
323326
http-cookie (1.0.3)
324327
domain_name (~> 0.5)
325-
http-form_data (2.2.0)
326-
http-parser (1.2.1)
327-
ffi-compiler (>= 1.0, < 2.0)
328+
http-form_data (2.1.1)
328329
http_accept_language (2.1.1)
329330
httplog (1.3.3)
330331
rack (>= 1.0)
@@ -346,7 +347,7 @@ GEM
346347
iso-639 (0.2.8)
347348
jaro_winkler (1.5.4)
348349
jmespath (1.4.0)
349-
json (2.3.0)
350+
json (2.2.0)
350351
json-canonicalization (0.1.0)
351352
json-ld-preloaded (3.0.6)
352353
json-ld (~> 3.0)
@@ -741,7 +742,7 @@ DEPENDENCIES
741742
health_check!
742743
hiredis (~> 0.6)
743744
htmlentities (~> 4.3)
744-
http (~> 4.3)
745+
http (~> 3.3)!
745746
http_accept_language (~> 2.1)
746747
http_parser.rb (~> 0.6)!
747748
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(TIMEOUT.dup).follow(max_hops: 2)
99+
HTTP.use(:auto_inflate).timeout(:per_operation, TIMEOUT.dup).follow(max_hops: 2)
100100
end
101101
end
102102

0 commit comments

Comments
 (0)