doo 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,10 +40,11 @@ Doo::Base.class_eval do
40
40
  return `#{cmd}`
41
41
  else
42
42
  system cmd
43
- if $? != 0 && (!defined? just_return_failure || !just_return_failure)
43
+ if $? != 0 && (!defined? return_on_failure || !return_on_failure)
44
44
  puts "Error code #{$?} running #{cmd}".red
45
45
  raise
46
46
  end
47
+ puts "Got exit code #{$?.exitstatus}" if verbose
47
48
  return $?.exitstatus
48
49
  end
49
50
  else
@@ -1,9 +1,9 @@
1
1
  Doo::Base.class_eval do
2
2
  def if_passes(test, &block)
3
- yield unless run "#{test}", :just_return_failure => true
3
+ yield unless run "#{test}", :return_on_failure => true
4
4
  end
5
5
 
6
6
  def if_fails(test, &block)
7
- yield if run "#{test}", :just_return_failure => true
7
+ yield if run "#{test}", :return_on_failure => true
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mat Trudel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-17 00:00:00 -05:00
18
+ date: 2010-12-30 00:00:00 -05:00
19
19
  default_executable: doo
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency