Add dirty hack to gemspec so we can support ruby 1.9.3

This commit is contained in:
Jared Beck 2016-12-04 22:19:06 -05:00
parent 62202a7487
commit d84dea3b1d
2 changed files with 7 additions and 1 deletions

View File

@ -18,7 +18,9 @@ Please use our [bug report template][1].
## Development
Install gems with `bundle exec appraisal install`.
Install gems with `bundle exec appraisal install`. This requires ruby >= 2.0.
(It is still possible to run the `ar-4.2` gemfile locally on ruby 1.9.3, but
not the `ar-5.0` gemfile.)
Testing is a little awkward because the test suite:

View File

@ -44,6 +44,10 @@ has been destroyed.
s.add_development_dependency "rubocop", "~> 0.41.1"
s.add_development_dependency "timecop", "~> 0.8.0"
if ::Gem.ruby_version < ::Gem::Version.new("2.0.0")
s.add_development_dependency "rack", "< 2"
end
if defined?(JRUBY_VERSION)
s.add_development_dependency "activerecord-jdbcsqlite3-adapter", "~> 1.3.15"
s.add_development_dependency "activerecord-jdbcpostgresql-adapter", "~> 1.3.15"