Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ gem 'sorted_set', '~> 1.0'
gem 'i18n'

# Apisonator client
gem 'pisoni', '~> 1.30'
gem 'pisoni', '~> 1.31'

gem '3scale_time_range', '0.0.6'

Expand Down Expand Up @@ -73,14 +73,26 @@ gem 'formtastic', '~> 5.0'
gem 'htmlentities', '~>4.3', '>= 4.3.4'
gem 'json', '~> 2.7', '>= 2.7.1'
gem 'responders', '~> 3.2' # For respond_with support
# uri >= 1.0.0 switched the default parser from RFC2396 to RFC3986 (ruby/uri#107),
# removed URI::DEFAULT_PARSER, dropped URI.decode, and the RFC3986 parser has no
# `registry` component. We rely on all of these across models (Proxy, ProxyRule,
# WebHook, AuthenticationProvider) and controllers. Upgrading is worthwhile but
# requires careful inspection of every call-site and should be deployed/tested
# separately from the Faraday update.
gem 'uri', '< 1.0.0'

gem 'mysql2', '~> 0.5.3'

gem '3scale_client', '~> 2.11', require: false
gem 'analytics-ruby', require: false

# connection_pool 3.0 changed `#with` from positional to keyword-only args,
# breaking redis-client 0.22.2 (pinned by hiredis-client). Upgrading
# hiredis-client + redis-client to >= 0.26.3 would resolve this; until then
# keep connection_pool on 2.x.
gem 'connection_pool', '~> 2.2', '< 3'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if you just remove this and leave the reference to connection_pool un the lockfile untouched? I don't like the idea of adding dependencies to our Gemfile when they are not our dependencies

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then the next bundle install may bring it back. I'd rather put a comment unless you give me a better alternative.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine for me

gem 'dalli'
gem 'faraday', '~> 2.0', '<= 2.9'
gem 'faraday', '~> 2.0', '>= 2.14.3'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we limit range to 2.x?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ~> 2.0 constraint already limits to 2.x (it's equivalent to ">= 2.0, < 3.0"). So faraday '~> 2.0', '>= 2.14.3' means any 2.x version starting from 2.14.3.

gem 'mimemagic', '~> 0.3.10'
gem 'nokogiri', '~> 1.18.9', force_ruby_platform: true
gem 'secure_headers', '~> 6.3.0'
Expand Down
36 changes: 21 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ GEM
colorize (0.8.1)
commonmarker (0.23.10)
concurrent-ruby (1.3.5)
connection_pool (2.5.4)
connection_pool (2.5.5)
crack (1.0.0)
bigdecimal
rexml
Expand Down Expand Up @@ -399,14 +399,15 @@ GEM
factory_bot (~> 6.2.0)
railties (>= 5.0.0)
fakefs (1.8.0)
faraday (2.8.1)
base64
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
faraday-net_http_persistent (2.1.0)
faraday (2.14.3)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-net_http (3.4.4)
net-http (~> 0.5)
faraday-net_http_persistent (2.3.1)
faraday (~> 2.5)
net-http-persistent (~> 4.0)
net-http-persistent (>= 4.0.4, < 5)
ffi (1.17.0)
ffi-compiler (1.0.1)
ffi (>= 1.0.0)
Expand Down Expand Up @@ -454,7 +455,7 @@ GEM
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.13.2)
json (2.20.0)
json_schemer (2.4.0)
bigdecimal
hana (~> 1.3)
Expand Down Expand Up @@ -550,9 +551,11 @@ GEM
mutex_m (0.3.0)
mysql2 (0.5.6)
n_plus_one_control (0.6.2)
net-http (0.9.1)
uri (>= 0.11.1)
net-http-digest_auth (1.4.1)
net-http-persistent (4.0.2)
connection_pool (~> 2.2)
net-http-persistent (4.0.8)
connection_pool (>= 2.2.4, < 4)
net-imap (0.5.7)
date
net-protocol
Expand Down Expand Up @@ -597,8 +600,8 @@ GEM
ruby-rc4
ttfunk
pg (1.3.5)
pisoni (1.30.0)
faraday (~> 2.0, <= 2.9)
pisoni (1.31.0)
faraday (~> 2.0, >= 2.14.3)
faraday-net_http_persistent (~> 2.1)
injectedlogger (= 0.0.13)
json (~> 2.7, >= 2.7.1)
Expand Down Expand Up @@ -973,6 +976,7 @@ GEM
rack
unicorn
uniform_notifier (1.17.0)
uri (0.13.3)
version_gem (1.1.3)
webmock (3.24.0)
addressable (>= 2.8.0)
Expand Down Expand Up @@ -1044,6 +1048,7 @@ DEPENDENCIES
coffee-rails (~> 5.0)
colorize
commonmarker (~> 0.23.10)
connection_pool (~> 2.2, < 3)
cssbundling-rails (~> 1.4.3)
cucumber (~> 7.0)
cucumber-rails (~> 3.0.0)
Expand All @@ -1058,7 +1063,7 @@ DEPENDENCIES
escape_utils
factory_bot_rails (~> 6.2)
fakefs
faraday (~> 2.0, <= 2.9)
faraday (~> 2.0, >= 2.14.3)
formtastic (~> 5.0)
hashie
hiredis-client
Expand Down Expand Up @@ -1097,7 +1102,7 @@ DEPENDENCIES
open_id_authentication
pdf-inspector
pg (~> 1.3.5)
pisoni (~> 1.30)
pisoni (~> 1.31)
prawn
prawn-svg
prawn-table!
Expand Down Expand Up @@ -1162,6 +1167,7 @@ DEPENDENCIES
uglifier
unicorn
unicorn-rails
uri (< 1.0.0)
webmock (~> 3.24.0)
webrick (~> 1.8.2)
will_paginate (~> 3.3)
Expand Down