saucer 0.5.0 → 0.5.1

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: 923cb0c9802aacbf953fcc700171327b24272d91
4
- data.tar.gz: b8e51d90803363e2db9d8324a299977fde8eb0cb
3
+ metadata.gz: a5f21ddff0974db9cf6930a8344d010b8aa2a7c6
4
+ data.tar.gz: 4488033e1b91513f46917806312a5ef4368b2cc8
5
5
  SHA512:
6
- metadata.gz: 934f5bd06b89aaee80ea5cfa050701e15e46a939dea2040e83fcb93bc935dac9f2cdd4cf70c3a4bd8bda45f739654b496dea36333dfe1503f775c0a6d8650c71
7
- data.tar.gz: cf1adb327dab8ccf6fd38b6647760ae5c351487b146273392d9183cb959147030afe1948ef2ea8662f974291ff26d725e8eeabb7ba53fcd40ed9bbb589eca67b
6
+ metadata.gz: 7b37864310312c7a204e314f951a17800e37dc654e6218b397af0d4a562234be8fb53ade2638594c017d490aa83bb378fddfa9bf1bb8b3a576f555ad4c0c8abb
7
+ data.tar.gz: 9a575731b71aa3e1b326b635d4b369c6ea068a8581c32f71846b5567e1d35bff419f4de60e6385a9940a2573ef6cc5b7b07a82ac516257b53d82ca4333206442
@@ -35,7 +35,7 @@ module Saucer
35
35
  @page_object = page_objects.first if page_objects.size == 1
36
36
 
37
37
  @name = opt[:name] if opt.key? :name
38
- @build = opt[:build] || ['BUILD_TAG'] || "Build - #{Time.now.to_i}"
38
+ @build = opt[:build] || ENV['BUILD_TAG'] || "Build - #{Time.now.to_i}"
39
39
 
40
40
  if RSpec.respond_to?(:current_example) && !RSpec.current_example.nil?
41
41
  @name ||= RSpec.current_example.full_description
data/lib/saucer/driver.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Saucer
2
- class Driver
2
+ class Driver < Selenium::WebDriver::Remote::Driver
3
3
 
4
4
  attr_reader :driver, :config
5
5
 
@@ -10,14 +10,14 @@ module Saucer
10
10
  opt[:url] = @config.url
11
11
  opt[:desired_capabilities] = @config.capabilities
12
12
 
13
- @driver = Selenium::WebDriver.for(:remote, opt)
13
+ super
14
14
 
15
15
  sauce.job_name = @config.sauce[:name]
16
16
  sauce.build_name = @config.sauce[:build]
17
17
  end
18
18
 
19
19
  def sauce
20
- @sauce ||= Sauce.new(driver, @config)
20
+ @sauce ||= Sauce.new(self, @config)
21
21
  end
22
22
 
23
23
  def quit
@@ -38,18 +38,7 @@ module Saucer
38
38
  results = sauce.api.job.log_url[/(.*)\/.*$/, 1]
39
39
  Selenium::WebDriver.logger.warn("Sauce Labs results: #{results}")
40
40
 
41
- driver.quit
41
+ super
42
42
  end
43
-
44
- def method_missing(method_name, *arguments, &block)
45
- if driver.respond_to? method_name
46
- driver.send(method_name, *arguments, &block)
47
- end
48
- end
49
-
50
- def respond_to?(method_name, include_private = false)
51
- driver.respond_to?(method_name)
52
- end
53
-
54
43
  end
55
44
  end
@@ -1,3 +1,3 @@
1
1
  module Saucer
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
data/saucer.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.add_dependency 'parallel_split_test'
38
38
  spec.add_dependency 'require_all'
39
- spec.add_dependency 'selenium-webdriver', "~> 3.0", "< 3.4.3"
39
+ spec.add_dependency 'selenium-webdriver', "~> 3.0", ">= 3.4.4"
40
40
  spec.add_dependency 'sauce_whisk'
41
41
  spec.add_dependency 'sauce_platforms'
42
42
  spec.add_dependency 'json'
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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner
@@ -87,9 +87,9 @@ dependencies:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '3.0'
90
- - - "<"
90
+ - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: 3.4.3
92
+ version: 3.4.4
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
@@ -97,9 +97,9 @@ dependencies:
97
97
  - - "~>"
98
98
  - !ruby/object:Gem::Version
99
99
  version: '3.0'
100
- - - "<"
100
+ - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: 3.4.3
102
+ version: 3.4.4
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: sauce_whisk
105
105
  requirement: !ruby/object:Gem::Requirement