sauce 3.5.1 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/sauce/config.rb +5 -2
- data/lib/sauce/selenium.rb +1 -0
- data/lib/sauce/version.rb +1 -1
- data/spec/sauce/config/config_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGZiODg1NTU4MzM1NmJlMDlkZmIxY2QwZWNkY2NiYWU3NGYyZjk3Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGEyMDFjMjQzNjlkOWU1YzMwNzc5NzBjZjIxMzU4OTExMDk2ZmYzMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTdhODQ4OTMwMGJhZTVlYjQzMDQ4NzEyZDExZWIxYjg0Y2M3MzE1MWEzYzcw
|
10
|
+
NDJjMjA1NTgwNDIwMGRjMmNjOTc2MzhhZTBkYzJkNjkxYzgyZmJhYzdhMmQx
|
11
|
+
YjY4ZjQzMzQ1ZTZkOGE3MzZhZjMyZmNkYjc5Yzg0MzYwODhmY2M=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDIwMjVhNmZhM2ZiYmY4MzUxOTVmYzZlNWIzNmY0Y2IyM2JmZDc4ZTVjYjk4
|
14
|
+
NDI0MjI3MTA5Y2NjMTVmMWIyZWE5ZTE5OTYyZjFjZWQwMTEwN2FjMmFmNDAx
|
15
|
+
MzcwYzczNzYyOWIwYjQ2OGY1NWQyMTRkOTk2MGE0M2ZhOTAxZGI=
|
data/lib/sauce/config.rb
CHANGED
@@ -100,7 +100,10 @@ module Sauce
|
|
100
100
|
@undefaulted_opts.merge! load_options_from_yaml
|
101
101
|
@undefaulted_opts.merge! load_options_from_environment
|
102
102
|
@undefaulted_opts.merge! load_options_from_heroku unless ENV["SAUCE_DISABLE_HEROKU_CONFIG"]
|
103
|
-
|
103
|
+
|
104
|
+
global_config = Sauce.get_config
|
105
|
+
@undefaulted_opts.merge! global_config.opts if global_config.opts
|
106
|
+
@whitelisted_capabilities = global_config.whitelisted_capabilities
|
104
107
|
end
|
105
108
|
|
106
109
|
@undefaulted_opts.merge! opts
|
@@ -247,7 +250,7 @@ module Sauce
|
|
247
250
|
|
248
251
|
def browser_version
|
249
252
|
if single_browser_set?
|
250
|
-
return @undefaulted_opts[:browser_version]
|
253
|
+
return @undefaulted_opts[:browser_version] || @undefaulted_opts[:version]
|
251
254
|
end
|
252
255
|
if !ENV["TEST_ENV_NUMBER"] && @opts[:browsers]
|
253
256
|
@opts[:browsers][0][2]
|
data/lib/sauce/selenium.rb
CHANGED
@@ -48,6 +48,7 @@ module Sauce
|
|
48
48
|
@config = Sauce::Config.new(opts)
|
49
49
|
http_client = ::Selenium::WebDriver::Remote::Http::Persistent.new
|
50
50
|
http_client.timeout = 300 # Browser launch can take a while
|
51
|
+
|
51
52
|
@driver = ::Selenium::WebDriver.for(:remote,
|
52
53
|
:url => "http://#{@config.username}:#{@config.access_key}@#{@config.host}:#{@config.port}/wd/hub",
|
53
54
|
:desired_capabilities => @config.to_desired_capabilities,
|
data/lib/sauce/version.rb
CHANGED
@@ -269,6 +269,13 @@ describe Sauce::Config do
|
|
269
269
|
config.to_desired_capabilities[:new_option].should include 'elderflower'
|
270
270
|
end
|
271
271
|
|
272
|
+
it 'should include them when created anew' do
|
273
|
+
config.whitelist :new_option
|
274
|
+
config_two = Sauce::Config.new({})
|
275
|
+
config_two[:new_option] = 'elderflower'
|
276
|
+
config_two.to_desired_capabilities[:new_option].should include 'elderflower'
|
277
|
+
end
|
278
|
+
|
272
279
|
it 'should allow multiple exceptions' do
|
273
280
|
config[:new_option] = 'elderflower'
|
274
281
|
config[:another_option] = 'mint'
|
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.2
|
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: 2014-09-
|
17
|
+
date: 2014-09-10 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rspec
|