cucumber-pro 0.0.16 → 0.0.17

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: 19d520cb0cc5af6bca1bf64ebea3c1586d9bff44
4
- data.tar.gz: df922e21d31470ec5899250d50161442ef3dea5e
3
+ metadata.gz: de2044d6a9502513bead35d130c9d8de3ef2eb99
4
+ data.tar.gz: ceba4f432ff8eafd228db643ec3aa4bd493d0ee6
5
5
  SHA512:
6
- metadata.gz: 37c1e174da0633b6add9553a8aee2556c4943101af82393d0dfb9d554c9640a841adbfbd59d957e99fffbbcaf8b2f4d6b8088c04611863ef0ffefd82a5adc2c1
7
- data.tar.gz: 842f2f9913c1722e6ecf48275e4ccf8fab45d945925f8ec8acc5df9e9292dd20e55528d05ec6ddaeb70787579b5bc9bbc754dcfbcc74ff87c1a88eb8fc172112
6
+ metadata.gz: 14e555e5b40f689cca34b654647576a71bed5857d04b6d987466d03333967ec78d38b307858c6b9cd3c07332d9104e6cd222c964743c5259777127394486261d
7
+ data.tar.gz: ee6f3babae84e9254423ee4fd3edc1a72462eaf6feafc0090dcd535fc624920c2d8d55d6ab5b077500e1164556c6dd7ec71675512c7ed5392f394f9da3323495
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.17](https://github.com/cucumber-ltd/cucumber-pro-ruby/compare/v0.0.16...v0.0.17) (2014-10-02)
2
+
3
+ * Another Bugfix for Windows - convert backslash to slash in file paths everywhere.
4
+
1
5
  ## [0.0.16](https://github.com/cucumber-ltd/cucumber-pro-ruby/compare/v0.0.15...v0.0.16) (2014-10-02)
2
6
 
3
7
  * Bugfix for Windows - convert backslash to slash in file paths.
@@ -14,9 +14,6 @@ module Cucumber
14
14
 
15
15
  def before_feature(feature)
16
16
  @path = feature.file # we need this because table_row doens't have a file_colon_line
17
- if Cucumber::WINDOWS
18
- @path = @path.gsub(/\\/, '/')
19
- end
20
17
  end
21
18
 
22
19
  def before_step_result(*args)
@@ -68,7 +65,7 @@ module Cucumber
68
65
 
69
66
  def send_step_result(path, line, status)
70
67
  @session.send_message({
71
- path: path,
68
+ path: forward_slashify(path),
72
69
  location: line.to_i,
73
70
  mime_type: 'application/vnd.cucumber.test-step-result+json',
74
71
  body: { status: status }
@@ -77,13 +74,17 @@ module Cucumber
77
74
 
78
75
  def send_test_case_result(path, line, status)
79
76
  @session.send_message({
80
- path: path,
77
+ path: forward_slashify(path),
81
78
  location: line.to_i,
82
79
  mime_type: 'application/vnd.cucumber-pro.test-case-result+json',
83
80
  body: { status: status }
84
81
  })
85
82
  end
86
83
 
84
+ def forward_slashify(path)
85
+ Cucumber::WINDOWS ? path.gsub(/\\/, '/') : path
86
+ end
87
+
87
88
  def get_build_number
88
89
  Pro.config.build_number || SecureRandom.hex
89
90
  end
@@ -1 +1 @@
1
- 0.0.16
1
+ 0.0.17
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wynne
@@ -194,7 +194,7 @@ rubyforge_project:
194
194
  rubygems_version: 2.0.14
195
195
  signing_key:
196
196
  specification_version: 4
197
- summary: cucumber-pro-0.0.16
197
+ summary: cucumber-pro-0.0.17
198
198
  test_files:
199
199
  - features/publish_results.feature
200
200
  - features/security.feature