test_track_rails_client 4.0.0.alpha15 → 4.0.0.alpha16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 311dca90ae394a21fa196ecbc900bf1e4df627de
4
- data.tar.gz: 08d435d85ddfda7ba25798e202489fa3b58e5e8c
3
+ metadata.gz: 49815444ee65041c24e60a13a0020f73b8de1347
4
+ data.tar.gz: 1eb1bb655b9388afb11180d1dbfe4dbd398b6c09
5
5
  SHA512:
6
- metadata.gz: 46871402a1023fcf4dfdbf1702d8c43c8bae3bd24eca1dd73882688d68efe0e0c426221117720183d8f1e56b59575a7d5466c1b9f7eab5ed05a03e6861a31e93
7
- data.tar.gz: 7689a88ba49e1815bbbe503ed051c9425befae367da28e4d9741069ba55fb1c55662011cdbf8a638650e513394a43e17004804658831b951514a6b660f4e16e4
6
+ metadata.gz: 0893ea3bd2f299d232cedf0ad3af18f83a048c67fe1354f9fda5aafaf060f40d6e4a3c62fa7e8b5b409bd91f83ca601ab91d3767a341422ba97df75b795ba1ab
7
+ data.tar.gz: 287113c58d8fc39862500542bc2f5dd91c8f60823aed18e059de03cb4f4717664478d23cd390322446356c04f29e0d2a5994aff71ca9f4492dfd4d1a4fc9f0e3
@@ -15,7 +15,7 @@ module TestTrack
15
15
 
16
16
  def create_migration_file
17
17
  create_file full_file_path, <<-FILE.strip_heredoc
18
- class #{split_class_name} < ActiveRecord::Migration
18
+ class #{split_class_name} < #{migration_class}
19
19
  def change
20
20
  TestTrack.update_config do |c|
21
21
  #{split_command_line}
@@ -25,6 +25,14 @@ module TestTrack
25
25
  FILE
26
26
  end
27
27
 
28
+ def migration_class
29
+ if ActiveRecord::VERSION::MAJOR >= 5
30
+ ActiveRecord::Migration[5.0]
31
+ else
32
+ ActiveRecord::Migration
33
+ end
34
+ end
35
+
28
36
  def split_command_line
29
37
  "#{split_command} :#{split_name}#{split_variants}"
30
38
  end
@@ -1,3 +1,3 @@
1
1
  module TestTrackRailsClient
2
- VERSION = "4.0.0.alpha15" # rubocop:disable Style/MutableConstant
2
+ VERSION = "4.0.0.alpha16" # rubocop:disable Style/MutableConstant
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_track_rails_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.alpha15
4
+ version: 4.0.0.alpha16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan O'Neill
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2019-02-03 00:00:00.000000000 Z
16
+ date: 2019-02-06 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: airbrake