Skip to content

Commit feb606c

Browse files
authored
Merge pull request #17 from zendesk/pschambacher/cleanup
Cleanup of the gem
2 parents 28002cb + 18cb2a7 commit feb606c

15 files changed

+28
-88
lines changed

.travis.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,16 @@ sudo: false
55
branches:
66
only: master
77
rvm:
8-
- 2.0.0
9-
- 2.1.8
10-
- 2.2.4
8+
- 2.2.7
9+
- 2.3.4
10+
- 2.4.1
1111
gemfile:
12-
- gemfiles/rails_3.2.gemfile
13-
- gemfiles/rails_4.1.gemfile
14-
- gemfiles/rails_4.2.gemfile
15-
- gemfiles/rails_5.0.gemfile
12+
- gemfiles/rails3.2.gemfile
13+
- gemfiles/rails4.2.gemfile
14+
- gemfiles/rails5.0.gemfile
1615
matrix:
1716
exclude:
18-
- rvm: 2.0.0
19-
gemfile: gemfiles/rails_5.0.gemfile
20-
- rvm: 2.1.8
21-
gemfile: gemfiles/rails_5.0.gemfile
22-
- rvm: 2.2.4
23-
gemfile: gemfiles/rails_3.2.gemfile
17+
- rvm: 2.4.1
18+
gemfile: gemfiles/rails3.2.gemfile
19+
- rvm: 2.4.1
20+
gemfile: gemfiles/rails4.2.gemfile
File renamed without changes.

gemfiles/rails_3.2.gemfile.lock renamed to gemfiles/rails3.2.gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PATH
2-
remote: ../
2+
remote: ..
33
specs:
44
migration_tools (1.3.1)
55
activerecord (>= 3.2.6, < 5.1)
@@ -51,4 +51,4 @@ DEPENDENCIES
5151
wwtd
5252

5353
BUNDLED WITH
54-
1.12.3
54+
1.14.6
File renamed without changes.

gemfiles/rails_4.2.gemfile.lock renamed to gemfiles/rails4.2.gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PATH
2-
remote: ../
2+
remote: ..
33
specs:
44
migration_tools (1.3.1)
55
activerecord (>= 3.2.6, < 5.1)
@@ -55,4 +55,4 @@ DEPENDENCIES
5555
wwtd
5656

5757
BUNDLED WITH
58-
1.12.3
58+
1.14.6
File renamed without changes.

gemfiles/rails_5.0.gemfile.lock renamed to gemfiles/rails5.0.gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PATH
2-
remote: ../
2+
remote: ..
33
specs:
44
migration_tools (1.3.1)
55
activerecord (>= 3.2.6, < 5.1)
@@ -50,4 +50,4 @@ DEPENDENCIES
5050
wwtd
5151

5252
BUNDLED WITH
53-
1.12.5
53+
1.14.6

gemfiles/rails_4.1.gemfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

gemfiles/rails_4.1.gemfile.lock

Lines changed: 0 additions & 58 deletions
This file was deleted.

test/helper.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
require 'active_support/all'
77
require 'migration_tools'
88

9+
MIGRATION_CLASS = if ActiveRecord::Migration.respond_to?(:[])
10+
rails_version = "#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}".to_f
11+
ActiveRecord::Migration[rails_version]
12+
else
13+
ActiveRecord::Migration
14+
end
15+
916
dir = File.expand_path('../migrations', __FILE__)
1017
ActiveRecord::Migrator.migrations_paths.replace([dir])
1118
Dir.glob(File.join(dir, '*.rb')).each {|f| require f}

0 commit comments

Comments
 (0)