pincers 0.7.12 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f6b9ba7b50186ab1b049701e1f9cfd8e0dc3bf21
4
- data.tar.gz: 203d87b1253351689498679ed5252952d7f3ad18
2
+ SHA256:
3
+ metadata.gz: dac67e38b1e4283ad160c13b700398676c75ce990c57fcad55917e677088ac0c
4
+ data.tar.gz: c2aba99a70c2fc808cb4d0a9049c8fbaa5133a5dd81577699632c82121655d1e
5
5
  SHA512:
6
- metadata.gz: 4582a738b78d4b0bc69966de6559ab2e1c8ad547603c915589db407c4e0ad0275d9e250e291e9696db52682d219102afe00631776bd1edb05e1e50be3de7779b
7
- data.tar.gz: 3b9752a404dddddb1f47039801046f4f879dd709bf11c8192e415bc8ca9a19ad8da25ac27bcd3c641060956f363bea2ed0711e6300375838a8735acb54b2e5f6
6
+ metadata.gz: 3d1b290a74921abadbde13a1d76715f2d3d9f7b2ee0b201543c2d4dfa24378781a73551f4aa82bb19bac2f35cb5f7b728bbd7fce1938b67a843c466f90ad6b82
7
+ data.tar.gz: dfdd6b5fcbb13fe45faeb79702153e71274aad7ec0ed22db79b636f2e31d57359e3c7d48ccaf3db3b93ee4e9cd8cbdef81fd9412896af808b8fcbcfbf6b9b17e
@@ -1,3 +1,3 @@
1
1
  module Pincers
2
- VERSION = "0.7.12"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -122,25 +122,21 @@ module Pincers::Webdriver
122
122
  end
123
123
 
124
124
  def right_click_on_element(_element)
125
- assert_has_input_devices_for :right_click_on_element
126
125
  _element = ensure_ready_for_input _element
127
126
  actions.context_click(_element).perform
128
127
  end
129
128
 
130
129
  def double_click_on_element(_element)
131
- assert_has_input_devices_for :double_click_on_element
132
130
  _element = ensure_ready_for_input _element
133
131
  actions.double_click(_element).perform
134
132
  end
135
133
 
136
134
  def hover_over_element(_element)
137
- assert_has_input_devices_for :hover_over_element
138
135
  _element = ensure_ready_for_input _element
139
136
  actions.move_to(_element).perform
140
137
  end
141
138
 
142
139
  def drag_and_drop(_element, _on)
143
- assert_has_input_devices_for :drag_and_drop
144
140
  _element = ensure_input_element _element
145
141
  actions.drag_and_drop(_element, _on).perform
146
142
  end
@@ -186,19 +182,12 @@ module Pincers::Webdriver
186
182
  end
187
183
 
188
184
  def click_with_modifiers(_element, _modifiers)
189
- assert_has_input_devices_for :click_with_modifiers
190
185
  _modifiers.each { |m| actions.key_down m }
191
186
  actions.click _element
192
187
  _modifiers.each { |m| actions.key_up m }
193
188
  actions.perform
194
189
  end
195
190
 
196
- def assert_has_input_devices_for(_name)
197
- unless driver.kind_of? Selenium::WebDriver::DriverExtensions::HasInputDevices
198
- raise MissingFeatureError, _name
199
- end
200
- end
201
-
202
191
  def ensure_element(_element)
203
192
  return driver.find_element tag_name: 'html' if _element == driver
204
193
  _element
metadata CHANGED
@@ -1,225 +1,225 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pincers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.12
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Baixas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-18 00:00:00.000000000 Z
11
+ date: 2024-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: '1.13'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: '1.13'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: selenium-webdriver
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.45'
33
+ version: 4.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.45'
40
+ version: 4.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.6'
47
+ version: 2.3.26
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.6'
54
+ version: 2.3.26
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '10.4'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '3.1'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.1'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-nc
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0.2'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0.2'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: guard
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '2.11'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '2.11'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: guard-rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '4.5'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '4.5'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: terminal-notifier-guard
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: '1.6'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '1.6'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: pry
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0.10'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0.10'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: pry-remote
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ~>
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0.1'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ~>
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0.1'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: pry-nav
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ~>
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0.2'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ~>
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0.2'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rack
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ~>
185
+ - - "~>"
186
186
  - !ruby/object:Gem::Version
187
187
  version: '1.6'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ~>
192
+ - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: '1.6'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: thin
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ~>
199
+ - - "~>"
200
200
  - !ruby/object:Gem::Version
201
201
  version: '1.6'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ~>
206
+ - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: '1.6'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: webmock
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ~>
213
+ - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: '1.22'
215
+ version: 3.18.1
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ~>
220
+ - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: '1.22'
222
+ version: 3.18.1
223
223
  description: Web automation DSL on top of webdriver and nokogiri
224
224
  email:
225
225
  - ignacio@platan.us
@@ -272,25 +272,23 @@ homepage: https://github.com/platanus/pincers
272
272
  licenses:
273
273
  - MIT
274
274
  metadata: {}
275
- post_install_message:
275
+ post_install_message:
276
276
  rdoc_options: []
277
277
  require_paths:
278
278
  - lib
279
279
  required_ruby_version: !ruby/object:Gem::Requirement
280
280
  requirements:
281
- - - '>='
281
+ - - ">="
282
282
  - !ruby/object:Gem::Version
283
283
  version: '0'
284
284
  required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  requirements:
286
- - - '>='
286
+ - - ">="
287
287
  - !ruby/object:Gem::Version
288
288
  version: '0'
289
289
  requirements: []
290
- rubyforge_project:
291
- rubygems_version: 2.6.1
292
- signing_key:
290
+ rubygems_version: 3.1.6
291
+ signing_key:
293
292
  specification_version: 4
294
293
  summary: Web automation framework with multiple backend support
295
294
  test_files: []
296
- has_rdoc: