diff --git a/Gemfile b/Gemfile index bf0b4025..186af7dc 100644 --- a/Gemfile +++ b/Gemfile @@ -14,7 +14,7 @@ gem 'doorkeeper', '~> 5.2' gem 'doorkeeper-i18n', '~> 5.2' gem 'exifr', '~> 1.3' gem 'friendly_id', '~> 5.2' -gem 'http', '~> 4.0' +gem 'http', '~> 5.0' gem 'iban-tools', '~> 1.1.0' gem 'icalendar', '~> 2.4' gem 'improvmx', '~> 0.2.0' diff --git a/Gemfile.lock b/Gemfile.lock index efc5def1..a0a73de2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -198,17 +198,15 @@ GEM guard-compat (~> 1.1) rspec (>= 2.99.0, < 4.0) hashdiff (1.0.1) - http (4.4.1) + http (5.0.0) addressable (~> 2.3) http-cookie (~> 1.0) http-form_data (~> 2.2) - http-parser (~> 1.2.0) + llhttp-ffi (~> 0.0.1) http-accept (1.7.0) http-cookie (1.0.3) domain_name (~> 0.5) http-form_data (2.3.0) - http-parser (1.2.3) - ffi-compiler (>= 1.0, < 2.0) http_router (0.11.2) rack (>= 1.0.0) url_mount (~> 0.2.1) @@ -233,6 +231,9 @@ GEM listen (3.5.1) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) + llhttp-ffi (0.0.1) + ffi-compiler (~> 1.0) + rake (~> 13.0) loofah (2.9.1) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -545,7 +546,7 @@ DEPENDENCIES friendly_id (~> 5.2) fuubar guard-rspec - http (~> 4.0) + http (~> 5.0) iban-tools (~> 1.1.0) icalendar (~> 2.4) improvmx (~> 0.2.0) diff --git a/app/lib/mailgun_fetcher.rb b/app/lib/mailgun_fetcher.rb index 66fc3c93..3cac608f 100644 --- a/app/lib/mailgun_fetcher.rb +++ b/app/lib/mailgun_fetcher.rb @@ -43,7 +43,7 @@ def json_response # :nocov: HTTP.basic_auth(user: :api, pass: Rails.application.config.x.mailgun_api_key) - .get(@message_url).parse + .get(@message_url).parse(:json) # :nocov: end end