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 CHANGED
@@ -8,6 +8,4 @@ begin
8
8
  Mason::CLI.run
9
9
  rescue Errno::EPIPE
10
10
  rescue Mason::CommandFailed => ex
11
- $stderr.puts " ! #{ex}"
12
- exit 1
13
11
  end
@@ -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
- raise Mason::CommandFailed, ex.message
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
@@ -1,3 +1,3 @@
1
1
  module Mason
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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: &70192734807320 !ruby/object:Gem::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: *70192734807320
24
+ version_requirements: *70229649790580
25
25
  description: Build things
26
26
  email: ddollar@gmail.com
27
27
  executables: