Skip to content

Commit 396d39f

Browse files
committed
Clamp down allowed gem versions depending on Ruby version supported
1 parent b9cee02 commit 396d39f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Gemfile

+8-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ source 'https://rubygems.org'
22

33
gemspec
44

5-
gem 'activesupport', '>= 2.3.6' if RUBY_VERSION >= '1.9.3'
6-
gem 'activesupport', '>= 2.3.6', '< 4.0.0' if RUBY_VERSION < '1.9.3'
5+
if RUBY_VERSION < '1.9.3'
6+
gem 'activesupport', '< 4'
7+
elsif RUBY_VERSION < '2.2.2'
8+
gem 'activesupport', '< 5'
9+
end
10+
gem 'i18n', '< 0.7.0' if RUBY_VERSION < '1.9.3'
711
gem "tlsmail" if RUBY_VERSION <= '1.8.6'
812
gem "mime-types", "~> 1.16"
913
gem "treetop", "~> 1.4.10"
@@ -12,9 +16,8 @@ gem 'jruby-openssl', :platform => :jruby
1216

1317
# For gems not required to run tests
1418
group :local_development, :test do
15-
gem 'rake', '> 0.8.7' if RUBY_VERSION >= '1.9.3'
16-
gem 'rake', '> 0.8.7', '< 11.0.1' if RUBY_VERSION < '1.9.3'
17-
gem 'rdoc', '< 5' if RUBY_VERSION < '1.9'
19+
gem 'rake', '> 0.8.7', '< 11.0.1'
20+
gem 'rdoc', '< 4.3' if RUBY_VERSION < '1.9'
1821
gem "rspec", "~> 2.8.0"
1922
case
2023
when defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'

0 commit comments

Comments
 (0)