baf 0.6.0 → 0.6.1

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: 01b4cd603a0c8b5fb882a9c1aa6db847a5226708
4
- data.tar.gz: 397fd86453ebc4f2be6896aefb8bbb91a20496e1
3
+ metadata.gz: 672e4191f970498cfc78fbd220ebddd74e3fb7ac
4
+ data.tar.gz: a15fce79c005964a645fcc233fc95cd184aa99b2
5
5
  SHA512:
6
- metadata.gz: 5a6ad3ff49957f133084b215f325868bab5ffae69c8f5cadb87ec57d83e84eb23b7b6ad02a3b806e122b25497dcae0e20d4d2c50137d7e7cbce3e6968f96932e
7
- data.tar.gz: 3350cccfc0f5e1c2afa5c5958e840acc54c9b4b52a8145c39cbdb5d2322d8009c5f532e4117a07c12f9f130edb87a66fa975bf72aa3fade3ff398b2006ec93b4
6
+ metadata.gz: d99b934bbacd1a65e6aade6688700e0b7761e82d260e4707305220e050e6ffcf5255eaa139d2ac8498f612bf88bc806b2c2f266ceeaa1eb67f8b2ee4f282050c
7
+ data.tar.gz: a12f12a1c7aa33e312ffbc28321982af67b50fcaf70f2ba9f446c5e0758fc26751c8b63f4f78b1de95376f17d845fd70179db237831a0fdfbc45ddc739b2a640
@@ -63,7 +63,7 @@ module Baf
63
63
  end
64
64
 
65
65
  def flag_version version
66
- flag :V, :version, 'print version', -> *, env { env.puts version },
66
+ flag :V, :version, 'print version', -> *, env { env.puts version; exit },
67
67
  tail: true
68
68
  end
69
69
 
@@ -52,6 +52,7 @@ module Baf
52
52
  parser.separator '' if options.any?
53
53
  parser.on_tail *HELP_PARSER_ARGS do
54
54
  env.print parser
55
+ exit
55
56
  end
56
57
  end
57
58
 
@@ -13,6 +13,10 @@ def expect_output content
13
13
  end
14
14
 
15
15
 
16
+ Then /^the output must contain "([^"]+)"$/ do |content|
17
+ expect(last_command_started.output).to include unescape_text content
18
+ end
19
+
16
20
  Then /^the output must contain exactly:$/ do |content|
17
21
  expect_output content + $/
18
22
  end
@@ -1,3 +1,3 @@
1
1
  module Baf
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.6.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibault Jouan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-23 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: baf-testing