sauce 3.0.5 → 3.0.6

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
- NGZjNmJlNmRmY2NiYWNjYmRlOWNjN2Y0ZDhmYTg4MmFhMWJlNzJhMQ==
4
+ NzZiODQxZGRmYzBlM2RhN2YwZDc5NGI3OTc0NjliYWM2NGUyMjE4Mw==
5
5
  data.tar.gz: !binary |-
6
- ZTA3Y2FmYjU1ZjJiNTkxNThmNGYzMjAwNzM3YTFmNDVkYTVlNzIyMA==
6
+ OGZjOTMxOTJiN2U0MjM2YjIyNjUxNTI5MDEyNjJkOGUzZTY5YjcxNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MmNhNDRmNjc5NDg2MTQ1MTYxNmU0Y2UyZGZlYmVlMDMwZjg4NTIzOGNkZWQx
10
- MDQwNDNlZjAwN2QwOTM1MjFiOGM0NmRlNzI0ODkwNmY4NzYwN2Q0MDlhZmI1
11
- ZjFmOTQ2ZGU3MjZkODQ4NzI5MWM0MzlhM2ZiOTE2ZjkzMmI1MzE=
9
+ NGM4M2QwYWYzNTZiZGUyNzA1OTc3MmU2YWEyNjg2MDAwNWJmYzNmNTAwZGJm
10
+ MTRiZWNiMzgwYzQ2YzliYWE4NjNkZjM4ODAzMjNhYzBiZWU5MDUzNjcxNmQ5
11
+ MTM4ODE3MzBhYTU3YzdmMmJkNWQ2NmU2MzM3MmQ2MDVlMTU0ZWE=
12
12
  data.tar.gz: !binary |-
13
- YzIwYmZlOWYxZTRhNzNiY2NkZWI0MDZlNmI5ZjQ4MTQ0YzljMjFmMmMyMmQ5
14
- YjIzY2I0NmY1NmI3NmFiNjZjZWI1ZjYxMzdhMzgzYzQyZjZjMjZjMGNiYmNl
15
- NjgyNGU0ZmQ0MTM3NDE1MmEwNTY4Nzg3MDM2ZTQ0ZDQ4ODc3N2I=
13
+ YmZlNGNmNWViNTVhN2NlZTUwZDZkNTUxODM2MTUyMzI5MDhkZDI5NWE3OThk
14
+ MGU4MjMzNDc3YTZlMGRkYmE5MmMyZDFiNDQ0Nzg3MmZjOThjMDkzOTIzNDRm
15
+ ODRkNWFiNGM4OGEyNzA2NGMyZDUxOWVkOTI4NmZkM2JmMTU5MDM=
data/lib/sauce/config.rb CHANGED
@@ -56,7 +56,9 @@ module Sauce
56
56
 
57
57
  SAUCE_OPTIONS = %w{record-video record-screenshots capture-html tags
58
58
  sauce-advisor single-window user-extensions-url firefox-profile-url
59
- max-duration idle-timeout build custom-data}
59
+ max-duration idle-timeout build custom-data tunnel-identifier
60
+ selenium-version command-timeout prerun prerun-args screen-resolution
61
+ disable-popup-handler avoid-proxy public}
60
62
 
61
63
  def initialize(opts={})
62
64
  @opts = {}
@@ -123,17 +125,21 @@ module Sauce
123
125
  end
124
126
 
125
127
  def to_desired_capabilities
126
- {
128
+ desired_capabilities = {
127
129
  :browserName => BROWSERS[browser] || browser,
128
130
  :version => browser_version,
129
131
  :platform => PLATFORMS[os] || os,
130
132
  :name => @opts[:job_name],
131
133
  :client_version => client_version
132
- }.update(@opts.reject { |k, v|
133
- [:host, :port, :browser, :browser_version, :os, :job_name,
134
- :browsers, :perfile_browsers, :start_tunnel,
135
- :start_local_application, :local_application_port].include? k
136
- })
134
+ }
135
+
136
+ SAUCE_OPTIONS.each do |opt|
137
+ [opt, opt.gsub("-", "_")].map(&:to_sym).each do |sym|
138
+ desired_capabilities[opt.to_sym] = @opts[sym] if @opts.include? sym
139
+ end
140
+ end
141
+
142
+ desired_capabilities
137
143
  end
138
144
 
139
145
  def browsers
data/lib/sauce/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Sauce
2
2
  MAJOR_VERSION = '3.0'
3
- PATCH_VERSION = '5'
3
+ PATCH_VERSION = '6'
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.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Lacey
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2013-07-10 00:00:00.000000000 Z
16
+ date: 2013-07-17 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: capybara