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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf1ac30663f0230515af484aa14d2de9a51e0dba
4
- data.tar.gz: ec92ecb4788c3e81988536e62b6bd3f3048fbc20
3
+ metadata.gz: 837ecf15e5fc10190c322695f8c91f43e076272c
4
+ data.tar.gz: fc76e9f6161d92363e4e97bcbba17983cf993756
5
5
  SHA512:
6
- metadata.gz: 2e138b92a567eb111d1e72ed556b1329c190a796f349f5a685be7833031b8ed31d789f6d504008b2474d48f65981f39859c07c338038431839c2b9ed4f57a149
7
- data.tar.gz: 4cb17bcd1da62503ef940270b0b13820cfed7f039d573fea72878e6af2b21000ea158db970cc68b3fea34b60799d220f159df982ce3a8dd6b2b1ccf6d52caf82
6
+ metadata.gz: 820308b902e44d0275d81b5783d55de60185c49be46e12cd15610b183f3decf83455a411951c685c7ee1bd3457c576d1b48466962ff2c1d38d612146aaf063d4
7
+ data.tar.gz: 3149a9407c0cf6cc41463861af7bceaf71cfe2d802520bfe05b166074d5e2e12a76a097401a5a785e2a9051655862f00889ff59515197f039bcec3ca76cd3e47
@@ -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 "Using browser from driver_pool (browser.session_id)."
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
@@ -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
@@ -140,7 +140,9 @@ begin
140
140
  example.instance_variable_set(:@exception, nil)
141
141
 
142
142
  @selenium = selenium
143
- Sauce.driver_pool[Thread.current.object_id] = @selenium
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)
@@ -41,7 +41,7 @@ module Sauce
41
41
 
42
42
  attr_reader :config, :driver, :watir, :raw_driver
43
43
 
44
- def_delegator :@driver, :execute_script
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
- @driver.send(meth, *args)
78
+ raw_driver.send(meth, *args)
79
79
  end
80
80
 
81
81
  def session_id
@@ -1,6 +1,6 @@
1
1
  module Sauce
2
2
  MAJOR_VERSION = '3.5'
3
- PATCH_VERSION = '7'
3
+ PATCH_VERSION = '8'
4
4
 
5
5
  def version
6
6
  "#{MAJOR_VERSION}.#{PATCH_VERSION}"
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.7
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-08 00:00:00.000000000 Z
17
+ date: 2015-09-09 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rspec