appium_lib_core 1.8.1 → 1.8.2
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/CHANGELOG.md +9 -0
- data/lib/appium_lib_core.rb +3 -1
- data/lib/appium_lib_core/common/base/bridge.rb +0 -10
- data/lib/appium_lib_core/driver.rb +26 -0
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01d089946f3a58327af9defa31a6f0f1baffaa38
|
4
|
+
data.tar.gz: 669ae07de3e6fbc7d0c5b9fe39d6a27fb52cb39a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c3537a1bac0b41825c9891be008c1f7e6c1dbe4e087c8337ab58d4fc10805da3d90b70db6faba7652f328e815d355288eca5f055f478e381b1d52147e3e19db
|
7
|
+
data.tar.gz: 41757a2e778094a53486dddfe109fd496d25c0599764d8779a3a79c4d3b2875ebe6c7a37e5237b53e16f5661ae19480f508678a1b89328ce432bb558557c9142
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,15 @@ All notable changes to this project will be documented in this file.
|
|
8
8
|
|
9
9
|
### Deprecations
|
10
10
|
|
11
|
+
## [1.8.2] - 2018-07-17
|
12
|
+
### Enhancements
|
13
|
+
|
14
|
+
### Bug fixes
|
15
|
+
- Available packages over HTTP [#106](https://github.com/appium/ruby_lib_core/issues/106)
|
16
|
+
|
17
|
+
### Deprecations
|
18
|
+
- Remove warning of camelCase capability for W3C format
|
19
|
+
|
11
20
|
## [1.8.1] - 2018-07-13
|
12
21
|
### Enhancements
|
13
22
|
|
data/lib/appium_lib_core.rb
CHANGED
@@ -2,7 +2,6 @@ require 'selenium-webdriver'
|
|
2
2
|
|
3
3
|
require_relative 'appium_lib_core/version'
|
4
4
|
require_relative 'appium_lib_core/common'
|
5
|
-
require_relative 'appium_lib_core/patch'
|
6
5
|
require_relative 'appium_lib_core/driver'
|
7
6
|
|
8
7
|
require_relative 'appium_lib_core/device'
|
@@ -14,6 +13,9 @@ require_relative 'appium_lib_core/android_espresso'
|
|
14
13
|
require_relative 'appium_lib_core/ios'
|
15
14
|
require_relative 'appium_lib_core/ios_xcuitest'
|
16
15
|
|
16
|
+
# Call patch after requiring other files
|
17
|
+
require_relative 'appium_lib_core/patch'
|
18
|
+
|
17
19
|
module Appium
|
18
20
|
# convert all keys (including nested) to symbols
|
19
21
|
#
|
@@ -122,8 +122,6 @@ module Appium
|
|
122
122
|
|
123
123
|
capabilities = capabilities.__send__(:capabilities) unless capabilities.is_a?(Hash)
|
124
124
|
|
125
|
-
warn_if_camel_case(capabilities)
|
126
|
-
|
127
125
|
capabilities.each do |name, value|
|
128
126
|
next if value.nil?
|
129
127
|
next if value.is_a?(String) && value.empty?
|
@@ -139,14 +137,6 @@ module Appium
|
|
139
137
|
|
140
138
|
private
|
141
139
|
|
142
|
-
def warn_if_camel_case(caps)
|
143
|
-
warn_caps = caps.collect { |key, _value| key =~ /_([a-z])/ ? key : nil }.compact
|
144
|
-
return if warn_caps.empty?
|
145
|
-
|
146
|
-
warn_message = warn_caps.join(', ')
|
147
|
-
::Appium::Logger.warn("Please define capability key names: #{warn_message} as camelCase for W3C Appium Server")
|
148
|
-
end
|
149
|
-
|
150
140
|
def camel_case(str)
|
151
141
|
str.gsub(/_([a-z])/) { Regexp.last_match(1).upcase }
|
152
142
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'uri'
|
2
|
+
|
1
3
|
module Appium
|
2
4
|
module Core
|
3
5
|
class Driver
|
@@ -93,6 +95,28 @@ module Appium
|
|
93
95
|
# @core = Appium::Core.for(self, opts) # create a core driver with `opts` and extend methods into `self`
|
94
96
|
# @core.start_driver(server_url: server_url) # start driver
|
95
97
|
#
|
98
|
+
# # Start iOS driver with .zip file over HTTP
|
99
|
+
# opts = {
|
100
|
+
# caps: {
|
101
|
+
# platformName: :ios,
|
102
|
+
# platformVersion: '11.0',
|
103
|
+
# deviceName: 'iPhone Simulator',
|
104
|
+
# automationName: 'XCUITest',
|
105
|
+
# app: 'http://example.com/path/to/MyiOS.app.zip'
|
106
|
+
# },
|
107
|
+
# appium_lib: {
|
108
|
+
# server_url: "http://custom-host:8080/wd/hub.com",
|
109
|
+
# export_session: false,
|
110
|
+
# port: 8080,
|
111
|
+
# wait: 0,
|
112
|
+
# wait_timeout: 20,
|
113
|
+
# wait_interval: 0.3,
|
114
|
+
# listener: nil,
|
115
|
+
# }
|
116
|
+
# }
|
117
|
+
# @core = Appium::Core.for(self, opts)
|
118
|
+
# @core.start_driver(server_url: server_url)
|
119
|
+
#
|
96
120
|
def self.for(target, opts = {})
|
97
121
|
new(target, opts)
|
98
122
|
end
|
@@ -366,6 +390,8 @@ module Appium
|
|
366
390
|
# The path can be local or remote for Sauce.
|
367
391
|
def set_app_path
|
368
392
|
return unless @caps && @caps[:app] && !@caps[:app].empty?
|
393
|
+
return if @caps[:app] =~ URI::DEFAULT_PARSER.make_regexp
|
394
|
+
|
369
395
|
@caps[:app] = File.expand_path(@caps[:app])
|
370
396
|
end
|
371
397
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '1.8.
|
4
|
-
DATE = '2018-07-
|
3
|
+
VERSION = '1.8.2'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2018-07-17'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
#### v1.8.2 2018-07-17
|
2
|
+
|
3
|
+
- [4053425](https://github.com/appium/ruby_lib_core/commit/40534256de7b9ace04a6c13f56c4c2abf696c81a) Release 1.8.2
|
4
|
+
- [3bc3b37](https://github.com/appium/ruby_lib_core/commit/3bc3b370b1f5d38c5e2301279cea96ecc466c485) Remove redundant code (#109)
|
5
|
+
- [4ee5ddb](https://github.com/appium/ruby_lib_core/commit/4ee5ddb6a3c2037f2a4b60fca12e677b96b1043a) can set packages over http (#108)
|
6
|
+
- [634d003](https://github.com/appium/ruby_lib_core/commit/634d003bdeeeddfca9422b910c197f0530dc49bb) tweak include (#105)
|
7
|
+
|
8
|
+
|
1
9
|
#### v1.8.1 2018-07-13
|
2
10
|
|
3
11
|
- [d423fb4](https://github.com/appium/ruby_lib_core/commit/d423fb419e76fc4eb66845f0b59c15987592cc5f) Release 1.8.1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuaki MATSUO
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|