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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa88268ac8e5d21f870db938448b2c2840cfd817
4
- data.tar.gz: 6c1e34bd2606f87f070c912b918c7c9b1d2df30c
3
+ metadata.gz: b3d9d5631f7b5f23b80eab12746ba43042bbf7c9
4
+ data.tar.gz: 8694a5b48a72f4b0e20ad78d50b18fc2ff150c25
5
5
  SHA512:
6
- metadata.gz: 76306f41649f88853a8448e7124f3c589c65d42c6e3c698cdc25c66099eae61ff10bbcdb1dd38f8b21c94d32089230a51b23081cb5fe6b4e58a08c891c405387
7
- data.tar.gz: cb1e18afd6899fd468dd08652ad86af161c16842c6004200204b39ab2597c4b46659e28522ebc4d829bf0850a20cd1bcd7b62093099d05d6da9f55df691c31e4
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.beta6-brightgreen.svg)](https://rubygems.org/gems/ridgepole/versions/0.7.0.beta6)
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
- puts e.backtrace
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
@@ -1,3 +1,3 @@
1
1
  module Ridgepole
2
- VERSION = '0.7.0.beta6'
2
+ VERSION = '0.7.0.beta7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridgepole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.beta6
4
+ version: 0.7.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara