RDee 0.7 → 0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/ChangeLog +4 -0
- data/features/step_definitions/rdee_steps.rb +0 -1
- data/lib/rdee/additional_options.rb +2 -2
- data/lib/rdee/desired_capabilities.rb +18 -18
- data/lib/rdee/version.rb +1 -1
- data/rdee.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 172c691a21baa5997beb5d750136ed2afc72bae0
|
4
|
+
data.tar.gz: 5daa937a078c5372b3936be8fb6bada94b794351
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd0680641d78a1f83e136af89ac01104afb475a20d49421d96b6fc0b861c865731f99ce07b0a9005a5ccefbd7689abd6bd7f457ddbdc89ec899ec3b1d1dc380d
|
7
|
+
data.tar.gz: 657f3528866f1f2d1aa4f79f0d2aeef1bbf35baf53b678f65f21836fb4c8cdd906196d19f090b582b2c250a6deede50a26a68d2a977e4bb7c9c0ffe8b5522915
|
data/.gitignore
CHANGED
data/ChangeLog
CHANGED
@@ -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
|
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
|
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,
|
9
|
-
|
10
|
-
return mobile_capabilities(platform, version,
|
11
|
-
browser_capabilities(platform, version, host,
|
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
|
-
|
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
|
-
|
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,
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
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.
|
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
|
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:
|
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:
|
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.
|
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.
|