RDee 0.7 → 0.8

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: ba156a4bf434b0f37306a71ecf82fddf138ceedf
4
- data.tar.gz: 0ef24619d7cb972a0d4dc9a5533d5d0c7bc16435
3
+ metadata.gz: 172c691a21baa5997beb5d750136ed2afc72bae0
4
+ data.tar.gz: 5daa937a078c5372b3936be8fb6bada94b794351
5
5
  SHA512:
6
- metadata.gz: 9285bcec378656ba74345a5b90ec92fe61ecbbbeff4ce5e34b4a3ccdb18b1a89688985bda52b48130f08c0e077397e18097538683c633778c2b18ab566ed84de
7
- data.tar.gz: 05455af04a594cbae645ba4ce47e4bf5ff56824e5b44b46209fd0879537e47f169109a30e9af941fffbf24bece81d4529ab611d2c7ca4689e0c7aeeb5429b300
6
+ metadata.gz: cd0680641d78a1f83e136af89ac01104afb475a20d49421d96b6fc0b861c865731f99ce07b0a9005a5ccefbd7689abd6bd7f457ddbdc89ec899ec3b1d1dc380d
7
+ data.tar.gz: 657f3528866f1f2d1aa4f79f0d2aeef1bbf35baf53b678f65f21836fb4c8cdd906196d19f090b582b2c250a6deede50a26a68d2a977e4bb7c9c0ffe8b5522915
data/.gitignore CHANGED
@@ -21,3 +21,4 @@ tmp
21
21
  *.o
22
22
  *.a
23
23
  mkmf.log
24
+ .DS_Store
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ === Release 0.8 / 3 August 2017
2
+ * Enhancements
3
+ * Forced net-http-persistent to be less than 3.0 to fix issue with older Windows systems
4
+
1
5
  === Release 0.7 / 23 March 2017
2
6
  * Enhancements
3
7
  * Full support for all iOS devices
@@ -59,7 +59,6 @@ Then(/^I should see the text "(.*?)"$/) do |message|
59
59
  expect(@current_page.text).to include message
60
60
  end
61
61
 
62
-
63
62
  And(/^I select the first title link$/) do
64
63
  on(CheezyWorld) do |page|
65
64
  @first_heading = page.first_heading_element.text
@@ -5,7 +5,7 @@ module RDee
5
5
  options = {}
6
6
  options.merge!(chrome_options) if need_chrome_options? target
7
7
  options.merge!(firefox_options) if need_firefox_options? target
8
- options.merge!(ie_options) if need_ie_optons? target
8
+ options.merge!(ie_options) if need_ie_options? target
9
9
  options.merge!(safari_options) if need_safari_options? target
10
10
  options.merge!(ios_options) if need_ios_options? target
11
11
  options
@@ -19,7 +19,7 @@ module RDee
19
19
  not firefox_options.nil? and target.to_s.include? 'firefox'
20
20
  end
21
21
 
22
- def need_ie_optons?(target)
22
+ def need_ie_options?(target)
23
23
  not ie_options.nil? and target.to_s.include? 'ie'
24
24
  end
25
25
 
@@ -5,34 +5,34 @@ module RDee
5
5
  include MobileDevices
6
6
  include MobileCapabilities
7
7
 
8
- def capabilities(platform, version, host, existing_capabilities)
9
- existing_capabilities = {} unless existing_capabilities
10
- return mobile_capabilities(platform, version, existing_capabilities) if mobile?(platform)
11
- browser_capabilities(platform, version, host, existing_capabilities)
8
+ def capabilities(platform, version, host, existing_caps)
9
+ existing_caps = {} unless existing_caps
10
+ return mobile_capabilities(platform, version, existing_caps) if mobile?(platform)
11
+ browser_capabilities(platform, version, host, existing_caps)
12
12
  end
13
13
 
14
- def browser_capabilities(platform, version, host, existing_capabilities)
14
+ private
15
+
16
+ def browser_capabilities(platform, version, host, existing_caps)
15
17
  capabilities = Selenium::WebDriver::Remote::Capabilities.send platform
16
18
  capabilities.version = version unless version.nil?
17
19
  capabilities.platform = host unless host.nil?
18
- existing_capabilities.each do |key, value|
20
+ existing_caps.each do |key, value|
19
21
  capabilities[key] = value
20
22
  end
21
23
  capabilities
22
24
  end
23
25
 
24
- def mobile_capabilities(platform, version, existing_capabilities)
25
- existing_capabilities.merge!(additional_capabilities_for(platform))
26
- capabilities = Selenium::WebDriver::Remote::Capabilities
27
- .new({
28
- platformVersion: version,
29
- platformName: mobile_platform[platform],
30
- browserName: mobile_browsers[platform],
31
- platform: :mac,
32
- javascript_enabled: true
33
- }.merge(existing_capabilities))
34
-
26
+ def mobile_capabilities(platform, version, existing_caps)
27
+ existing_caps.merge!(additional_capabilities_for(platform))
28
+ Selenium::WebDriver::Remote::Capabilities.new(
29
+ {
30
+ platformVersion: version,
31
+ platformName: mobile_platform[platform],
32
+ browserName: mobile_browsers[platform],
33
+ platform: :mac,
34
+ javascript_enabled: true
35
+ }.merge(existing_caps))
35
36
  end
36
-
37
37
  end
38
38
  end
data/lib/rdee/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RDee
2
- VERSION = "0.7"
2
+ VERSION = "0.8"
3
3
  end
data/rdee.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency 'watir', '~> 6.0'
22
- spec.add_dependency 'net-http-persistent'
22
+ spec.add_dependency 'net-http-persistent', "< 3.0.0"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.6"
25
25
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RDee
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.7'
4
+ version: '0.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey S. Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-23 00:00:00.000000000 Z
11
+ date: 2017-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: watir
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: net-http-persistent
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "<"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 3.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project:
170
- rubygems_version: 2.6.11
170
+ rubygems_version: 2.5.2
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Dynamically create a connection for Selenium or Watir.