saucer 0.6.3 → 0.6.4

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: 2394cf15e111473dc1f9cc38053f397f9985a3e5
4
- data.tar.gz: 0ac49cf534142af4c89ad2d36be561b3760727e6
3
+ metadata.gz: 8d33e4dedd27f235473ebe168e937341be939aa3
4
+ data.tar.gz: 587a6adfcb837922f40c508a550db2f84f815a0a
5
5
  SHA512:
6
- metadata.gz: 2b3ea36390dec857fc0bd1b649b49b8b0d7ad506f939ea9a39e01833642999d286fb4e83620f754fa52f80cfe02599b191472e96c39dcce35ab2ac6e2b6ca9cc
7
- data.tar.gz: 2574ff6acec850167ed62cc5303dfd191f860bcfa9d53db8556fdd3e7a8136980cac98edae35a910b06991ff477d20a824df4e79be67cf82edbe5042fa092345
6
+ metadata.gz: e2e0c7732193c8cf3782a92097abf502126316e1594ed00d5effe3041ef564f3ee47f78b08d60669af838cd8f8dee6a0f14f3b43c3be28d3d44b5b865dfb33a3
7
+ data.tar.gz: 641c2a891889fc370d4f88fcda087d4be9d464352a33338e82714b0b5aeac6163b269d546e2480afa57324b0f7848becc2c80026f526200d1dec4fedbb808e26
data/lib/saucer/driver.rb CHANGED
@@ -3,10 +3,13 @@ module Saucer
3
3
 
4
4
  attr_reader :driver, :config
5
5
 
6
- def initialize(opt = {})
6
+ def initialize(*args)
7
+ browser = args.pop if args.first.is_a? Symbol
8
+ browser = nil if browser == :remote
9
+ opt = args.first || {}
7
10
  unless opt[:desired_capabilities].is_a? Selenium::WebDriver::Remote::Capabilities
8
11
  opts = opt[:desired_capabilities] || {}
9
- browser = opt.key?(:browser_name) ? opt[:browser_name].downcase.to_sym : :chrome
12
+ browser = opt.key?(:browser_name) ? opt[:browser_name].downcase.to_sym : browser || :chrome
10
13
  opt[:desired_capabilities] = Selenium::WebDriver::Remote::Capabilities.send(browser, opts)
11
14
  end
12
15
  @config = Config::Selenium.new(opt)
@@ -14,7 +17,7 @@ module Saucer
14
17
  opt[:url] = @config.url
15
18
  opt[:desired_capabilities] = @config.capabilities
16
19
 
17
- super
20
+ super(opt)
18
21
 
19
22
  sauce.job_name = @config.sauce[:name]
20
23
  sauce.build_name = @config.sauce[:build]
@@ -1,3 +1,3 @@
1
1
  module Saucer
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saucer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner