active_record_migrations 5.0.2.1 → 5.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
- SHA1:
3
- metadata.gz: 1527b28b44f50f877d1323dc3bfcd906f590e1e9
4
- data.tar.gz: d02d2b8096bf59441c501e592724a340cd4ee151
2
+ SHA256:
3
+ metadata.gz: 9ee81d8bf6c075bd9165554d285296aef327d8fce412aca194fe60e1f4dcaf76
4
+ data.tar.gz: af99490c4103dfbffa343c5f2f9ba4866219b60e04fca1ee0d50989d6212c8e7
5
5
  SHA512:
6
- metadata.gz: e1e828b953f36a0193c370c10f31e757b6845659bd3eacb3be2102558ed33917213e5c2bf8647e50765572fa929b77e980682ae597ea27ea5d74012e14ed1487
7
- data.tar.gz: 2a75274d1ce0a2abd3db3e7cba0b51ba39aad13c14fd870572de26d9a177990294040b9b244ee9314a2eacdaa84421468b55f6f4083fdb8155bde065d0b561c8
6
+ metadata.gz: 28c278c6e5adf920e040d1c8b734865ea5b3f6ecc45f1877ec1368e5061b4af4e6a60f834830e8c2f365af68139b1f2462cd9f4c6c2e5bdd71388108d6a81e34
7
+ data.tar.gz: a445b58cfdd775282a581799d4bd1db5613335456634bb91b6462c1f8ce6a2308102100a700569929d4191f4feb229452dba61960afe353d7dc18adebd6b8c43
@@ -20,7 +20,7 @@ module ActiveRecordMigrations
20
20
  def self.load_tasks
21
21
  create_rails_app_if_not_exists
22
22
 
23
- load "active_record/railties/databases.rake"
23
+ load 'active_record/railties/databases.rake'
24
24
  load 'active_record_migrations/tasks/new_migration.rake'
25
25
 
26
26
  ActiveRecord::Base.schema_format = configurations.schema_format
@@ -4,7 +4,11 @@ require 'active_record/tasks/database_tasks'
4
4
  require 'active_record_migrations/configurations'
5
5
  require 'active_record_migrations/generators/migration'
6
6
 
7
- task environment: 'db:load_config' do
7
+ deps = []
8
+ if Gem::Version.new(ActiveRecord::VERSION::STRING) < Gem::Version.new('5.2.0')
9
+ deps << 'db:load_config'
10
+ end
11
+ task environment: deps do
8
12
  ActiveRecord::Base.establish_connection ActiveRecord::Tasks::DatabaseTasks.current_config
9
13
  end
10
14
 
@@ -16,7 +20,8 @@ namespace :db do
16
20
 
17
21
  unless name
18
22
  generator = Rails::Generators.find_by_namespace "migration"
19
- desc = generator.desc.gsub(/`rails (?:g|generate) migration (\w+)`/, '`rake "db:new_migration[\\1]"`' ).
23
+ desc = generator.desc.gsub(/`rails (?:g|generate) migration (\w+)`/,
24
+ '`rake "db:new_migration[\\1]"`' ).
20
25
  gsub(/`rails (?:g|generate) migration (\w+) (.*)`/, '`rake "db:new_migration[\\1, \\2]"`' )
21
26
  puts [
22
27
  %Q{Usage: rake "#{t.name}[AddFieldToForm[, field[:type][:index]] field[:type][:index]]"},
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordMigrations
2
- VERSION = "5.0.2.1"
2
+ VERSION = '5.2.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2.1
4
+ version: 5.2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Rosenfeld Rosas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-02 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  requirements: []
106
106
  rubyforge_project:
107
- rubygems_version: 2.6.8
107
+ rubygems_version: 2.7.6
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Use AR migrations from outside of a Rails project