vagrant-cucumber 0.0.8 → 0.0.9

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: 5b215cc662fedd7abd27d203263f8e173e1db06b
4
- data.tar.gz: 32d070e97b88689aa0715bba79b0aafc245d5466
3
+ metadata.gz: 823461ef81f4d293a037626bd7ba7adbbff889dd
4
+ data.tar.gz: a654618e8f45dd8d67488b9735777d31a93f795d
5
5
  SHA512:
6
- metadata.gz: dd58bacba9f96729953d7d69940e4369584ea4587b3327e4bbb678b0070a55bf9fbb0a6f77c748f0493a8e798d5da638b0373ccb7df9048d5afdcc69a970d4d5
7
- data.tar.gz: a17e69c8441eb401262b8f563dc5facbb3620d6a5e94dc9287a794269e355b0cb5902f8ba2920b9c6f6f15fccf6d515792c8606398447a168d3746c22ccc7742
6
+ metadata.gz: 0d14130cbdabdef34cd2df733aeed829a7942610b5ec2bebaf84c6cc8378374811872b7f68e500c39a9cfeaaa106642a4d5334d48bf909d8d0461f78b7329c3b
7
+ data.tar.gz: f3845386ecc22e39144758b0ba02dab4f99a084e17a56c31a32b428c1a85cd9d5c2a2b635f3d7abd2656f5c5d9df477ba981d004315bd577114d762e30bbf3bd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.0.9 (May 6, 2015)
2
+
3
+ * Fixes to ANSI escape code handling
4
+ * Force cucumber gem version to pre-2.x
5
+
1
6
  ## 0.0.8 (April 29, 2014)
2
7
 
3
8
  * Fixed a bug in table formatting
@@ -1,5 +1,11 @@
1
1
  require 'cucumber/formatter/html'
2
2
 
3
+ ANSI_PATTERN = /\e\[(\d+)?(;\d+)?m/
4
+
5
+ def remove_ansi(string=nil)
6
+ string.gsub(ANSI_PATTERN, '')
7
+ end
8
+
3
9
  module VagrantPlugins
4
10
 
5
11
  module Cucumber
@@ -10,10 +16,10 @@ module VagrantPlugins
10
16
 
11
17
  def puts(message)
12
18
  # TODO Strip ansi escape codes
13
- @delayed_messages << message
19
+ @delayed_messages << remove_ansi(message)
14
20
  end
15
21
 
16
- end
22
+ end
17
23
 
18
24
  end
19
25
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Cucumber
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
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: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Topper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-29 00:00:00.000000000 Z
11
+ date: 2015-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber