appium_console 2.12.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +8 -0
- data/.rubocop.yml +90 -2
- data/appium_console.gemspec +6 -7
- data/lib/appium_console/version.rb +4 -2
- data/lib/appium_console.rb +5 -5
- data/lib/cli.rb +4 -4
- data/lib/start.rb +2 -0
- data/readme.md +8 -3
- data/release_notes.md +23 -0
- data/test/simple.rb +2 -0
- metadata +26 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28d7d644efb978e4f91e59a589d37f2b83deca757f68f56a768e172feb252e4a
|
4
|
+
data.tar.gz: 55316ba99cfa50f2c3c5fea94576d7832fdb302cf79bbbe6932dbcf7587e6057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27a986fb80b7e88df6fb338d2e78f87cdd71cfc519beedbb2eaef340513419829976fc049719d9645c086030a5cc93c6247eef82fbf34055ef1737646d06f6af
|
7
|
+
data.tar.gz: bcad0b6f8e709462ea3551251c642f5de1c07917fc99eb857fe5b4bfe6d4a3be34dcbea0e5938bcd192150ae97f0cae7b99965a5b4546def76de3875f1141587
|
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:
|
@@ -10,5 +10,93 @@ Style/Documentation:
|
|
10
10
|
Enabled: false
|
11
11
|
Style/GlobalVars:
|
12
12
|
Enabled: false
|
13
|
-
Layout/
|
13
|
+
Layout/HeredocIndentation:
|
14
14
|
Enabled: false
|
15
|
+
Gemspec/DateAssignment: # new in 1.10
|
16
|
+
Enabled: true
|
17
|
+
Layout/LineEndStringConcatenationIndentation: # new in 1.18
|
18
|
+
Enabled: true
|
19
|
+
Layout/SpaceBeforeBrackets: # new in 1.7
|
20
|
+
Enabled: true
|
21
|
+
Lint/AmbiguousAssignment: # new in 1.7
|
22
|
+
Enabled: true
|
23
|
+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
24
|
+
Enabled: true
|
25
|
+
Lint/AmbiguousRange: # new in 1.19
|
26
|
+
Enabled: true
|
27
|
+
Lint/DeprecatedConstants: # new in 1.8
|
28
|
+
Enabled: true
|
29
|
+
Lint/DuplicateBranch: # new in 1.3
|
30
|
+
Enabled: true
|
31
|
+
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
|
32
|
+
Enabled: true
|
33
|
+
Lint/EmptyBlock: # new in 1.1
|
34
|
+
Enabled: true
|
35
|
+
Lint/EmptyClass: # new in 1.3
|
36
|
+
Enabled: true
|
37
|
+
Lint/EmptyInPattern: # new in 1.16
|
38
|
+
Enabled: true
|
39
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
40
|
+
Enabled: true
|
41
|
+
Lint/LambdaWithoutLiteralBlock: # new in 1.8
|
42
|
+
Enabled: true
|
43
|
+
Lint/NoReturnInBeginEndBlocks: # new in 1.2
|
44
|
+
Enabled: true
|
45
|
+
Lint/NumberedParameterAssignment: # new in 1.9
|
46
|
+
Enabled: true
|
47
|
+
Lint/OrAssignmentToConstant: # new in 1.9
|
48
|
+
Enabled: true
|
49
|
+
Lint/RedundantDirGlobSort: # new in 1.8
|
50
|
+
Enabled: true
|
51
|
+
Lint/RequireRelativeSelfPath: # new in 1.22
|
52
|
+
Enabled: true
|
53
|
+
Lint/SymbolConversion: # new in 1.9
|
54
|
+
Enabled: true
|
55
|
+
Lint/ToEnumArguments: # new in 1.1
|
56
|
+
Enabled: true
|
57
|
+
Lint/TripleQuotes: # new in 1.9
|
58
|
+
Enabled: true
|
59
|
+
Lint/UnexpectedBlockArity: # new in 1.5
|
60
|
+
Enabled: true
|
61
|
+
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
62
|
+
Enabled: true
|
63
|
+
Security/IoMethods: # new in 1.22
|
64
|
+
Enabled: true
|
65
|
+
Style/ArgumentsForwarding: # new in 1.1
|
66
|
+
Enabled: true
|
67
|
+
Style/CollectionCompact: # new in 1.2
|
68
|
+
Enabled: true
|
69
|
+
Style/DocumentDynamicEvalDefinition: # new in 1.1
|
70
|
+
Enabled: true
|
71
|
+
Style/EndlessMethod: # new in 1.8
|
72
|
+
Enabled: true
|
73
|
+
Style/HashConversion: # new in 1.10
|
74
|
+
Enabled: true
|
75
|
+
Style/HashExcept: # new in 1.7
|
76
|
+
Enabled: true
|
77
|
+
Style/IfWithBooleanLiteralBranches: # new in 1.9
|
78
|
+
Enabled: true
|
79
|
+
Style/InPatternThen: # new in 1.16
|
80
|
+
Enabled: true
|
81
|
+
Style/MultilineInPatternThen: # new in 1.16
|
82
|
+
Enabled: true
|
83
|
+
Style/NegatedIfElseCondition: # new in 1.2
|
84
|
+
Enabled: true
|
85
|
+
Style/NilLambda: # new in 1.3
|
86
|
+
Enabled: true
|
87
|
+
Style/NumberedParameters: # new in 1.22
|
88
|
+
Enabled: true
|
89
|
+
Style/NumberedParametersLimit: # new in 1.22
|
90
|
+
Enabled: true
|
91
|
+
Style/QuotedSymbols: # new in 1.16
|
92
|
+
Enabled: true
|
93
|
+
Style/RedundantArgument: # new in 1.4
|
94
|
+
Enabled: true
|
95
|
+
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
96
|
+
Enabled: true
|
97
|
+
Style/SelectByRegexp: # new in 1.22
|
98
|
+
Enabled: true
|
99
|
+
Style/StringChars: # new in 1.12
|
100
|
+
Enabled: true
|
101
|
+
Style/SwapValues: # new in 1.1
|
102
|
+
Enabled: true
|
data/appium_console.gemspec
CHANGED
@@ -10,7 +10,7 @@ add_to_path 'lib'
|
|
10
10
|
require 'appium_console/version'
|
11
11
|
|
12
12
|
Gem::Specification.new do |s|
|
13
|
-
s.required_ruby_version = '>= 2.
|
13
|
+
s.required_ruby_version = '>= 2.6'
|
14
14
|
|
15
15
|
s.name = 'appium_console'
|
16
16
|
s.version = Appium::Console::VERSION
|
@@ -24,15 +24,14 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.require_paths = [ 'lib' ]
|
25
25
|
|
26
26
|
# appium_lib version must match ruby console version.
|
27
|
-
s.add_runtime_dependency 'appium_lib', '
|
28
|
-
s.add_runtime_dependency 'pry', '~> 0.
|
29
|
-
s.add_runtime_dependency 'bond', '~> 0.5'
|
27
|
+
s.add_runtime_dependency 'appium_lib', '12.0.0'
|
28
|
+
s.add_runtime_dependency 'pry', '~> 0.14.0'
|
30
29
|
s.add_runtime_dependency 'spec', '~> 5.3', '>= 5.3.1'
|
31
|
-
s.add_runtime_dependency 'thor', '
|
32
|
-
s.add_development_dependency 'rake', '~>
|
30
|
+
s.add_runtime_dependency 'thor', '>= 0.19', '< 2.0'
|
31
|
+
s.add_development_dependency 'rake', '~> 13.0'
|
33
32
|
s.add_development_dependency 'appium_thor', '~> 1.0', '>= 1.0.1'
|
34
33
|
s.add_development_dependency 'posix-spawn', '~> 0.3.11'
|
35
|
-
s.add_development_dependency 'rubocop', '
|
34
|
+
s.add_development_dependency 'rubocop', '1.22.3'
|
36
35
|
|
37
36
|
s.executables = [ 'arc' ]
|
38
37
|
s.files = `git ls-files`.split "\n"
|
@@ -1,8 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Define Appium module so version can be required directly.
|
2
4
|
module Appium; end unless defined? Appium
|
3
5
|
module Appium
|
4
6
|
module Console
|
5
|
-
VERSION = '
|
6
|
-
DATE = '
|
7
|
+
VERSION = '3.0.0' unless defined? ::Appium::Console::VERSION
|
8
|
+
DATE = '2021-11-06' unless defined? ::Appium::Console::DATE
|
7
9
|
end
|
8
10
|
end
|
data/lib/appium_console.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'rubygems'
|
2
4
|
require 'pry'
|
3
5
|
require 'appium_lib'
|
@@ -24,11 +26,9 @@ module Appium
|
|
24
26
|
requires = parsed[:appium_lib][:require]
|
25
27
|
requires.each do |file|
|
26
28
|
# If a page obj is deleted then load will error.
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
puts e.message
|
31
|
-
end
|
29
|
+
load file
|
30
|
+
rescue LoadError => e
|
31
|
+
puts e.message
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
data/lib/cli.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'rubygems'
|
2
4
|
require 'thor'
|
3
5
|
require 'appium_console/version'
|
@@ -24,8 +26,6 @@ app = "#{caps[:path_to_app]}"
|
|
24
26
|
|
25
27
|
[appium_lib]
|
26
28
|
server_url = "http://127.0.0.1:4723/wd/hub"
|
27
|
-
sauce_username = ""
|
28
|
-
sauce_access_key = ""
|
29
29
|
TEMPLATE
|
30
30
|
end
|
31
31
|
end
|
@@ -39,7 +39,7 @@ sauce_access_key = ""
|
|
39
39
|
automation_name: 'XCUITest',
|
40
40
|
platform_name: 'iOS',
|
41
41
|
device_name: 'iPhone Simulator',
|
42
|
-
platform_version: '
|
42
|
+
platform_version: '15.0',
|
43
43
|
path_to_app: '/path/to/app_bundle'
|
44
44
|
)
|
45
45
|
File.write(toml, template)
|
@@ -51,7 +51,7 @@ sauce_access_key = ""
|
|
51
51
|
template = Config.template(
|
52
52
|
automation_name: 'uiautomator2',
|
53
53
|
platform_name: 'Android',
|
54
|
-
device_name: 'Pixel
|
54
|
+
device_name: 'Pixel 5',
|
55
55
|
path_to_app: '/path/to/apk',
|
56
56
|
app_package: 'com.package.example',
|
57
57
|
app_activity: 'com.package.example.ExampleActivity'
|
data/lib/start.rb
CHANGED
data/readme.md
CHANGED
@@ -9,9 +9,9 @@
|
|
9
9
|
- Read [a setup guide](http://appium.io/docs/en/about-appium/getting-started/?lang=en)
|
10
10
|
2. Install `appium_console`
|
11
11
|
```bash
|
12
|
-
gem uninstall
|
13
|
-
gem uninstall
|
14
|
-
gem install
|
12
|
+
gem uninstall appium_lib
|
13
|
+
gem uninstall appium_console
|
14
|
+
gem install appium_console
|
15
15
|
```
|
16
16
|
3. Run
|
17
17
|
- The `arc` command starts Appium Ruby Console.
|
@@ -24,3 +24,8 @@
|
|
24
24
|
## Documentation
|
25
25
|
|
26
26
|
- [ruby_lib](https://github.com/appium/ruby_lib)
|
27
|
+
|
28
|
+
## Changelog
|
29
|
+
- 3.0.0
|
30
|
+
- Update ruby_lib version to v12
|
31
|
+
|
data/release_notes.md
CHANGED
@@ -1,3 +1,26 @@
|
|
1
|
+
#### v3.0.0 2021-11-06
|
2
|
+
|
3
|
+
- [5e9d1c8](https://github.com/appium/ruby_console/commit/5e9d1c86e4f36d9ccb780c0f6d62af2b59c5eb71) Release 3.0.0
|
4
|
+
- [16d5490](https://github.com/appium/ruby_console/commit/16d54909e474602ba49c5c47a3cdb71ec8a07ab4) Merge branch 'master' of github.com:appium/ruby_console
|
5
|
+
- [8400d85](https://github.com/appium/ruby_console/commit/8400d85fb4b0b42c24da4cd6d015fbae27f92ed5) chore: update appium_lib requirement from = 12.0.0.rc4 to = 12.0.0.rc5 (#112)
|
6
|
+
- [266360d](https://github.com/appium/ruby_console/commit/266360dbd5d55e281b112bf1da9b5aeb41cc5c74) chore: bump version to rc2
|
7
|
+
- [fed136c](https://github.com/appium/ruby_console/commit/fed136ca4ca6575669a03e78d5ada5caed868945) chore: appium_lib to rc5
|
8
|
+
- [82685c4](https://github.com/appium/ruby_console/commit/82685c4132807169176acfc4312747c11401eb64) chore: bump version to rc
|
9
|
+
- [6defbab](https://github.com/appium/ruby_console/commit/6defbab391197221eaa8efe357fa4be6fb49382b) bump pry
|
10
|
+
- [22f7ac5](https://github.com/appium/ruby_console/commit/22f7ac5d1e3be2ff407dea7882e75416b8f84827) chore: update deps (#111)
|
11
|
+
- [4fbe06c](https://github.com/appium/ruby_console/commit/4fbe06c446172eeee51625f87c2e423545357068) chore: Create Dependabot config file (#109)
|
12
|
+
- [439be2c](https://github.com/appium/ruby_console/commit/439be2c8b7681c9fdfd4d6cf2f547b65a065c6e3) Update rubocop requirement from = 0.68.1 to = 1.8.1 (#108)
|
13
|
+
|
14
|
+
|
15
|
+
#### v2.13.0 2021-01-25
|
16
|
+
|
17
|
+
- [f7e8d18](https://github.com/appium/ruby_console/commit/f7e8d1869e1ca09e0434c299dcbe126be79a7e15) Release 2.13.0
|
18
|
+
- [540c561](https://github.com/appium/ruby_console/commit/540c5616a55afabea20f272fe959dd32febb3f3b) chore: Update appium_console.gemspec (#105)
|
19
|
+
- [323c3d9](https://github.com/appium/ruby_console/commit/323c3d9fd2535b512d01639c021c93094b9f750b) Update rake requirement from ~> 12.0 to ~> 13.0 (#102)
|
20
|
+
- [b5f647f](https://github.com/appium/ruby_console/commit/b5f647faf7d81c0c8e8b297a1c875b7c1a2626db) Update thor requirement from ~> 0.19 to >= 0.19, < 2.0 (#101)
|
21
|
+
- [22d772e](https://github.com/appium/ruby_console/commit/22d772e41f3d71448b707b87ee76abfdb4526026) Update rubocop requirement from = 0.61.0 to = 0.68.1 (#103)
|
22
|
+
|
23
|
+
|
1
24
|
#### v2.12.0 2019-02-08
|
2
25
|
|
3
26
|
- [5ecc460](https://github.com/appium/ruby_console/commit/5ecc4600605da1a7167e1b279540145edcb07ad9) Release 2.12.0
|
data/test/simple.rb
CHANGED
metadata
CHANGED
@@ -1,58 +1,44 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- code@bootstraponline.com
|
8
8
|
- Kazuaki Matsuo
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: appium_lib
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 12.0.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 12.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: pry
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: 0.14.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: bond
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '0.5'
|
49
|
-
type: :runtime
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - "~>"
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0.5'
|
41
|
+
version: 0.14.0
|
56
42
|
- !ruby/object:Gem::Dependency
|
57
43
|
name: spec
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -77,30 +63,36 @@ dependencies:
|
|
77
63
|
name: thor
|
78
64
|
requirement: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- - "
|
66
|
+
- - ">="
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0.19'
|
69
|
+
- - "<"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '2.0'
|
83
72
|
type: :runtime
|
84
73
|
prerelease: false
|
85
74
|
version_requirements: !ruby/object:Gem::Requirement
|
86
75
|
requirements:
|
87
|
-
- - "
|
76
|
+
- - ">="
|
88
77
|
- !ruby/object:Gem::Version
|
89
78
|
version: '0.19'
|
79
|
+
- - "<"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '2.0'
|
90
82
|
- !ruby/object:Gem::Dependency
|
91
83
|
name: rake
|
92
84
|
requirement: !ruby/object:Gem::Requirement
|
93
85
|
requirements:
|
94
86
|
- - "~>"
|
95
87
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
88
|
+
version: '13.0'
|
97
89
|
type: :development
|
98
90
|
prerelease: false
|
99
91
|
version_requirements: !ruby/object:Gem::Requirement
|
100
92
|
requirements:
|
101
93
|
- - "~>"
|
102
94
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
95
|
+
version: '13.0'
|
104
96
|
- !ruby/object:Gem::Dependency
|
105
97
|
name: appium_thor
|
106
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,14 +133,14 @@ dependencies:
|
|
141
133
|
requirements:
|
142
134
|
- - '='
|
143
135
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
136
|
+
version: 1.22.3
|
145
137
|
type: :development
|
146
138
|
prerelease: false
|
147
139
|
version_requirements: !ruby/object:Gem::Requirement
|
148
140
|
requirements:
|
149
141
|
- - '='
|
150
142
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
143
|
+
version: 1.22.3
|
152
144
|
description: Appium Ruby Console.
|
153
145
|
email:
|
154
146
|
- code@bootstraponline.com
|
@@ -158,6 +150,7 @@ executables:
|
|
158
150
|
extensions: []
|
159
151
|
extra_rdoc_files: []
|
160
152
|
files:
|
153
|
+
- ".github/dependabot.yml"
|
161
154
|
- ".gitignore"
|
162
155
|
- ".rubocop.yml"
|
163
156
|
- Gemfile
|
@@ -179,7 +172,7 @@ homepage: https://github.com/appium/ruby_console
|
|
179
172
|
licenses:
|
180
173
|
- http://www.apache.org/licenses/LICENSE-2.0.txt
|
181
174
|
metadata: {}
|
182
|
-
post_install_message:
|
175
|
+
post_install_message:
|
183
176
|
rdoc_options: []
|
184
177
|
require_paths:
|
185
178
|
- lib
|
@@ -187,15 +180,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
180
|
requirements:
|
188
181
|
- - ">="
|
189
182
|
- !ruby/object:Gem::Version
|
190
|
-
version: '2.
|
183
|
+
version: '2.6'
|
191
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
185
|
requirements:
|
193
186
|
- - ">="
|
194
187
|
- !ruby/object:Gem::Version
|
195
188
|
version: '0'
|
196
189
|
requirements: []
|
197
|
-
rubygems_version: 3.
|
198
|
-
signing_key:
|
190
|
+
rubygems_version: 3.2.15
|
191
|
+
signing_key:
|
199
192
|
specification_version: 4
|
200
193
|
summary: Appium Ruby Console
|
201
194
|
test_files: []
|