hairtrigger 0.2.22 → 0.2.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hair_trigger.rb +8 -2
- data/lib/hair_trigger/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d356cd237fc665b8045d0fcf24ff67dd2eef12f
|
4
|
+
data.tar.gz: f037b001d957906745c444dedcd13d1d8a4f2a71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f98a664cd3c2da80a06de3bcf6605edef88475eead1c37ce6878730791dc69c79bfef723677c8d24c1de17508e94b14a0a964abe5b966b01cc615e139b059d49
|
7
|
+
data.tar.gz: 24def9f4a0caa7a13db0139b396ee0dfe634074139da0395dfb88b12653fb2681a584660f6befd02cd8cd9cff195908db58a71667fa75ed42140f46710dbe1d3
|
data/lib/hair_trigger.rb
CHANGED
@@ -40,13 +40,19 @@ module HairTrigger
|
|
40
40
|
|
41
41
|
def migrator
|
42
42
|
version = ActiveRecord::VERSION::STRING
|
43
|
-
if version >= "
|
43
|
+
if version >= "6.0."
|
44
|
+
migrations = ActiveRecord::MigrationContext.new(migration_path, ActiveRecord::SchemaMigration).migrations
|
45
|
+
elsif version >= "5.2."
|
44
46
|
migrations = ActiveRecord::MigrationContext.new(migration_path).migrations
|
45
47
|
else # version >= "4.0."
|
46
48
|
migrations = ActiveRecord::Migrator.migrations(migration_path)
|
47
49
|
end
|
48
50
|
|
49
|
-
|
51
|
+
if version >= "6.0."
|
52
|
+
ActiveRecord::Migrator.new(:up, migrations, ActiveRecord::SchemaMigration)
|
53
|
+
else
|
54
|
+
ActiveRecord::Migrator.new(:up, migrations)
|
55
|
+
end
|
50
56
|
end
|
51
57
|
|
52
58
|
def current_migrations(options = {})
|
data/lib/hair_trigger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hairtrigger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Jensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '5.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: ruby_parser
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|