requires_shunt 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +5 -5
- data/README.md +14 -14
- data/lib/requires_shunt/databases.rake +0 -2
- data/lib/requires_shunt/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
requires_shunt (0.0.
|
4
|
+
requires_shunt (0.0.2)
|
5
5
|
rails (~> 3.2.8)
|
6
6
|
|
7
7
|
GEM
|
@@ -40,13 +40,13 @@ GEM
|
|
40
40
|
hike (1.2.1)
|
41
41
|
i18n (0.6.1)
|
42
42
|
journey (1.0.4)
|
43
|
-
json (1.7.
|
43
|
+
json (1.7.5)
|
44
44
|
mail (2.4.4)
|
45
45
|
i18n (>= 0.4.0)
|
46
46
|
mime-types (~> 1.16)
|
47
47
|
treetop (~> 1.4.8)
|
48
48
|
mime-types (1.19)
|
49
|
-
multi_json (1.
|
49
|
+
multi_json (1.4.0)
|
50
50
|
polyglot (0.3.3)
|
51
51
|
rack (1.4.1)
|
52
52
|
rack-cache (1.2)
|
@@ -70,10 +70,10 @@ GEM
|
|
70
70
|
rake (>= 0.8.7)
|
71
71
|
rdoc (~> 3.4)
|
72
72
|
thor (>= 0.14.6, < 2.0)
|
73
|
-
rake (0.
|
73
|
+
rake (10.0.2)
|
74
74
|
rdoc (3.12)
|
75
75
|
json (~> 1.4)
|
76
|
-
sprockets (2.2.
|
76
|
+
sprockets (2.2.2)
|
77
77
|
hike (~> 1.2)
|
78
78
|
multi_json (~> 1.0)
|
79
79
|
rack (~> 1.0)
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# requires_shunt
|
2
2
|
|
3
3
|
Allows you to flag your migrations as disruptive to production service. Provides a rake task to inspect if any pending migrations require shunt.
|
4
4
|
|
@@ -12,22 +12,22 @@ In your Gemfile, add this line:
|
|
12
12
|
|
13
13
|
To mark a migration as requiring shunt:
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
15
|
+
class DropColumns < ActiveRecord::Migration
|
16
|
+
requires_shunt
|
17
|
+
|
18
|
+
def up
|
19
|
+
# ...
|
20
|
+
end
|
21
|
+
|
22
|
+
def down
|
23
|
+
# ...
|
24
|
+
end
|
24
25
|
end
|
25
|
-
end
|
26
26
|
|
27
27
|
To determine if migrations if any pending migrations require shunt:
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
$ rake db:migrate_requires_shunt?
|
30
|
+
These pending migrations require shunt:
|
31
|
+
20121128212505 DropColumns
|
32
32
|
|
33
33
|
If a shunt is required, the rake task with exit with code 1.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: requires_shunt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -60,7 +60,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
segments:
|
62
62
|
- 0
|
63
|
-
hash: -
|
63
|
+
hash: -1228932674613252155
|
64
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
segments:
|
71
71
|
- 0
|
72
|
-
hash: -
|
72
|
+
hash: -1228932674613252155
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project:
|
75
75
|
rubygems_version: 1.8.24
|