testa_appium_driver 0.1.11 → 0.1.12
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 +4 -4
- data/.gitignore +15 -15
- data/.idea/deployment.xml +21 -21
- data/.idea/inspectionProfiles/Project_Default.xml +8 -8
- data/.idea/misc.xml +5 -5
- data/.idea/modules.xml +7 -7
- data/.idea/runConfigurations/Android_Test.xml +41 -41
- data/.idea/runConfigurations.xml +9 -9
- data/.idea/sshConfigs.xml +12 -12
- data/.idea/vcs.xml +5 -5
- data/.idea/webServers.xml +20 -20
- data/.rspec +3 -3
- data/.rubocop.yml +13 -13
- data/CHANGELOG.md +5 -5
- data/CODE_OF_CONDUCT.md +102 -102
- data/Gemfile +12 -12
- data/LICENSE.txt +21 -21
- data/README.md +378 -378
- data/Rakefile +12 -12
- data/bin/console +17 -17
- data/bin/setup +8 -8
- data/lib/testa_appium_driver/android/class_selectors.rb +437 -437
- data/lib/testa_appium_driver/android/driver.rb +69 -69
- data/lib/testa_appium_driver/android/locator/attributes.rb +113 -113
- data/lib/testa_appium_driver/android/locator.rb +141 -141
- data/lib/testa_appium_driver/android/scroll_actions/uiautomator_scroll_actions.rb +61 -61
- data/lib/testa_appium_driver/android/selenium_element.rb +7 -7
- data/lib/testa_appium_driver/common/bounds.rb +149 -149
- data/lib/testa_appium_driver/common/constants.rb +36 -36
- data/lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb +11 -11
- data/lib/testa_appium_driver/common/helpers.rb +270 -270
- data/lib/testa_appium_driver/common/locator/scroll_actions.rb +397 -397
- data/lib/testa_appium_driver/common/locator.rb +610 -610
- data/lib/testa_appium_driver/common/scroll_actions/json_wire_scroll_actions.rb +3 -3
- data/lib/testa_appium_driver/common/scroll_actions/w3c_scroll_actions.rb +237 -237
- data/lib/testa_appium_driver/common/scroll_actions.rb +246 -246
- data/lib/testa_appium_driver/common/selenium_element.rb +19 -19
- data/lib/testa_appium_driver/driver.rb +312 -312
- data/lib/testa_appium_driver/ios/driver.rb +48 -48
- data/lib/testa_appium_driver/ios/locator/attributes.rb +80 -80
- data/lib/testa_appium_driver/ios/locator.rb +70 -70
- data/lib/testa_appium_driver/ios/selenium_element.rb +6 -6
- data/lib/testa_appium_driver/ios/type_selectors.rb +187 -187
- data/lib/testa_appium_driver/version.rb +5 -5
- data/lib/testa_appium_driver.rb +6 -6
- data/testa_appium_driver.gemspec +41 -41
- data/testa_appium_driver.iml +27 -78
- metadata +3 -3
@@ -1,188 +1,188 @@
|
|
1
|
-
module TestaAppiumDriver
|
2
|
-
#noinspection ALL
|
3
|
-
module TypeSelectors
|
4
|
-
|
5
|
-
# @return [TestaAppiumDriver::Locator]
|
6
|
-
def add_selector(*args, &block)
|
7
|
-
# if class selector is executed from driver, create new locator instance
|
8
|
-
if self.kind_of?(TestaAppiumDriver::Driver) || self.instance_of?(Selenium::WebDriver::Element)
|
9
|
-
args.last[:default_find_strategy] = @default_find_strategy
|
10
|
-
args.last[:default_scroll_strategy] = @default_scroll_strategy
|
11
|
-
if self.instance_of?(Selenium::WebDriver::Element)
|
12
|
-
driver = self.get_driver
|
13
|
-
else
|
14
|
-
driver = self
|
15
|
-
end
|
16
|
-
Locator.new(driver, self, *args)
|
17
|
-
else
|
18
|
-
# class selector is executed from locator, just add child selector criteria
|
19
|
-
self.add_child_selector(*args)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
# @param selectors [Hash]
|
24
|
-
# @return [TestaAppiumDriver::Locator] first element
|
25
|
-
def element(selectors = {})
|
26
|
-
add_selector(selectors)
|
27
|
-
end
|
28
|
-
|
29
|
-
# @param params [Hash]
|
30
|
-
# @return [TestaAppiumDriver::Locator] all elements that match given selectors
|
31
|
-
def elements(params = {})
|
32
|
-
params[:single] = false
|
33
|
-
add_selector(params)
|
34
|
-
end
|
35
|
-
|
36
|
-
|
37
|
-
# @return [TestaAppiumDriver::Locator]
|
38
|
-
def window(params = {})
|
39
|
-
params[:type] = "XCUIElementTypeWindow"
|
40
|
-
add_selector(params)
|
41
|
-
end
|
42
|
-
|
43
|
-
# @return [TestaAppiumDriver::Locator]
|
44
|
-
def windows(params = {})
|
45
|
-
params[:type] = "XCUIElementTypeWindow"
|
46
|
-
params[:single] = false
|
47
|
-
add_selector(params)
|
48
|
-
end
|
49
|
-
|
50
|
-
# @return [TestaAppiumDriver::Locator]
|
51
|
-
def other(params = {})
|
52
|
-
params[:type] = "XCUIElementTypeOther"
|
53
|
-
add_selector(params)
|
54
|
-
end
|
55
|
-
|
56
|
-
# @return [TestaAppiumDriver::Locator]
|
57
|
-
def others(params = {})
|
58
|
-
params[:type] = "XCUIElementTypeOther"
|
59
|
-
params[:single] = false
|
60
|
-
add_selector(params)
|
61
|
-
end
|
62
|
-
|
63
|
-
|
64
|
-
# @return [TestaAppiumDriver::Locator]
|
65
|
-
def navigation_bar(params = {})
|
66
|
-
params[:type] = "XCUIElementTypeNavigationBar"
|
67
|
-
add_selector(params)
|
68
|
-
end
|
69
|
-
|
70
|
-
# @return [TestaAppiumDriver::Locator]
|
71
|
-
def navigation_bars(params = {})
|
72
|
-
params[:type] = "XCUIElementTypeNavigationBar"
|
73
|
-
params[:single] = false
|
74
|
-
add_selector(params)
|
75
|
-
end
|
76
|
-
|
77
|
-
|
78
|
-
# @return [TestaAppiumDriver::Locator]
|
79
|
-
def button(params = {})
|
80
|
-
params[:type] = "XCUIElementTypeButton"
|
81
|
-
add_selector(params)
|
82
|
-
end
|
83
|
-
|
84
|
-
# @return [TestaAppiumDriver::Locator]
|
85
|
-
def buttons(params = {})
|
86
|
-
params[:type] = "XCUIElementTypeButton"
|
87
|
-
params[:single] = false
|
88
|
-
add_selector(params)
|
89
|
-
end
|
90
|
-
|
91
|
-
|
92
|
-
# @return [TestaAppiumDriver::Locator]
|
93
|
-
def image(params = {})
|
94
|
-
params[:type] = "XCUIElementTypeImage"
|
95
|
-
add_selector(params)
|
96
|
-
end
|
97
|
-
|
98
|
-
# @return [TestaAppiumDriver::Locator]
|
99
|
-
def images(params = {})
|
100
|
-
params[:type] = "XCUIElementTypeImage"
|
101
|
-
params[:single] = false
|
102
|
-
add_selector(params)
|
103
|
-
end
|
104
|
-
|
105
|
-
# @return [TestaAppiumDriver::Locator]
|
106
|
-
def static_text(params = {})
|
107
|
-
params[:type] = "XCUIElementTypeStaticText"
|
108
|
-
add_selector(params)
|
109
|
-
end
|
110
|
-
|
111
|
-
# @return [TestaAppiumDriver::Locator]
|
112
|
-
def static_texts(params = {})
|
113
|
-
params[:type] = "XCUIElementTypeStaticText"
|
114
|
-
params[:single] = false
|
115
|
-
add_selector(params)
|
116
|
-
end
|
117
|
-
|
118
|
-
|
119
|
-
# @return [TestaAppiumDriver::Locator]
|
120
|
-
def scroll_view(params = {})
|
121
|
-
params[:type] = "XCUIElementTypeScrollView"
|
122
|
-
add_selector(params)
|
123
|
-
end
|
124
|
-
|
125
|
-
# @return [TestaAppiumDriver::Locator]
|
126
|
-
def scroll_views(params = {})
|
127
|
-
params[:type] = "XCUIElementTypeScrollView"
|
128
|
-
params[:single] = false
|
129
|
-
add_selector(params)
|
130
|
-
end
|
131
|
-
|
132
|
-
|
133
|
-
# @return [TestaAppiumDriver::Locator]
|
134
|
-
def table(params = {})
|
135
|
-
params[:type] = "XCUIElementTypeTable"
|
136
|
-
add_selector(params)
|
137
|
-
end
|
138
|
-
|
139
|
-
# @return [TestaAppiumDriver::Locator]
|
140
|
-
def tables(params = {})
|
141
|
-
params[:type] = "XCUIElementTypeTable"
|
142
|
-
params[:single] = false
|
143
|
-
add_selector(params)
|
144
|
-
end
|
145
|
-
|
146
|
-
# @return [TestaAppiumDriver::Locator]
|
147
|
-
def cell(params = {})
|
148
|
-
params[:type] = "XCUIElementTypeCell"
|
149
|
-
add_selector(params)
|
150
|
-
end
|
151
|
-
|
152
|
-
# @return [TestaAppiumDriver::Locator]
|
153
|
-
def cells(params = {})
|
154
|
-
params[:type] = "XCUIElementTypeCell"
|
155
|
-
params[:single] = false
|
156
|
-
add_selector(params)
|
157
|
-
end
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
# @return [TestaAppiumDriver::Locator]
|
162
|
-
def text_field(params = {})
|
163
|
-
params[:type] = "XCUIElementTypeTextField"
|
164
|
-
add_selector(params)
|
165
|
-
end
|
166
|
-
|
167
|
-
# @return [TestaAppiumDriver::Locator]
|
168
|
-
def text_fields(params = {})
|
169
|
-
params[:type] = "XCUIElementTypeTextField"
|
170
|
-
params[:single] = false
|
171
|
-
add_selector(params)
|
172
|
-
end
|
173
|
-
|
174
|
-
|
175
|
-
# @return [TestaAppiumDriver::Locator]
|
176
|
-
def secure_text_field(params = {})
|
177
|
-
params[:type] = "XCUIElementTypeSecureTextField"
|
178
|
-
add_selector(params)
|
179
|
-
end
|
180
|
-
|
181
|
-
# @return [TestaAppiumDriver::Locator]
|
182
|
-
def secure_text_fields(params = {})
|
183
|
-
params[:type] = "XCUIElementTypeSecureTextField"
|
184
|
-
params[:single] = false
|
185
|
-
add_selector(params)
|
186
|
-
end
|
187
|
-
end
|
1
|
+
module TestaAppiumDriver
|
2
|
+
#noinspection ALL
|
3
|
+
module TypeSelectors
|
4
|
+
|
5
|
+
# @return [TestaAppiumDriver::Locator]
|
6
|
+
def add_selector(*args, &block)
|
7
|
+
# if class selector is executed from driver, create new locator instance
|
8
|
+
if self.kind_of?(TestaAppiumDriver::Driver) || self.instance_of?(Selenium::WebDriver::Element)
|
9
|
+
args.last[:default_find_strategy] = @default_find_strategy
|
10
|
+
args.last[:default_scroll_strategy] = @default_scroll_strategy
|
11
|
+
if self.instance_of?(Selenium::WebDriver::Element)
|
12
|
+
driver = self.get_driver
|
13
|
+
else
|
14
|
+
driver = self
|
15
|
+
end
|
16
|
+
Locator.new(driver, self, *args)
|
17
|
+
else
|
18
|
+
# class selector is executed from locator, just add child selector criteria
|
19
|
+
self.add_child_selector(*args)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# @param selectors [Hash]
|
24
|
+
# @return [TestaAppiumDriver::Locator] first element
|
25
|
+
def element(selectors = {})
|
26
|
+
add_selector(selectors)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @param params [Hash]
|
30
|
+
# @return [TestaAppiumDriver::Locator] all elements that match given selectors
|
31
|
+
def elements(params = {})
|
32
|
+
params[:single] = false
|
33
|
+
add_selector(params)
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
# @return [TestaAppiumDriver::Locator]
|
38
|
+
def window(params = {})
|
39
|
+
params[:type] = "XCUIElementTypeWindow"
|
40
|
+
add_selector(params)
|
41
|
+
end
|
42
|
+
|
43
|
+
# @return [TestaAppiumDriver::Locator]
|
44
|
+
def windows(params = {})
|
45
|
+
params[:type] = "XCUIElementTypeWindow"
|
46
|
+
params[:single] = false
|
47
|
+
add_selector(params)
|
48
|
+
end
|
49
|
+
|
50
|
+
# @return [TestaAppiumDriver::Locator]
|
51
|
+
def other(params = {})
|
52
|
+
params[:type] = "XCUIElementTypeOther"
|
53
|
+
add_selector(params)
|
54
|
+
end
|
55
|
+
|
56
|
+
# @return [TestaAppiumDriver::Locator]
|
57
|
+
def others(params = {})
|
58
|
+
params[:type] = "XCUIElementTypeOther"
|
59
|
+
params[:single] = false
|
60
|
+
add_selector(params)
|
61
|
+
end
|
62
|
+
|
63
|
+
|
64
|
+
# @return [TestaAppiumDriver::Locator]
|
65
|
+
def navigation_bar(params = {})
|
66
|
+
params[:type] = "XCUIElementTypeNavigationBar"
|
67
|
+
add_selector(params)
|
68
|
+
end
|
69
|
+
|
70
|
+
# @return [TestaAppiumDriver::Locator]
|
71
|
+
def navigation_bars(params = {})
|
72
|
+
params[:type] = "XCUIElementTypeNavigationBar"
|
73
|
+
params[:single] = false
|
74
|
+
add_selector(params)
|
75
|
+
end
|
76
|
+
|
77
|
+
|
78
|
+
# @return [TestaAppiumDriver::Locator]
|
79
|
+
def button(params = {})
|
80
|
+
params[:type] = "XCUIElementTypeButton"
|
81
|
+
add_selector(params)
|
82
|
+
end
|
83
|
+
|
84
|
+
# @return [TestaAppiumDriver::Locator]
|
85
|
+
def buttons(params = {})
|
86
|
+
params[:type] = "XCUIElementTypeButton"
|
87
|
+
params[:single] = false
|
88
|
+
add_selector(params)
|
89
|
+
end
|
90
|
+
|
91
|
+
|
92
|
+
# @return [TestaAppiumDriver::Locator]
|
93
|
+
def image(params = {})
|
94
|
+
params[:type] = "XCUIElementTypeImage"
|
95
|
+
add_selector(params)
|
96
|
+
end
|
97
|
+
|
98
|
+
# @return [TestaAppiumDriver::Locator]
|
99
|
+
def images(params = {})
|
100
|
+
params[:type] = "XCUIElementTypeImage"
|
101
|
+
params[:single] = false
|
102
|
+
add_selector(params)
|
103
|
+
end
|
104
|
+
|
105
|
+
# @return [TestaAppiumDriver::Locator]
|
106
|
+
def static_text(params = {})
|
107
|
+
params[:type] = "XCUIElementTypeStaticText"
|
108
|
+
add_selector(params)
|
109
|
+
end
|
110
|
+
|
111
|
+
# @return [TestaAppiumDriver::Locator]
|
112
|
+
def static_texts(params = {})
|
113
|
+
params[:type] = "XCUIElementTypeStaticText"
|
114
|
+
params[:single] = false
|
115
|
+
add_selector(params)
|
116
|
+
end
|
117
|
+
|
118
|
+
|
119
|
+
# @return [TestaAppiumDriver::Locator]
|
120
|
+
def scroll_view(params = {})
|
121
|
+
params[:type] = "XCUIElementTypeScrollView"
|
122
|
+
add_selector(params)
|
123
|
+
end
|
124
|
+
|
125
|
+
# @return [TestaAppiumDriver::Locator]
|
126
|
+
def scroll_views(params = {})
|
127
|
+
params[:type] = "XCUIElementTypeScrollView"
|
128
|
+
params[:single] = false
|
129
|
+
add_selector(params)
|
130
|
+
end
|
131
|
+
|
132
|
+
|
133
|
+
# @return [TestaAppiumDriver::Locator]
|
134
|
+
def table(params = {})
|
135
|
+
params[:type] = "XCUIElementTypeTable"
|
136
|
+
add_selector(params)
|
137
|
+
end
|
138
|
+
|
139
|
+
# @return [TestaAppiumDriver::Locator]
|
140
|
+
def tables(params = {})
|
141
|
+
params[:type] = "XCUIElementTypeTable"
|
142
|
+
params[:single] = false
|
143
|
+
add_selector(params)
|
144
|
+
end
|
145
|
+
|
146
|
+
# @return [TestaAppiumDriver::Locator]
|
147
|
+
def cell(params = {})
|
148
|
+
params[:type] = "XCUIElementTypeCell"
|
149
|
+
add_selector(params)
|
150
|
+
end
|
151
|
+
|
152
|
+
# @return [TestaAppiumDriver::Locator]
|
153
|
+
def cells(params = {})
|
154
|
+
params[:type] = "XCUIElementTypeCell"
|
155
|
+
params[:single] = false
|
156
|
+
add_selector(params)
|
157
|
+
end
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
# @return [TestaAppiumDriver::Locator]
|
162
|
+
def text_field(params = {})
|
163
|
+
params[:type] = "XCUIElementTypeTextField"
|
164
|
+
add_selector(params)
|
165
|
+
end
|
166
|
+
|
167
|
+
# @return [TestaAppiumDriver::Locator]
|
168
|
+
def text_fields(params = {})
|
169
|
+
params[:type] = "XCUIElementTypeTextField"
|
170
|
+
params[:single] = false
|
171
|
+
add_selector(params)
|
172
|
+
end
|
173
|
+
|
174
|
+
|
175
|
+
# @return [TestaAppiumDriver::Locator]
|
176
|
+
def secure_text_field(params = {})
|
177
|
+
params[:type] = "XCUIElementTypeSecureTextField"
|
178
|
+
add_selector(params)
|
179
|
+
end
|
180
|
+
|
181
|
+
# @return [TestaAppiumDriver::Locator]
|
182
|
+
def secure_text_fields(params = {})
|
183
|
+
params[:type] = "XCUIElementTypeSecureTextField"
|
184
|
+
params[:single] = false
|
185
|
+
add_selector(params)
|
186
|
+
end
|
187
|
+
end
|
188
188
|
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module TestaAppiumDriver
|
4
|
-
VERSION = "0.1.
|
5
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TestaAppiumDriver
|
4
|
+
VERSION = "0.1.12"
|
5
|
+
end
|
data/lib/testa_appium_driver.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'testa_appium_driver/common/constants'
|
4
|
-
require_relative 'testa_appium_driver/driver'
|
5
|
-
require_relative 'testa_appium_driver/version'
|
6
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'testa_appium_driver/common/constants'
|
4
|
+
require_relative 'testa_appium_driver/driver'
|
5
|
+
require_relative 'testa_appium_driver/version'
|
6
|
+
|
data/testa_appium_driver.gemspec
CHANGED
@@ -1,41 +1,41 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "lib/testa_appium_driver/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "testa_appium_driver"
|
7
|
-
spec.version = TestaAppiumDriver::VERSION
|
8
|
-
spec.authors = ["karlo.razumovic"]
|
9
|
-
spec.email = ["karlo.razumovic@gmail.com"]
|
10
|
-
|
11
|
-
spec.summary = "Appium made easy"
|
12
|
-
spec.description = "Testa appium driver is a wrapper around ruby_lib_core. It leverages all driver features and makes them simple and easy to use, significantly reduces the amount of code needed and enables you to define locators that can be reused"
|
13
|
-
spec.homepage = "https://github.com/Karazum/testa_appium_driver"
|
14
|
-
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = ">= 2.4.0"
|
16
|
-
|
17
|
-
#spec.metadata["allowed_push_host"] = "Set to 'https://mygemserver.com'"
|
18
|
-
|
19
|
-
spec.metadata["documentation_uri"] = "https://www.rubydoc.info/gems/testa_appium_driver"
|
20
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
21
|
-
spec.metadata["source_code_uri"] = "https://github.com/Karazum/testa_appium_driver"
|
22
|
-
spec.metadata["changelog_uri"] = "https://github.com/Karazum/testa_appium_driver"
|
23
|
-
|
24
|
-
# Specify which files should be added to the gem when it is released.
|
25
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
26
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
27
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
28
|
-
end
|
29
|
-
spec.bindir = "exe"
|
30
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
|
-
spec.require_paths = ["lib"]
|
32
|
-
|
33
|
-
spec.add_runtime_dependency "appium_lib_core", ["= 4.7.0"]
|
34
|
-
spec.add_runtime_dependency "json", ["~> 2.3"]
|
35
|
-
|
36
|
-
spec.add_development_dependency "rubocop", ["= 1.19.0"]
|
37
|
-
spec.add_development_dependency "rake", ["~> 13.0"]
|
38
|
-
|
39
|
-
# For more information and examples about making a new gem, checkout our
|
40
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
41
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/testa_appium_driver/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "testa_appium_driver"
|
7
|
+
spec.version = TestaAppiumDriver::VERSION
|
8
|
+
spec.authors = ["karlo.razumovic"]
|
9
|
+
spec.email = ["karlo.razumovic@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "Appium made easy"
|
12
|
+
spec.description = "Testa appium driver is a wrapper around ruby_lib_core. It leverages all driver features and makes them simple and easy to use, significantly reduces the amount of code needed and enables you to define locators that can be reused"
|
13
|
+
spec.homepage = "https://github.com/Karazum/testa_appium_driver"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = ">= 2.4.0"
|
16
|
+
|
17
|
+
#spec.metadata["allowed_push_host"] = "Set to 'https://mygemserver.com'"
|
18
|
+
|
19
|
+
spec.metadata["documentation_uri"] = "https://www.rubydoc.info/gems/testa_appium_driver"
|
20
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
21
|
+
spec.metadata["source_code_uri"] = "https://github.com/Karazum/testa_appium_driver"
|
22
|
+
spec.metadata["changelog_uri"] = "https://github.com/Karazum/testa_appium_driver"
|
23
|
+
|
24
|
+
# Specify which files should be added to the gem when it is released.
|
25
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
26
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
27
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_runtime_dependency "appium_lib_core", ["= 4.7.0"]
|
34
|
+
spec.add_runtime_dependency "json", ["~> 2.3"]
|
35
|
+
|
36
|
+
spec.add_development_dependency "rubocop", ["= 1.19.0"]
|
37
|
+
spec.add_development_dependency "rake", ["~> 13.0"]
|
38
|
+
|
39
|
+
# For more information and examples about making a new gem, checkout our
|
40
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
41
|
+
end
|
data/testa_appium_driver.iml
CHANGED
@@ -1,79 +1,28 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
-
<exclude-output />
|
5
|
-
<content url="file://$MODULE_DIR$"
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
<orderEntry type="
|
11
|
-
<orderEntry type="
|
12
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
13
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
24
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
25
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
27
|
-
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.10.1, ruby-2.6.5-p114) [gem]" level="application" />
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.10.2, ruby-2.6.5-p114) [gem]" level="application" />
|
30
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.10.2, ruby-2.6.5-p114) [gem]" level="application" />
|
31
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop (v1.20.0, ruby-2.6.5-p114) [gem]" level="application" />
|
32
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.11.0, ruby-2.6.5-p114) [gem]" level="application" />
|
33
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, ruby-2.6.5-p114) [gem]" level="application" />
|
34
|
-
<orderEntry type="library" scope="PROVIDED" name="rubyzip (v2.3.2, ruby-2.6.5-p114) [gem]" level="application" />
|
35
|
-
<orderEntry type="library" scope="PROVIDED" name="selenium-webdriver (v3.142.7, ruby-2.6.5-p114) [gem]" level="application" />
|
36
|
-
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.0.0, ruby-2.6.5-p114) [gem]" level="application" />
|
37
|
-
<orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.7.5, ruby-2.6.5-p114) [gem]" level="application" />
|
38
|
-
<orderEntry type="library" scope="PROVIDED" name="websocket-extensions (v0.1.5, ruby-2.6.5-p114) [gem]" level="application" />
|
39
|
-
</component>
|
40
|
-
<component name="RakeTasksCache">
|
41
|
-
<option name="myRootTask">
|
42
|
-
<RakeTaskImpl id="rake">
|
43
|
-
<subtasks>
|
44
|
-
<RakeTaskImpl description="Build testa_appium_driver-0.1.5.gem into the pkg directory" fullCommand="build" id="build" />
|
45
|
-
<RakeTaskImpl id="build">
|
46
|
-
<subtasks>
|
47
|
-
<RakeTaskImpl description="Generate SHA512 checksum if testa_appium_driver-0.1.5.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
|
48
|
-
</subtasks>
|
49
|
-
</RakeTaskImpl>
|
50
|
-
<RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
|
51
|
-
<RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
|
52
|
-
<RakeTaskImpl description="Build and install testa_appium_driver-0.1.5.gem into system gems" fullCommand="install" id="install" />
|
53
|
-
<RakeTaskImpl id="install">
|
54
|
-
<subtasks>
|
55
|
-
<RakeTaskImpl description="Build and install testa_appium_driver-0.1.5.gem into system gems without network access" fullCommand="install:local" id="local" />
|
56
|
-
</subtasks>
|
57
|
-
</RakeTaskImpl>
|
58
|
-
<RakeTaskImpl description="Create tag v0.1.5 and build and push testa_appium_driver-0.1.5.gem to rubygems.org" fullCommand="release[remote]" id="release[remote]" />
|
59
|
-
<RakeTaskImpl description="Run RuboCop" fullCommand="rubocop" id="rubocop" />
|
60
|
-
<RakeTaskImpl id="rubocop">
|
61
|
-
<subtasks>
|
62
|
-
<RakeTaskImpl description="Auto-correct RuboCop offenses" fullCommand="rubocop:auto_correct" id="auto_correct" />
|
63
|
-
</subtasks>
|
64
|
-
</RakeTaskImpl>
|
65
|
-
<RakeTaskImpl description="Run RSpec code examples" fullCommand="spec" id="spec" />
|
66
|
-
<RakeTaskImpl description="" fullCommand="default" id="default" />
|
67
|
-
<RakeTaskImpl description="" fullCommand="release" id="release" />
|
68
|
-
<RakeTaskImpl id="release">
|
69
|
-
<subtasks>
|
70
|
-
<RakeTaskImpl description="" fullCommand="release:guard_clean" id="guard_clean" />
|
71
|
-
<RakeTaskImpl description="" fullCommand="release:rubygem_push" id="rubygem_push" />
|
72
|
-
<RakeTaskImpl description="" fullCommand="release:source_control_push" id="source_control_push" />
|
73
|
-
</subtasks>
|
74
|
-
</RakeTaskImpl>
|
75
|
-
</subtasks>
|
76
|
-
</RakeTaskImpl>
|
77
|
-
</option>
|
78
|
-
</component>
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
+
<exclude-output />
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
6
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-2.7.0" jdkType="RUBY_SDK" />
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
8
|
+
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-2.7.0) [gem]" level="application" />
|
9
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.3.4, RVM: ruby-2.7.0) [gem]" level="application" />
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.0, RVM: ruby-2.7.0) [gem]" level="application" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="json (v2.6.1, RVM: ruby-2.7.0) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.21.0, RVM: ruby-2.7.0) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="parser (v3.1.0.0, RVM: ruby-2.7.0) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, RVM: ruby-2.7.0) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, RVM: ruby-2.7.0) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.2.0, RVM: ruby-2.7.0) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, RVM: ruby-2.7.0) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.10.0, RVM: ruby-2.7.0) [gem]" level="application" />
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.10.1, RVM: ruby-2.7.0) [gem]" level="application" />
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.10.2, RVM: ruby-2.7.0) [gem]" level="application" />
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.10.2, RVM: ruby-2.7.0) [gem]" level="application" />
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.10.3, RVM: ruby-2.7.0) [gem]" level="application" />
|
23
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop (v1.25.0, RVM: ruby-2.7.0) [gem]" level="application" />
|
24
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.15.1, RVM: ruby-2.7.0) [gem]" level="application" />
|
25
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, RVM: ruby-2.7.0) [gem]" level="application" />
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.1.0, RVM: ruby-2.7.0) [gem]" level="application" />
|
27
|
+
</component>
|
79
28
|
</module>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testa_appium_driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- karlo.razumovic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appium_lib_core
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.1.2
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Appium made easy
|