sauce 3.5.7 → 3.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sauce/capybara.rb +2 -1
- data/lib/sauce/config.rb +4 -0
- data/lib/sauce/rspec/rspec.rb +4 -1
- data/lib/sauce/selenium.rb +2 -2
- data/lib/sauce/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 837ecf15e5fc10190c322695f8c91f43e076272c
|
4
|
+
data.tar.gz: fc76e9f6161d92363e4e97bcbba17983cf993756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 820308b902e44d0275d81b5783d55de60185c49be46e12cd15610b183f3decf83455a411951c685c7ee1bd3457c576d1b48466962ff2c1d38d612146aaf063d4
|
7
|
+
data.tar.gz: 3149a9407c0cf6cc41463861af7bceaf71cfe2d802520bfe05b166074d5e2e12a76a097401a5a785e2a9051655862f00889ff59515197f039bcec3ca76cd3e47
|
data/lib/sauce/capybara.rb
CHANGED
@@ -99,7 +99,7 @@ module Sauce
|
|
99
99
|
# Returns the rspec created browser if it exists
|
100
100
|
def rspec_browser
|
101
101
|
if browser = Sauce.driver_pool[Thread.current.object_id]
|
102
|
-
Sauce.logger.debug "
|
102
|
+
Sauce.logger.debug "Capybara using browser from driver_pool (browser.session_id)."
|
103
103
|
@using_rspec_browser = true
|
104
104
|
else
|
105
105
|
@using_rspec_browser = false
|
@@ -123,6 +123,7 @@ module Sauce
|
|
123
123
|
@browser = nil
|
124
124
|
|
125
125
|
# Rethink how to do this. RSpec still references the driver pool.
|
126
|
+
Sauce.logger.debug "Capybara - Removing driver for #{Thread.current.object_id} from driver pool."
|
126
127
|
Sauce.driver_pool[Thread.current.object_id] = nil
|
127
128
|
@using_rspec_browser = nil
|
128
129
|
end
|
data/lib/sauce/config.rb
CHANGED
@@ -216,6 +216,8 @@ module Sauce
|
|
216
216
|
end
|
217
217
|
|
218
218
|
def caps_for_location(file, linenumber=nil)
|
219
|
+
Sauce.logger.debug "Finding capabilities for #{file}"
|
220
|
+
Sauce.logger.debug " Line #{linenumber}" unless linenumber.nil?
|
219
221
|
Sauce::Config.called_from_integrations
|
220
222
|
perfile_browsers = @opts[:perfile_browsers]
|
221
223
|
|
@@ -227,8 +229,10 @@ module Sauce
|
|
227
229
|
else
|
228
230
|
platforms = perfile_browsers[file]
|
229
231
|
end
|
232
|
+
Sauce.logger.debug " Found - #{platforms}"
|
230
233
|
platforms.map { |p| [p['os'], p['browser'], p['version'], (p['caps'] || {})] }
|
231
234
|
else
|
235
|
+
Sauce.logger.debug "No perfile browsers; Using browsers array instead."
|
232
236
|
browsers
|
233
237
|
end
|
234
238
|
end
|
data/lib/sauce/rspec/rspec.rb
CHANGED
@@ -140,7 +140,9 @@ begin
|
|
140
140
|
example.instance_variable_set(:@exception, nil)
|
141
141
|
|
142
142
|
@selenium = selenium
|
143
|
-
|
143
|
+
thread_id = Thread.current.object_id
|
144
|
+
Sauce.logger.debug "RSpec - Thread #{thread_id} storing driver #{@selenium.session_id} in driver pool."
|
145
|
+
Sauce.driver_pool[thread_id] = @selenium
|
144
146
|
example.metadata[:sauce_public_link] = SauceWhisk.public_link(@selenium.session_id)
|
145
147
|
|
146
148
|
begin
|
@@ -162,6 +164,7 @@ begin
|
|
162
164
|
Sauce.logger.error "Error running post job hooks"
|
163
165
|
Sauce.logger.error e
|
164
166
|
end
|
167
|
+
Sauce.logger.debug "RSpec - Removing driver for #{Thread.current.object_id} from driver pool."
|
165
168
|
Sauce.driver_pool.delete Thread.current.object_id
|
166
169
|
end
|
167
170
|
if (exceptions.length > 0)
|
data/lib/sauce/selenium.rb
CHANGED
@@ -41,7 +41,7 @@ module Sauce
|
|
41
41
|
|
42
42
|
attr_reader :config, :driver, :watir, :raw_driver
|
43
43
|
|
44
|
-
def_delegator :@
|
44
|
+
def_delegator :@raw_driver, :execute_script
|
45
45
|
|
46
46
|
def self.used_at_least_once?
|
47
47
|
@used_at_least_once || false
|
@@ -75,7 +75,7 @@ module Sauce
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def method_missing(meth, *args)
|
78
|
-
|
78
|
+
raw_driver.send(meth, *args)
|
79
79
|
end
|
80
80
|
|
81
81
|
def session_id
|
data/lib/sauce/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sauce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dylan Lacey
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2015-09-
|
17
|
+
date: 2015-09-09 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rspec
|