mason 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/mason +0 -2
- data/lib/mason/cli.rb +4 -1
- data/lib/mason/version.rb +1 -1
- metadata +3 -3
data/bin/mason
CHANGED
data/lib/mason/cli.rb
CHANGED
@@ -7,6 +7,7 @@ require "thor/shell/basic"
|
|
7
7
|
|
8
8
|
class Mason::CLI < Thor
|
9
9
|
|
10
|
+
class_option :debug, :type => :boolean, :desc => "show backtraces"
|
10
11
|
class_option :help, :type => :boolean, :aliases => "-h", :desc => "help for this command"
|
11
12
|
|
12
13
|
map %w( -v -V --version ) => :version
|
@@ -236,7 +237,9 @@ class Mason::CLI < Thor
|
|
236
237
|
|
237
238
|
klass.start(args)
|
238
239
|
rescue StandardError => ex
|
239
|
-
|
240
|
+
$stderr.puts " ! #{ex}"
|
241
|
+
$stderr.puts " " + ex.backtrace.join("\n ") if ARGV.include?("--debug")
|
242
|
+
exit 1
|
240
243
|
end
|
241
244
|
|
242
245
|
private
|
data/lib/mason/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mason
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &70229649790580 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70229649790580
|
25
25
|
description: Build things
|
26
26
|
email: ddollar@gmail.com
|
27
27
|
executables:
|