outrigger 2.0.0 → 2.0.1

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: e82a9874959275eb5b4654aeb4374115ce636d83
4
- data.tar.gz: 2d769c28f0494b2d1a75b06fc5d6a81d804953ec
3
+ metadata.gz: bad20e4222776bf8091c227245adc512e0a76bac
4
+ data.tar.gz: 5874e4ea2dd1e6bfe58c065796a71efbc8ab9456
5
5
  SHA512:
6
- metadata.gz: 71cf03df7b484f547bcef6b2a6022b6fdfecd2133b0b35ecd235f0fd50404ca0ddd267a0c3c12674be902d2112d54f72248ea80d8edf4823866be0f800ad4d2e
7
- data.tar.gz: 59e5e4940e5c7e1836f2d73430b001ba05481461bb25d6b6be4c81370a1b238f6e54a7a76f9187ecda3008f24bbbf3b77ff2cbe76a44a7dd4f7adcf5167bdb89
6
+ metadata.gz: 61875308e6376d7ad9f7c7839c93a86723facdab47d5a80d96ec0ed8d5cade76b2abe9b7d722154915196ec7aaf81a8842b28c6f994f494e78f687d363b0aaff
7
+ data.tar.gz: 641498cfc4391404b3cce1c33749a5ac57ec7467a116951af87c93c05139b6f5e15b6aaabca6e6e4bfa541a54fbd5c072d65f4fe0203945f2ccc5ef5b9d40e83
@@ -1,3 +1,3 @@
1
1
  module Outrigger
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
@@ -3,7 +3,11 @@ namespace :db do
3
3
  desc 'Run migrations for a Tag'
4
4
  task tagged: %i[environment load_config] do |_t, args|
5
5
  puts("Migrating Tags: #{args.extras}")
6
- ActiveRecord::Migrator.migrate(ActiveRecord::Migrator.migrations_paths, &Outrigger.filter(args.extras))
6
+ if ActiveRecord.gem_version >= Gem::Version.new('5.2.0')
7
+ ActiveRecord::Base.connection.migration_context.migrate(nil, &Outrigger.filter(args.extras))
8
+ else
9
+ ActiveRecord::Migrator.migrate(ActiveRecord::Migrator.migrations_paths, &Outrigger.filter(args.extras))
10
+ end
7
11
  end
8
12
  end
9
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outrigger
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drew Bowman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-31 00:00:00.000000000 Z
11
+ date: 2018-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord