summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorMasahiro Saito <camelmasa@gmail.com>2017-01-06 21:45:16 +0900
committerDaniel Doubrovkine (dB.) @dblockdotorg <dblock@dblock.org>2017-01-06 07:45:16 -0500
commit87582b589fe04a9f0433478997d42aa8fa798144 (patch)
tree248c1f76d3bb295a691e39d8b35bb00f186c67c1 /Gemfile
parent199d816bc0865d4276a1b6db669ef9f3a2fedfc1 (diff)
downloadhashie-87582b589fe04a9f0433478997d42aa8fa798144.tar.gz
Support Ruby 2.4.0 (#389)
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 0b82bb8..0f71d7f 100644
--- a/Gemfile
+++ b/Gemfile
@@ -12,7 +12,12 @@ end
group :test do
# ActiveSupport required to test compatibility with ActiveSupport Core Extensions.
- gem 'activesupport', '~> 4.x', require: false
+ require File.expand_path('../lib/hashie/extensions/ruby_version', __FILE__)
+ if Hashie::Extensions::RubyVersion.new(RUBY_VERSION) >= Hashie::Extensions::RubyVersion.new('2.4.0')
+ gem 'activesupport', '~> 5.x', require: false
+ else
+ gem 'activesupport', '~> 4.x', require: false
+ end
gem 'codeclimate-test-reporter', '~> 1.0', require: false
gem 'rspec-core', '~> 3.1.7'
gem 'danger-changelog', '~> 0.1.0', require: false