From 442dd71e61051576c73bed98c371a875467ceb40 Mon Sep 17 00:00:00 2001 From: Jimmy Dee Date: Fri, 29 Dec 2017 09:59:10 -0800 Subject: [PATCH] Restrict activesupport dependency for better Ruby 2.0.0 support. --- pattern_patch.gemspec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pattern_patch.gemspec b/pattern_patch.gemspec index cc328f2..782cb10 100644 --- a/pattern_patch.gemspec +++ b/pattern_patch.gemspec @@ -15,9 +15,11 @@ Gem::Specification.new do |spec| spec.homepage = 'http://github.com/jdee/pattern_patch' spec.license = 'MIT' + # This is necessary to support the system Ruby (2.0.0) on OS X before High Sierra. spec.required_ruby_version = '>= 2.0.0' - spec.add_dependency 'activesupport' + # activesupport 5.x requires Ruby 2.2. + spec.add_dependency 'activesupport', '~> 4.2' spec.add_development_dependency 'bundler' spec.add_development_dependency 'pry'