appium_lib_core 1.9.1 → 1.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 007e3cc0b05fdd58ad6ccfd0456c468a45dc5a7d
4
- data.tar.gz: 7c5fea474ec27a085859e1626ada18bf74eb6ed5
3
+ metadata.gz: aec92e8a1cb99521ef3546c5cfe899cf4f094544
4
+ data.tar.gz: 1f14f45e5f911e91f16097efb8e9f11b1b4e4498
5
5
  SHA512:
6
- metadata.gz: f606fa17c09df894c966fffbf628beea30d9811302a9e8141fcd83d3d45c03a3a7ce2c2698814833577a93032d293c0645e5e6dd8024b1d8b31e22019ae0e18d
7
- data.tar.gz: 2a5c6755588badbb4c47d61a67ba9492260c04290fa98fcae953e0df26c88a808001d5f1378d0c50d6aea04486a618ec2adf06170063281d9487f8699a1d4c21
6
+ metadata.gz: 8824a2c98ba3c3d4013423148547f2e4719e61529720fd49d8cf5739e9ab7be283788589ec6e94ea1784cc04089560c636c93fc367d3ce16beb83604efd3636f
7
+ data.tar.gz: 26021c0d05e942354ac979108fd2dd10fe252656e867e6c4cbfbf45476efb3dbe86b0d36d42b65fe64e5fc075786da27551145f6abe0a38c8f4c10329e5aec44
data/CHANGELOG.md CHANGED
@@ -8,6 +8,14 @@ All notable changes to this project will be documented in this file.
8
8
 
9
9
  ### Deprecations
10
10
 
11
+ ## [1.9.2] - 2018-08-23
12
+ ### Enhancements
13
+
14
+ ### Bug fixes
15
+ - fix unexpedted method missing against `:to_hash`
16
+
17
+ ### Deprecations
18
+
11
19
  ## [1.9.1] - 2018-08-20
12
20
  ### Enhancements
13
21
  - Add `:viewtag` for Espresso driver [appium-espresso-driver#189](https://github.com/appium/appium-espresso-driver/pull/189)
@@ -29,7 +29,14 @@ module Appium
29
29
  # e.resource_id # call `e.attribute "resource-id"`
30
30
  #
31
31
  def method_missing(method_name)
32
- respond_to?(method_name) ? attribute(method_name.to_s.tr('_', '-')) : super
32
+ white_list = [:content_desc, :long_clickable, :resource_id, :selection_start, :selection_end]
33
+ attribute_name = white_list.include?(method_name) ? method_name.to_s.tr('_', '-') : method_name
34
+
35
+ ignore_list = [:to_hash]
36
+
37
+ return if ignore_list.include? method_name
38
+
39
+ respond_to?(method_name) ? attribute(attribute_name) : super
33
40
  end
34
41
 
35
42
  def respond_to_missing?(*)
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Core
3
- VERSION = '1.9.1'.freeze unless defined? ::Appium::Core::VERSION
4
- DATE = '2018-08-20'.freeze unless defined? ::Appium::Core::DATE
3
+ VERSION = '1.9.2'.freeze unless defined? ::Appium::Core::VERSION
4
+ DATE = '2018-08-23'.freeze unless defined? ::Appium::Core::DATE
5
5
  end
6
6
  end
data/release_notes.md CHANGED
@@ -1,3 +1,9 @@
1
+ #### v1.9.2 2018-08-23
2
+
3
+ - [2c6ac55](https://github.com/appium/ruby_lib_core/commit/2c6ac55a0d351a6801ff2c4b80988adcdd8b44c8) Release 1.9.2
4
+ - [cf257ff](https://github.com/appium/ruby_lib_core/commit/cf257ff5559795a100517a5d0775e975fe8aa266) fix unexpected method missing (#132)
5
+
6
+
1
7
  #### v1.9.1 2018-08-20
2
8
 
3
9
  - [7bcc947](https://github.com/appium/ruby_lib_core/commit/7bcc947d93c0617e45e89e94e901bedcbbf21d80) Release 1.9.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.9.1
4
+ version: 1.9.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-08-19 00:00:00.000000000 Z
11
+ date: 2018-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver