vagrant-cucumber 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8faa2edbb5144db72beb2a3a7098b01da0065ca5
4
- data.tar.gz: 336a8d105ff4acc3defd876e941764c9fada2709
3
+ metadata.gz: 5a308c1a04147bea614fa772119195e631df8b94
4
+ data.tar.gz: 04daa77d14ff0a9a275463be8bae49bb647f848f
5
5
  SHA512:
6
- metadata.gz: 610f06050ccb21f0b259ef4a15cb1490f998309165eea57af8d9b536f67bb44d2587bd2246eb2c8e75b3a26de79ea156b74beb726b29572ef3205fc6c1c809e7
7
- data.tar.gz: 1bf9ad2c86f71918f523637f71bb4f42902b1c44ad10dfaefe045642b66afb50a886d0fc306b9da6993fa6fe5b4b5a1ee983c99a9fc79c110fa1f44d10292927
6
+ metadata.gz: 59232e87bd3ea3ce00bb0b83281b79d7881e5af932a2a635cf8a8763c4f1a4930ccfb3745e6edff703fb7a53085123afb9c8a8496f207bf925c8cc52e7d3a012
7
+ data.tar.gz: f3d09e05a9310a0f32f4d8dc6ce6cb16048008cd19778b3a79a0a93e39ca0693da9ffc4849baee4663fb5643059933b991e96c95e57cf089538876ddfd80f4df
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.3 (30 January, 2018)
2
+ * FIX: Fix using @vagrant-cucumber-debug flag
3
+
1
4
  ## 1.0.2 (12 September, 2017)
2
5
  * FIX: Broken regex caused example tests to fail.
3
6
 
@@ -41,15 +41,15 @@ Then /there should(| not) be a process called "([^"]*)" running(#{VMRE})$/ do |c
41
41
  # output on stdout or stderr. We handle any output in this block.
42
42
  #
43
43
  # In this case, we'll put all output onto stdout, but only if
44
- # @vagrant_cucumber_debug has been set. This class variable will
44
+ # $vagrant_cucumber_debug has been set. This class variable will
45
45
  # be set to true in the Before hook defined in
46
46
  # lib/vagrant-cucumber/step_definitions.rb
47
47
 
48
- puts "[:#{type}] #{data.chomp}" if @vagrant_cucumber_debug
48
+ puts "[:#{type}] #{data.chomp}" if $vagrant_cucumber_debug
49
49
  end
50
50
 
51
51
  # Output the status from the command if we're in debugging mode
52
- puts "Exit status of pidof command: #{rv}" if @vagrant_cucumber_debug
52
+ puts "Exit status of pidof command: #{rv}" if $vagrant_cucumber_debug
53
53
 
54
54
  # Cucumber steps are expected to exit cleanly if they worked ok, and
55
55
  # raise exceptions if they fail. The following logic implements
@@ -95,7 +95,7 @@ module VagrantPlugins
95
95
  command, error_check: false,
96
96
  sudo: opts[:as_root]
97
97
  ) do |type, data|
98
- if @vagrant_cucumber_debug
98
+ if $vagrant_cucumber_debug
99
99
  puts "[:#{type}] #{data.chomp}"
100
100
  end
101
101
 
@@ -136,5 +136,10 @@ end
136
136
 
137
137
  Before('@vagrant-cucumber-debug') do |_scenario|
138
138
  puts 'Enabling debugging for vagrant-cucumber scenarios'
139
- @vagrant_cucumber_debug = true
139
+ $vagrant_cucumber_debug = true
140
+ end
141
+
142
+ After('@vagrant-cucumber-debug') do |_scenario|
143
+ puts 'Disabling debugging for vagrant-cucumber scenarios'
144
+ $vagrant_cucumber_debug = false
140
145
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Cucumber
3
- VERSION = '1.0.2'.freeze
3
+ VERSION = '1.0.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Topper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-12 00:00:00.000000000 Z
11
+ date: 2018-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber