ridgepole 0.7.0.beta6 → 0.7.0.beta7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/ridgepole +7 -3
- data/lib/ridgepole/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3d9d5631f7b5f23b80eab12746ba43042bbf7c9
|
4
|
+
data.tar.gz: 8694a5b48a72f4b0e20ad78d50b18fc2ff150c25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c95e9f942e81fd62e1c437e9a1501fb0bd95c4849c8deb0208d100c1cb3a0d326b4c2ee9d11838b58a63817413873727cb043be3195fe5c964bd2f7b007ca4a
|
7
|
+
data.tar.gz: f8f021d5b87e6183438885afc1f6e5a274f5e57ec336b9dd2f2b7fbafdfba278c57cad6b630114e24347fd04a27c2224ecaf0c5b45f6b2d9741e48aaa8f9fbb6
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ It defines DB schema using [Rails DSL](http://guides.rubyonrails.org/migrations.
|
|
9
9
|
[![Build Status](https://travis-ci.org/winebarrel/ridgepole.svg?branch=0.6)](https://travis-ci.org/winebarrel/ridgepole)
|
10
10
|
[![Coverage Status](https://coveralls.io/repos/github/winebarrel/ridgepole/badge.svg?branch=0.6)](https://coveralls.io/github/winebarrel/ridgepole?branch=0.6)
|
11
11
|
|
12
|
-
[![Edge Version](https://img.shields.io/badge/edge_version-0.7.0.
|
12
|
+
[![Edge Version](https://img.shields.io/badge/edge_version-0.7.0.beta7-brightgreen.svg)](https://rubygems.org/gems/ridgepole/versions/0.7.0.beta7)
|
13
13
|
[![Build Status](https://travis-ci.org/winebarrel/ridgepole.svg?branch=0.7)](https://travis-ci.org/winebarrel/ridgepole)
|
14
14
|
[![Coverage Status](https://coveralls.io/repos/github/winebarrel/ridgepole/badge.svg?branch=0.7)](https://coveralls.io/github/winebarrel/ridgepole?branch=0.7)
|
15
15
|
|
data/bin/ridgepole
CHANGED
@@ -44,7 +44,7 @@ options = {
|
|
44
44
|
}
|
45
45
|
|
46
46
|
set_mode = proc do |m|
|
47
|
-
raise 'More than one mode is specified' if mode
|
47
|
+
raise OptionParser::InvalidOption, 'More than one mode is specified' if mode
|
48
48
|
mode = m
|
49
49
|
end
|
50
50
|
|
@@ -83,7 +83,7 @@ ARGV.options do |opt|
|
|
83
83
|
opt.on('', '--alter-extra ALTER_SPEC') {|v| options[:alter_extra] = v }
|
84
84
|
opt.on('', '--external-script SCRIPT') {|v| options[:external_script] = v }
|
85
85
|
opt.on('', '--bulk-change') {
|
86
|
-
raise "Cannot use `bulk-change` in `merge`" if options[:merge]
|
86
|
+
raise OptionParser::InvalidOption, "Cannot use `bulk-change` in `merge`" if options[:merge]
|
87
87
|
options[:bulk_change] = true
|
88
88
|
}
|
89
89
|
|
@@ -140,7 +140,11 @@ ARGV.options do |opt|
|
|
140
140
|
end
|
141
141
|
rescue => e
|
142
142
|
$stderr.puts("[ERROR] #{e.message}")
|
143
|
-
|
143
|
+
|
144
|
+
unless e.kind_of?(OptionParser::InvalidOption)
|
145
|
+
puts "\t" + e.backtrace.join("\n\t")
|
146
|
+
end
|
147
|
+
|
144
148
|
exit 1
|
145
149
|
end
|
146
150
|
end
|
data/lib/ridgepole/version.rb
CHANGED