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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzNiZjBiY2JjMDE5ZDc0MTZlMDE1Y2I2ZjMxZGZjZjU1YjdkNDM3Yg==
4
+ NGZiODg1NTU4MzM1NmJlMDlkZmIxY2QwZWNkY2NiYWU3NGYyZjk3Yw==
5
5
  data.tar.gz: !binary |-
6
- ODNjNGE3NjgwMmM5YThmZTMxNzhmODNmMmRkYTBmOWJhZDAwMjg1MQ==
6
+ MGEyMDFjMjQzNjlkOWU1YzMwNzc5NzBjZjIxMzU4OTExMDk2ZmYzMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjBlZjE3ODNkODMzYmM5NmVjYTkxMzFlN2Q4NDZhNGZiYjEyMTczOTk0YTNj
10
- Yzk5OWQxZDQxMGIzZDQ3ODdkYzUwM2U5YTUyNmJkOTQ5MjczMGVjOWYzMDRl
11
- N2Y5ZjE4MTI3M2RjMzA5ZDQyYWIxMDY0MGY0OGIxNjYzZjQ2ZTE=
9
+ YTdhODQ4OTMwMGJhZTVlYjQzMDQ4NzEyZDExZWIxYjg0Y2M3MzE1MWEzYzcw
10
+ NDJjMjA1NTgwNDIwMGRjMmNjOTc2MzhhZTBkYzJkNjkxYzgyZmJhYzdhMmQx
11
+ YjY4ZjQzMzQ1ZTZkOGE3MzZhZjMyZmNkYjc5Yzg0MzYwODhmY2M=
12
12
  data.tar.gz: !binary |-
13
- YTkxZjYwZDY5M2Y2ZjY4OTUyYTAzNjhiYWNkYTY5OWViMmI4MWM1MGQ3MGFj
14
- MTM0ZjVkNGU0OGJiNGJiZTJkYWM1YmQyNmZhMmY2NTVkMjdhMDM5NTQ3NjAy
15
- M2UzMDJkN2U3ODU0ODBmM2IxY2ZkMzJiYjIyNzI0ZDU4MjRkOTA=
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
- @undefaulted_opts.merge! Sauce.get_config.opts rescue {}
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]
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Sauce
2
2
  MAJOR_VERSION = '3.5'
3
- PATCH_VERSION = '1'
3
+ PATCH_VERSION = '2'
4
4
 
5
5
  def version
6
6
  "#{MAJOR_VERSION}.#{PATCH_VERSION}"
@@ -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.1
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-05 00:00:00.000000000 Z
17
+ date: 2014-09-10 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rspec