appium_lib_core 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG.md +8 -0
- data/lib/appium_lib_core/common/base/http_default.rb +23 -1
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +7 -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: 29bdb6f6e26c990bbe57b39320b655e46ff4abf9
|
4
|
+
data.tar.gz: 95975e9056cdcd93da70bc9672c3f798cc4f8b3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4987a377af3e2663d3d9f5ad9761d5c3039f79bb44f77ef409b0a796df7eedad803bc68c96405191f3d0a05771c6156f2737df05542048fd3ea5c400e5b806a7
|
7
|
+
data.tar.gz: 0604ddf6b1b49e7d46477f7bc18c1da4eb3bdd6bfe9acca2af57ee46c142d49a5e8ded16473cddcb106c4ae7c95692e374f1fc8ee57b6a653a5fc9eaddb59e42
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,14 @@ Read `release_notes.md` for commit level details.
|
|
9
9
|
|
10
10
|
### Deprecations
|
11
11
|
|
12
|
+
## [2.2.2] - 2018-12-22
|
13
|
+
### Enhancements
|
14
|
+
- Append `appium` in header: `appium/ruby_lib_core/2.2.1 (selenium/3.141.0 (ruby macosx))`
|
15
|
+
|
16
|
+
### Bug fixes
|
17
|
+
|
18
|
+
### Deprecations
|
19
|
+
|
12
20
|
## [2.2.1] - 2018-12-08
|
13
21
|
### Enhancements
|
14
22
|
|
@@ -8,8 +8,30 @@ module Appium
|
|
8
8
|
DEFAULT_HEADERS = {
|
9
9
|
'Accept' => CONTENT_TYPE,
|
10
10
|
'Content-Type' => "#{CONTENT_TYPE}; charset=UTF-8",
|
11
|
-
'User-Agent' =>
|
11
|
+
'User-Agent' =>
|
12
|
+
"appium/ruby_lib_core/#{VERSION} (#{::Selenium::WebDriver::Remote::Http::Common::DEFAULT_HEADERS['User-Agent']})"
|
12
13
|
}.freeze
|
14
|
+
|
15
|
+
# override to use default header
|
16
|
+
# https://github.com/SeleniumHQ/selenium/blob/master/rb/lib/selenium/webdriver/remote/http/common.rb#L46
|
17
|
+
def call(verb, url, command_hash)
|
18
|
+
url = server_url.merge(url) unless url.is_a?(URI)
|
19
|
+
headers = DEFAULT_HEADERS.dup
|
20
|
+
headers['Cache-Control'] = 'no-cache' if verb == :get
|
21
|
+
|
22
|
+
if command_hash
|
23
|
+
payload = JSON.generate(command_hash)
|
24
|
+
headers['Content-Length'] = payload.bytesize.to_s if [:post, :put].include?(verb)
|
25
|
+
|
26
|
+
Logger.info(" >>> #{url} | #{payload}")
|
27
|
+
Logger.debug(" > #{headers.inspect}")
|
28
|
+
elsif verb == :post
|
29
|
+
payload = '{}'
|
30
|
+
headers['Content-Length'] = '2'
|
31
|
+
end
|
32
|
+
|
33
|
+
request verb, url, headers, payload
|
34
|
+
end
|
13
35
|
end
|
14
36
|
end
|
15
37
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '2.2.
|
4
|
-
DATE = '2018-12-
|
3
|
+
VERSION = '2.2.2'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2018-12-22'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
#### v2.2.2 2018-12-22
|
2
|
+
|
3
|
+
- [6415256](https://github.com/appium/ruby_lib_core/commit/6415256f9808a92e5d82e9556e9533db9273f2fa) Release 2.2.2
|
4
|
+
- [a1a3f09](https://github.com/appium/ruby_lib_core/commit/a1a3f0902dfa9c664a1c656cbee15cb18ba978a7) tweak skiping opencv4nodejs
|
5
|
+
- [5fcba56](https://github.com/appium/ruby_lib_core/commit/5fcba566be04a3eb0f7ea565005d6ec50cc9b882) tweak http request header (#176)
|
6
|
+
|
7
|
+
|
1
8
|
#### v2.2.1 2018-12-08
|
2
9
|
|
3
10
|
- [0b46567](https://github.com/appium/ruby_lib_core/commit/0b46567c2abc764b80c72516429038d7b1805107) Release 2.2.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: 2.2.
|
4
|
+
version: 2.2.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-12-
|
11
|
+
date: 2018-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|