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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 935691cbc5895c59ed3a1302e29112a6bdfd3722
4
- data.tar.gz: fcc0c590a2c112a895d303e6027a202c3b192c1b
3
+ metadata.gz: 4d356cd237fc665b8045d0fcf24ff67dd2eef12f
4
+ data.tar.gz: f037b001d957906745c444dedcd13d1d8a4f2a71
5
5
  SHA512:
6
- metadata.gz: 15b0da9b7da0f7c0534393a6ee88c034ec6b69e03589f6675fec1d8f3d221d69ec672d3bf9b7058c0ef5095897a071ad7247a904b3fd1d0a133c0548fdbf4c54
7
- data.tar.gz: bed6e7c495e5dd1d6866f7ce86ddaa7521244ba7e3176e99c983494715a804d5fdeaeeab0ffaada4b78348bbd3b964f9c56d4df7b80fa601fc65c9a8ac64e965
6
+ metadata.gz: f98a664cd3c2da80a06de3bcf6605edef88475eead1c37ce6878730791dc69c79bfef723677c8d24c1de17508e94b14a0a964abe5b966b01cc615e139b059d49
7
+ data.tar.gz: 24def9f4a0caa7a13db0139b396ee0dfe634074139da0395dfb88b12653fb2681a584660f6befd02cd8cd9cff195908db58a71667fa75ed42140f46710dbe1d3
@@ -40,13 +40,19 @@ module HairTrigger
40
40
 
41
41
  def migrator
42
42
  version = ActiveRecord::VERSION::STRING
43
- if version >= "5.2."
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
- ActiveRecord::Migrator.new(:up, migrations)
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 = {})
@@ -1,5 +1,5 @@
1
1
  module HairTrigger
2
- VERSION = "0.2.22"
2
+ VERSION = "0.2.23"
3
3
 
4
4
  def VERSION.<=>(other)
5
5
  split(/\./).map(&:to_i) <=> other.split(/\./).map(&:to_i)
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.22
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-02-08 00:00:00.000000000 Z
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: '6.0'
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: '6.0'
32
+ version: '7'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ruby_parser
35
35
  requirement: !ruby/object:Gem::Requirement