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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b744ceff9d2d1c6a43844a86539a0f1401804011
4
- data.tar.gz: 0b2b7974c04a4e08c4dda57939f89c80fe70e46a
3
+ metadata.gz: 29bdb6f6e26c990bbe57b39320b655e46ff4abf9
4
+ data.tar.gz: 95975e9056cdcd93da70bc9672c3f798cc4f8b3d
5
5
  SHA512:
6
- metadata.gz: '039154ba785a4f998282e2d592b213a3bacca05738e818fca1099a6ad0357fc24942f22965037b2be84e1d97296e4de9aa7700525d3ef1092c5a5b560595c1d5'
7
- data.tar.gz: b7e1e28a0db52d1dc3c2f755e1117c09d846da4c50a15e1cb38d114e8250bb4f52103f5f2c662a3327e9a9b619394a1e6c987beea66727d0e7dcf498a7840a92
6
+ metadata.gz: 4987a377af3e2663d3d9f5ad9761d5c3039f79bb44f77ef409b0a796df7eedad803bc68c96405191f3d0a05771c6156f2737df05542048fd3ea5c400e5b806a7
7
+ data.tar.gz: 0604ddf6b1b49e7d46477f7bc18c1da4eb3bdd6bfe9acca2af57ee46c142d49a5e8ded16473cddcb106c4ae7c95692e374f1fc8ee57b6a653a5fc9eaddb59e42
data/.travis.yml CHANGED
@@ -9,7 +9,6 @@ rvm:
9
9
  # - 2.6
10
10
 
11
11
  before_install:
12
- - gem update --system
13
12
  - gem update bundler
14
13
 
15
14
  script:
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' => "appium/ruby_lib_core/#{VERSION}"
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.1'.freeze unless defined? ::Appium::Core::VERSION
4
- DATE = '2018-12-08'.freeze unless defined? ::Appium::Core::DATE
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.1
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-07 00:00:00.000000000 Z
11
+ date: 2018-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver