migration_tools 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/migration_tools.rb +1 -1
- data/lib/migration_tools/tasks.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd1f0b5db6927a64aa37fb521a1bee6aaca98db
|
4
|
+
data.tar.gz: f34ba208cf8c7a5cedb38d136f549392af9ad4e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd3fe69387bf383e84696b153fc11654fb8558e270bca2727bdbc296b92a33ddabc6bf3dcb1e3645d45e94707dfd85c1d2a0a707e8d15c07d787046f7ff27d65
|
7
|
+
data.tar.gz: 98387a655b0fbe427a0e9c5c172d3475cb176d9b253304b39304739753ecff5c74a16f4993e54c56711b93ff9465bbb63ac477b1ea9daa6abe088f46429b81e9
|
data/lib/migration_tools.rb
CHANGED
@@ -10,7 +10,7 @@ module MigrationTools
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def group
|
13
|
-
return @group if @group
|
13
|
+
return @group if defined?(@group) && @group
|
14
14
|
|
15
15
|
@group = ENV['GROUP'].to_s
|
16
16
|
raise "Invalid group \"#{@group}\"" if !@group.empty? && !MIGRATION_GROUPS.member?(@group)
|
@@ -36,7 +36,7 @@ module MigrationTools
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def pending_migrations
|
39
|
-
return @pending_migrations if @pending_migrations
|
39
|
+
return @pending_migrations if defined?(@pending_migrations) && @pending_migrations
|
40
40
|
@pending_migrations = migrator.pending_migrations
|
41
41
|
@pending_migrations = @pending_migrations.select { |proxy| group.empty? || proxy.migration_group == group }
|
42
42
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: migration_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Morten Primdahl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-28 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: 3.2.6
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '5.
|
22
|
+
version: '5.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 3.2.6
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '5.
|
32
|
+
version: '5.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.5.
|
160
|
+
rubygems_version: 2.5.2
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Encourage migrations that do not require downtime
|