appium_lib 10.6.0 → 12.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.azure-pipelines.yml +18 -0
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/rubocop.yml +27 -0
- data/.rubocop.yml +106 -8
- data/CHANGELOG.md +16 -0
- data/appium_lib.gemspec +5 -5
- data/docs/android_docs.md +209 -209
- data/docs/ios_docs.md +247 -247
- data/lib/appium_lib/android/common/helper.rb +4 -4
- data/lib/appium_lib/android/element/button.rb +4 -4
- data/lib/appium_lib/android/element/generic.rb +8 -12
- data/lib/appium_lib/android/espresso/element/button.rb +2 -2
- data/lib/appium_lib/android/espresso/element/generic.rb +20 -24
- data/lib/appium_lib/android/uiautomator2/element/button.rb +4 -4
- data/lib/appium_lib/appium.rb +32 -32
- data/lib/appium_lib/common/helper.rb +7 -5
- data/lib/appium_lib/common/wait.rb +3 -4
- data/lib/appium_lib/driver.rb +10 -48
- data/lib/appium_lib/ios/common/helper.rb +3 -2
- data/lib/appium_lib/ios/xcuitest/command/gestures.rb +14 -14
- data/lib/appium_lib/ios/xcuitest/command/multi_app_handler.rb +6 -12
- data/lib/appium_lib/ios/xcuitest/helper.rb +1 -1
- data/lib/appium_lib/ios/xcuitest.rb +0 -1
- data/lib/appium_lib/version.rb +2 -2
- data/readme.md +2 -9
- data/release_notes.md +25 -0
- metadata +30 -22
- data/.travis.yml +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 704f166f6740717dab8ff78e7aafeffc6c7044e32b867e2add3cc62e10908abe
|
4
|
+
data.tar.gz: d0eba4bc4e7024a764fe7eefe2dc364e4727f8cc39fd4258a23a8a06428ca16b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c63bb7969a85ffd14cd8d3afc70af45f5ea922328fb936dfbaea75e9690be8f365afaf4e71b18f99929c05150843c5b281652094d39757758209f5aad0df0765
|
7
|
+
data.tar.gz: beda668ca13cdc3b11b58f711458d2b85c8ce62c98402acaadf763e480a7b3edea60b553eac65865ae4f7dc3ddedc838fab64876a25937d612451670ed9e252e
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Ruby
|
2
|
+
# Package your Ruby project.
|
3
|
+
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
|
4
|
+
# https://docs.microsoft.com/azure/devops/pipelines/languages/ruby
|
5
|
+
|
6
|
+
trigger:
|
7
|
+
- main
|
8
|
+
|
9
|
+
pool:
|
10
|
+
vmImage: 'macOS-10.15'
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- task: UseRubyVersion@0
|
14
|
+
inputs:
|
15
|
+
versionSpec: '>= 2.6'
|
16
|
+
|
17
|
+
- script: bundle install --retry=3 --jobs=4
|
18
|
+
displayName: 'bundle install'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
name: rubocop
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
ruby: [2.6, 2.7, 3.0]
|
15
|
+
|
16
|
+
runs-on: ubuntu-latest
|
17
|
+
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- name: Set up Ruby
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby }}
|
24
|
+
- name: Install dependencies
|
25
|
+
run: bundle install
|
26
|
+
- name: Run tests
|
27
|
+
run: bundle exec rake rubocop
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.6
|
3
3
|
Metrics/LineLength:
|
4
4
|
Max: 128
|
5
5
|
Metrics/MethodLength:
|
@@ -25,19 +25,117 @@ Style/GlobalVars:
|
|
25
25
|
Enabled: false
|
26
26
|
Style/PercentLiteralDelimiters:
|
27
27
|
Enabled: false
|
28
|
-
# Can use over Ruby2.3
|
29
|
-
Style/SafeNavigation:
|
30
|
-
Enabled: false
|
31
|
-
# Can use over Ruby2.3
|
32
|
-
Style/NumericPredicate:
|
33
|
-
Enabled: false
|
34
28
|
Style/CommentedKeyword:
|
35
29
|
Enabled: false
|
36
30
|
Naming/AccessorMethodName:
|
37
31
|
Enabled: false
|
38
32
|
Naming/RescuedExceptionsVariableName:
|
39
33
|
Enabled: false
|
40
|
-
Layout/
|
34
|
+
Layout/HeredocIndentation:
|
41
35
|
Enabled: false
|
42
36
|
Layout/RescueEnsureAlignment:
|
43
37
|
Enabled: false
|
38
|
+
Layout/HashAlignment:
|
39
|
+
Enabled: false
|
40
|
+
Style/ExplicitBlockArgument:
|
41
|
+
Enabled: false
|
42
|
+
Style/OptionalBooleanParameter:
|
43
|
+
Enabled: false
|
44
|
+
Naming/MethodParameterName:
|
45
|
+
Enabled: false
|
46
|
+
Style/KeywordParametersOrder:
|
47
|
+
Enabled: false
|
48
|
+
Style/AccessorGrouping:
|
49
|
+
Enabled: false
|
50
|
+
Style/StringConcatenation:
|
51
|
+
Enabled: false
|
52
|
+
Lint/NonDeterministicRequireOrder:
|
53
|
+
Enabled: false
|
54
|
+
Gemspec/DateAssignment:
|
55
|
+
Enabled: true
|
56
|
+
Layout/LineEndStringConcatenationIndentation:
|
57
|
+
Enabled: true
|
58
|
+
Layout/SpaceBeforeBrackets:
|
59
|
+
Enabled: true
|
60
|
+
Lint/AmbiguousAssignment:
|
61
|
+
Enabled: true
|
62
|
+
Lint/AmbiguousOperatorPrecedence:
|
63
|
+
Enabled: false
|
64
|
+
Lint/AmbiguousRange:
|
65
|
+
Enabled: true
|
66
|
+
Lint/DeprecatedConstants:
|
67
|
+
Enabled: true
|
68
|
+
Lint/DuplicateBranch:
|
69
|
+
Enabled: true
|
70
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
71
|
+
Enabled: true
|
72
|
+
Lint/EmptyBlock:
|
73
|
+
Enabled: true
|
74
|
+
Lint/EmptyClass:
|
75
|
+
Enabled: false
|
76
|
+
Lint/EmptyInPattern:
|
77
|
+
Enabled: true
|
78
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
79
|
+
Enabled: true
|
80
|
+
Lint/LambdaWithoutLiteralBlock:
|
81
|
+
Enabled: true
|
82
|
+
Lint/NoReturnInBeginEndBlocks:
|
83
|
+
Enabled: true
|
84
|
+
Lint/NumberedParameterAssignment:
|
85
|
+
Enabled: true
|
86
|
+
Lint/OrAssignmentToConstant:
|
87
|
+
Enabled: true
|
88
|
+
Lint/RedundantDirGlobSort:
|
89
|
+
Enabled: true
|
90
|
+
Lint/RequireRelativeSelfPath:
|
91
|
+
Enabled: true
|
92
|
+
Lint/SymbolConversion:
|
93
|
+
Enabled: true
|
94
|
+
Lint/ToEnumArguments:
|
95
|
+
Enabled: true
|
96
|
+
Lint/TripleQuotes:
|
97
|
+
Enabled: true
|
98
|
+
Lint/UnexpectedBlockArity:
|
99
|
+
Enabled: true
|
100
|
+
Lint/UnmodifiedReduceAccumulator:
|
101
|
+
Enabled: true
|
102
|
+
Security/IoMethods:
|
103
|
+
Enabled: true
|
104
|
+
Style/ArgumentsForwarding:
|
105
|
+
Enabled: true
|
106
|
+
Style/CollectionCompact:
|
107
|
+
Enabled: true
|
108
|
+
Style/DocumentDynamicEvalDefinition:
|
109
|
+
Enabled: true
|
110
|
+
Style/EndlessMethod:
|
111
|
+
Enabled: true
|
112
|
+
Style/HashConversion:
|
113
|
+
Enabled: false
|
114
|
+
Style/HashExcept:
|
115
|
+
Enabled: true
|
116
|
+
Style/IfWithBooleanLiteralBranches:
|
117
|
+
Enabled: true
|
118
|
+
Style/InPatternThen:
|
119
|
+
Enabled: true
|
120
|
+
Style/MultilineInPatternThen:
|
121
|
+
Enabled: true
|
122
|
+
Style/NegatedIfElseCondition:
|
123
|
+
Enabled: true
|
124
|
+
Style/NilLambda:
|
125
|
+
Enabled: true
|
126
|
+
Style/NumberedParameters:
|
127
|
+
Enabled: true
|
128
|
+
Style/NumberedParametersLimit:
|
129
|
+
Enabled: true
|
130
|
+
Style/QuotedSymbols:
|
131
|
+
Enabled: true
|
132
|
+
Style/RedundantArgument:
|
133
|
+
Enabled: true
|
134
|
+
Style/RedundantSelfAssignmentBranch:
|
135
|
+
Enabled: true
|
136
|
+
Style/SelectByRegexp:
|
137
|
+
Enabled: true
|
138
|
+
Style/StringChars:
|
139
|
+
Enabled: true
|
140
|
+
Style/SwapValues:
|
141
|
+
Enabled: true
|
data/CHANGELOG.md
CHANGED
@@ -4,11 +4,27 @@ Commit based release not is [release_notes.md](./release_notes.md)
|
|
4
4
|
Release tags are https://github.com/appium/ruby_lib/releases .
|
5
5
|
|
6
6
|
## Unreleased
|
7
|
+
|
8
|
+
### 1. Enhancements
|
9
|
+
|
10
|
+
### 2. Bug fixes
|
11
|
+
|
12
|
+
## 11.1.0 - 2020-12-29 (11.2.0 is the same as this version)
|
13
|
+
|
14
|
+
Support Ruby 3
|
15
|
+
|
7
16
|
### 1. Enhancements
|
8
17
|
|
9
18
|
### 2. Bug fixes
|
10
19
|
|
11
20
|
### 3. Deprecations
|
21
|
+
- Rename `Appium::Ios::Xcuitest::Guesture#tap` to `Appium::Ios::Xcuitest::Guesture#one_finger_tap` to prevent conflicts with `tap` in Ruby
|
22
|
+
|
23
|
+
## 11.0.0 - 2020-12-19
|
24
|
+
|
25
|
+
Bump supported Ruby version to 2.4+
|
26
|
+
|
27
|
+
[related changes](https://github.com/appium/ruby_lib_core/blob/master/CHANGELOG.md#400---2020-12-19) in ruby_lib_core.
|
12
28
|
|
13
29
|
## 10.6.0
|
14
30
|
### 1. Enhancements
|
data/appium_lib.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require_relative 'lib/appium_lib/version'
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.required_ruby_version = '>= 2.
|
4
|
+
s.required_ruby_version = '>= 2.6'
|
5
5
|
|
6
6
|
s.name = 'appium_lib'
|
7
7
|
s.version = Appium::VERSION
|
@@ -14,17 +14,17 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
|
15
15
|
s.require_paths = ['lib']
|
16
16
|
|
17
|
-
s.add_runtime_dependency 'appium_lib_core', '
|
17
|
+
s.add_runtime_dependency 'appium_lib_core', '5.0.0.rc5'
|
18
18
|
s.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.8.1'
|
19
|
-
s.add_runtime_dependency 'tomlrb', '
|
19
|
+
s.add_runtime_dependency 'tomlrb', '>= 1.1', '< 3.0'
|
20
20
|
|
21
21
|
s.add_development_dependency 'appium_thor', '~> 1.1', '>= 1.1.4'
|
22
|
-
s.add_development_dependency 'fakefs', '~>
|
22
|
+
s.add_development_dependency 'fakefs', '~> 1.3.0'
|
23
23
|
s.add_development_dependency 'hashdiff', '~> 1.0.0'
|
24
24
|
s.add_development_dependency 'posix-spawn', '~> 0.3'
|
25
25
|
s.add_development_dependency 'pry'
|
26
26
|
s.add_development_dependency 'rake', '~> 13.0'
|
27
|
-
s.add_development_dependency 'rubocop', '
|
27
|
+
s.add_development_dependency 'rubocop', '1.22.1'
|
28
28
|
s.add_development_dependency 'spec', '~> 5.3', '>= 5.3.4'
|
29
29
|
s.add_development_dependency 'yard', '~> 0.9.11'
|
30
30
|
|