antsy 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,4 +31,8 @@ module Antsy
31
31
  exit 0
32
32
  end
33
33
 
34
+ def self.skipped!(msg = '')
35
+ puts ({ 'skipped' => true, 'changed' => false, 'msg' => msg }.to_json)
36
+ exit 0
37
+ end
34
38
  end
@@ -1,3 +1,3 @@
1
1
  module Antsy
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
@@ -26,4 +26,9 @@ describe Antsy do
26
26
  capture_stdout { Antsy.no_change! }.chomp.should == {changed: false}.to_json
27
27
  lambda { Antsy.no_change! }.should exit_with_code 0
28
28
  end
29
+
30
+ it 'should emit skipped and exit success' do
31
+ capture_stdout { Antsy.skipped! }.chomp.should == {skipped: true, changed: false, msg: ''}.to_json
32
+ lambda { Antsy.skipped! }.should exit_with_code 0
33
+ end
29
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antsy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-18 00:00:00.000000000 Z
12
+ date: 2013-10-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json