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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- requires_shunt (0.0.1)
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.4)
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.3.7)
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.9.4)
73
+ rake (10.0.2)
74
74
  rdoc (3.12)
75
75
  json (~> 1.4)
76
- sprockets (2.2.1)
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
- # requires_shunt_
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
- class DropColumns < ActiveRecord::Migration
16
- requires_shunt
17
-
18
- def up
19
- # ...
20
- end
21
-
22
- def down
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
- $ rake db:migrate_requires_shunt?
30
- These pending migrations require shunt:
31
- 20121128212505 DropColumns
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.
@@ -12,8 +12,6 @@ namespace :db do
12
12
  migrations_requiring_shunt.each do |pending_migration|
13
13
  puts ' %4d %s' % [pending_migration.version, pending_migration.name]
14
14
  end
15
-
16
- abort
17
15
  else
18
16
  puts "No pending migrations require shunt."
19
17
  end
@@ -2,7 +2,7 @@ module RequiresShunt
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 1
5
+ TINY = 2
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
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.1
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: -475336536989971356
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: -475336536989971356
72
+ hash: -1228932674613252155
73
73
  requirements: []
74
74
  rubyforge_project:
75
75
  rubygems_version: 1.8.24