Skip to content

Commit

Permalink
Drop EOL Ruby and Rails versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
nashby committed Sep 18, 2020
1 parent 88bcdf4 commit e935c99
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 47 deletions.
24 changes: 5 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,15 @@ addons:
postgresql: 9.6
gemfile:
- Gemfile
- Gemfile.rails42
- Gemfile.rails50
- Gemfile.rails52
- Gemfile.rails60
- Gemfile.mongo_mapper
rvm:
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
- jruby-9.1.14.0
- 2.5.8
- 2.6.6
- 2.7.1
- jruby-9.2.13.0
before_install:
# Rubygems > 3.0.0 no longer supported rubies < 2.3
- gem install "rubygems-update:<3.0.0" --no-document && update_rubygems
# Bundler 2.0 is not supported by Rails < 5
- gem list -i bundler -v '>= 2.0.0' && rvm @global do gem uninstall bundler -x || true
- gem install bundler -v '< 2'
- gem install bundler
env:
global:
- DB_USER=postgres
Expand All @@ -37,12 +29,6 @@ matrix:
exclude:
- gemfile: Gemfile.mongo_mapper
env: DB=postgresql
- rvm: 2.2.9
gemfile: Gemfile.rails60
- rvm: 2.3.6
gemfile: Gemfile.rails60
- rvm: 2.4.3
gemfile: Gemfile.rails60
branches:
only:
- master
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
eval_gemfile('Gemfile.global')

gem 'minitest', '~> 5.8'
gem 'rails', '5.1.4', require: false
gem 'rails', '~> 5.2.4', require: false
gem 'activerecord-jdbcsqlite3-adapter', '~> 51.0', platform: :jruby
gem 'activerecord-jdbcpostgresql-adapter', '~> 51.0', platform: :jruby
gem 'mongoid'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.mongo_mapper
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
eval_gemfile('Gemfile.global')

gem 'minitest', '~> 5.8'
gem 'rails', '4.2.8', :require => false
gem 'rails', '~> 5.2.4', :require => false
gem 'activerecord-jdbcsqlite3-adapter', '~> 1.3.0', platform: :jruby
gem 'activerecord-jdbcpostgresql-adapter', '~> 1.3.0', platform: :jruby
gem 'mongo_mapper'
Expand Down
8 changes: 0 additions & 8 deletions Gemfile.rails42

This file was deleted.

8 changes: 0 additions & 8 deletions Gemfile.rails50

This file was deleted.

8 changes: 0 additions & 8 deletions Gemfile.rails52

This file was deleted.

3 changes: 1 addition & 2 deletions test/mongo_mapper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
require 'mongo_mapper'
end

MongoMapper.connection = Mongo::Connection.new('localhost', 27017)
MongoMapper.database = 'enumerize-test-suite-of-mongomapper'
MongoMapper.connection = Mongo::Client.new(['localhost:27017'], database: 'enumerize-test-suite-of-mongomapper')

describe Enumerize do
class MongoMapperUser
Expand Down

0 comments on commit e935c99

Please sign in to comment.