sauce-cucumber 3.1.0 → 3.1.1
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 +8 -8
- data/lib/sauce/cucumber.rb +18 -14
- data/sauce-cucumber.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTU1MTg0NjY2NTI2YTg3OGEzNzkxZGFiMTc0NGQzZTI1MTg4NjUzYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDkzOGIwZTg0NzZkMzA5MmIyZDY1MzAxNWM5YTZhNDA2M2MzMTNkOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTcwZjAzNzU2N2MwMjNiOGQzOWRkMzgyNDcxZTBjODRlMjIwNDMzNTRhODBk
|
10
|
+
MWFmYTM5OGZjYThhMzAyNGVhNjMwMDlhYzNkODI2Y2VjYWQ1NTJjNjYzMmQx
|
11
|
+
NzU3ZTFjZGRmZGU2ZGVhOWU4ZjIyN2Q5ZGRiZDVmZTM2MjE2NGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2I1NTQxZWQ0OGI2MDA3NDIyZDJlMWZkOTZjM2IyNTM4YTMwMDRmYWJiMjNm
|
14
|
+
ZjIyYTI4MjFiZDMzNTM1MDY4NjhhNTZiYjM0MTJjMTQyNDRjNjY3N2UwYTNk
|
15
|
+
N2YzMzM0NTZmZmZjMTJkZDgxOWEwZmU1OGI3YTQyNmVkZmNjZGM=
|
data/lib/sauce/cucumber.rb
CHANGED
@@ -85,21 +85,8 @@ module Sauce
|
|
85
85
|
c[:name] = Sauce::Capybara::Cucumber.name_from_scenario(scenario)
|
86
86
|
end
|
87
87
|
|
88
|
-
if using_jenkins?
|
89
|
-
# If we're running under Jenkins, we should dump the
|
90
|
-
# `SauceOnDemandSessionID` into the Console Output for the Sauce OnDemand
|
91
|
-
# Jenkins plugin.
|
92
|
-
# See: <https://github.com/sauce-labs/sauce_ruby/issues/48>
|
93
|
-
output = []
|
94
|
-
output << "\nSauceOnDemandSessionID=#{session_id}"
|
95
|
-
# The duplication in the scenario_name comes from the fact that the
|
96
|
-
# JUnit formatter seems to do the same, so in order to get the sauce
|
97
|
-
# OnDemand plugin for Jenkins to co-operate, we need to double it up as
|
98
|
-
# well
|
99
|
-
output << "job-name=#{Sauce::Capybara::Cucumber.jenkins_name_from_scenario(scenario)}"
|
100
|
-
puts output.join(' ')
|
101
|
-
end
|
102
88
|
filename = file_name_from_scenario(scenario)
|
89
|
+
|
103
90
|
Sauce::Config.new.browsers_for_file("./#{filename}").each do |os, browser, version|
|
104
91
|
@selenium = Sauce::Selenium2.new({:os => os,
|
105
92
|
:browser => browser,
|
@@ -113,6 +100,23 @@ module Sauce
|
|
113
100
|
# off of the driver now to make sure we have it after `block.call`
|
114
101
|
session_id = driver.browser.session_id
|
115
102
|
|
103
|
+
if using_jenkins?
|
104
|
+
# If we're running under Jenkins, we should dump the
|
105
|
+
# `SauceOnDemandSessionID` into the Console Output for the Sauce OnDemand
|
106
|
+
# Jenkins plugin.
|
107
|
+
# See: <https://github.com/sauce-labs/sauce_ruby/issues/48>
|
108
|
+
output = []
|
109
|
+
output << "\nSauceOnDemandSessionID=#{session_id}"
|
110
|
+
# The duplication in the scenario_name comes from the fact that the
|
111
|
+
# JUnit formatter seems to do the same, so in order to get the sauce
|
112
|
+
# OnDemand plugin for Jenkins to co-operate, we need to double it up as
|
113
|
+
# well
|
114
|
+
job_name = "job-name=#{Sauce::Capybara::Cucumber.jenkins_name_from_scenario(scenario)}"
|
115
|
+
job_name << " (#{browser} #{version} on #{os}" if ENV["TEST_ENV_NUMBER"]
|
116
|
+
output << job_name
|
117
|
+
puts output.join(' ')
|
118
|
+
end
|
119
|
+
|
116
120
|
job = Sauce::Job.new('id' => session_id,
|
117
121
|
'name' => job_name,
|
118
122
|
'custom-data' => custom_data)
|
data/sauce-cucumber.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "sauce-cucumber"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = "#{Sauce::MAJOR_VERSION}.
|
16
|
+
gem.version = "#{Sauce::MAJOR_VERSION}.1"
|
17
17
|
|
18
18
|
gem.add_dependency('sauce', "~> #{Sauce.version}")
|
19
19
|
gem.add_dependency('cucumber', '>= 1.2.0')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sauce-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- R. Tyler Croy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sauce
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.1.
|
19
|
+
version: 3.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.1.
|
26
|
+
version: 3.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: cucumber
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|