Pin dry-inflector to 0.1.2 for ruby <= 2.4.0

Fails since 0.2.0 that was released today requires ruby >= 2.4.0.
See failure in [1].

[1]https://review.opendev.org/#/c/687845/

Change-Id: I935a7e242b3586e2ffc5815ed1d3fd316b62f53b
Closes-Bug: #1847945
This commit is contained in:
ZhongShengping 2019-10-14 10:33:23 +08:00
parent 9730ffd58c
commit d38ed711f1
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ Gem::Specification.new do |spec|
signet_version = RUBY_VERSION < '2.4.0' ? '~> 0.11.0' : '>= 0.11.0'
spec.add_dependency 'signet', signet_version
# NOTE(zhongshengping): Pin dry-inflector to 0.1.2 as 0.2.0 requires ruby >= 2.4.0
dry_inflector_version = RUBY_VERSION < '2.4.0' ? '~> 0.1.2' : '>= 0.1.2'
spec.add_dependency 'dry-inflector', dry_inflector_version
# dependencies that are needed to run beaker-rspec
beaker_rspec_version = RUBY_VERSION < '2.1.8' ? '= 5.6.0' : '= 6.2.3'
spec.add_dependency 'beaker-rspec', beaker_rspec_version