appium_lib 9.4.9 → 9.4.10

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.
@@ -2,6 +2,11 @@ require 'logger'
2
2
 
3
3
  module Appium
4
4
  module Logger
5
+ #
6
+ # @example Use logger manually
7
+ # Appium::Logger.debug('This is info message')
8
+ # Appium::Logger.warn('This is warning message')
9
+ #
5
10
  class << self
6
11
  extend Forwardable
7
12
  def_delegators :logger, :ap, :fatal, :error, :warn, :info, :debug, :level, :level=, :formatter, :formatter=
@@ -17,6 +22,7 @@ module Appium
17
22
  def logger
18
23
  @logger ||= begin
19
24
  logger = ::Logger.new($stdout)
25
+ logger.progname = 'ruby_lib'
20
26
  logger.level = ::Logger::WARN
21
27
  logger.formatter = proc { |_severity, _datetime, _progname, msg| "#{msg}\n" } # do no special formatting
22
28
  logger
data/release_notes.md CHANGED
@@ -1,3 +1,9 @@
1
+ #### v9.4.9 2017-07-01
2
+
3
+ - [cfe84fc](https://github.com/appium/ruby_lib/commit/cfe84fc009c418eebe95babf8160f36209f9fecf) [Release 9 4 9 (#613)](https://github.com/appium/ruby_lib/issues/613)
4
+ - [0e88589](https://github.com/appium/ruby_lib/commit/0e885890e3c9d7f5067869a9893009f0a32f7af0) [fix handling element for xcuitest guestures (#611)](https://github.com/appium/ruby_lib/issues/611)
5
+
6
+
1
7
  #### v9.4.8 2017-06-24
2
8
 
3
9
  - [209fb3f](https://github.com/appium/ruby_lib/commit/209fb3fce4f2e567c6d6ba2395eec9b98669d02d) [Release 9 4 8 (#610)](https://github.com/appium/ruby_lib/issues/610)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.4.9
4
+ version: 9.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-01 00:00:00.000000000 Z
11
+ date: 2017-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -231,6 +231,7 @@ executables: []
231
231
  extensions: []
232
232
  extra_rdoc_files: []
233
233
  files:
234
+ - ".github/ISSUE_TEMPLATE.md"
234
235
  - ".gitignore"
235
236
  - ".rubocop.yml"
236
237
  - ".travis.yml"
@@ -284,7 +285,6 @@ files:
284
285
  - lib/appium_lib/ios/patch.rb
285
286
  - lib/appium_lib/ios/xcuitest_gestures.rb
286
287
  - lib/appium_lib/logger.rb
287
- - lib/appium_lib/rails/duplicable.rb
288
288
  - readme.md
289
289
  - release_notes.md
290
290
  homepage: https://github.com/appium/ruby_lib
@@ -1,118 +0,0 @@
1
- # rubocop:disable Style/BlockComments
2
- # rubocop:disable Lint/HandleExceptions
3
- # https://github.com/rails/rails/blob/e120d21211f9644e9b832e51ba7aa6c45448b782/activesupport/lib/active_support/core_ext/object/duplicable.rb
4
- =begin
5
- Copyright (c) 2005-2011 David Heinemeier Hansson
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining
8
- a copy of this software and associated documentation files (the
9
- "Software"), to deal in the Software without restriction, including
10
- without limitation the rights to use, copy, modify, merge, publish,
11
- distribute, sublicense, and/or sell copies of the Software, and to
12
- permit persons to whom the Software is furnished to do so, subject to
13
- the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be
16
- included in all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
- =end
26
- #--
27
- # Most objects are cloneable, but not all. For example you can't dup +nil+:
28
- #
29
- # nil.dup # => TypeError: can't dup NilClass
30
- #
31
- # Classes may signal their instances are not duplicable removing +dup+/+clone+
32
- # or raising exceptions from them. So, to dup an arbitrary object you normally
33
- # use an optimistic approach and are ready to catch an exception, say:
34
- #
35
- # arbitrary_object.dup rescue object
36
- #
37
- # Rails dups objects in a few critical spots where they are not that arbitrary.
38
- # That rescue is very expensive (like 40 times slower than a predicate), and it
39
- # is often triggered.
40
- #
41
- # That's why we hardcode the following cases and check duplicable? instead of
42
- # using that rescue idiom.
43
- #++
44
- class Object
45
- # Can you safely dup this object?
46
- #
47
- # False for +nil+, +false+, +true+, symbol, and number objects;
48
- # true otherwise.
49
- def duplicable?
50
- true
51
- end
52
- end
53
-
54
- class NilClass
55
- # +nil+ is not duplicable:
56
- #
57
- # nil.duplicable? # => false
58
- # nil.dup # => TypeError: can't dup NilClass
59
- def duplicable?
60
- false
61
- end
62
- end
63
-
64
- class FalseClass
65
- # +false+ is not duplicable:
66
- #
67
- # false.duplicable? # => false
68
- # false.dup # => TypeError: can't dup FalseClass
69
- def duplicable?
70
- false
71
- end
72
- end
73
-
74
- class TrueClass
75
- # +true+ is not duplicable:
76
- #
77
- # true.duplicable? # => false
78
- # true.dup # => TypeError: can't dup TrueClass
79
- def duplicable?
80
- false
81
- end
82
- end
83
-
84
- class Symbol
85
- # Symbols are not duplicable:
86
- #
87
- # :my_symbol.duplicable? # => false
88
- # :my_symbol.dup # => TypeError: can't dup Symbol
89
- def duplicable?
90
- false
91
- end
92
- end
93
-
94
- class Numeric
95
- # Numbers are not duplicable:
96
- #
97
- # 3.duplicable? # => false
98
- # 3.dup # => TypeError: can't dup Fixnum
99
- def duplicable?
100
- false
101
- end
102
- end
103
-
104
- require 'bigdecimal'
105
- class BigDecimal
106
- # Needed to support Ruby 1.9.x, as it doesn't allow dup on BigDecimal, instead
107
- # raises TypeError exception. Checking here on the runtime whether BigDecimal
108
- # will allow dup or not.
109
- begin
110
- BigDecimal.new('4.56').dup
111
-
112
- def duplicable?
113
- true
114
- end
115
- rescue TypeError
116
- # can't dup, so use superclass implementation
117
- end
118
- end