puppeteer-ruby 0.0.18 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +24 -1
- data/.github/workflows/reviewdog.yml +1 -1
- data/.rubocop.yml +50 -3
- data/Dockerfile +9 -0
- data/README.md +38 -0
- data/docker-compose.yml +34 -0
- data/lib/puppeteer.rb +15 -11
- data/lib/puppeteer/browser.rb +19 -26
- data/lib/puppeteer/browser_context.rb +48 -49
- data/lib/puppeteer/browser_runner.rb +20 -6
- data/lib/puppeteer/cdp_session.rb +21 -7
- data/lib/puppeteer/concurrent_ruby_utils.rb +18 -5
- data/lib/puppeteer/connection.rb +32 -13
- data/lib/puppeteer/debug_print.rb +1 -1
- data/lib/puppeteer/define_async_method.rb +1 -1
- data/lib/puppeteer/devices.rb +998 -849
- data/lib/puppeteer/dialog.rb +34 -0
- data/lib/puppeteer/dom_world.rb +2 -2
- data/lib/puppeteer/element_handle.rb +18 -1
- data/lib/puppeteer/env.rb +5 -0
- data/lib/puppeteer/event_callbackable.rb +4 -0
- data/lib/puppeteer/events.rb +184 -0
- data/lib/puppeteer/exception_details.rb +38 -0
- data/lib/puppeteer/frame.rb +1 -3
- data/lib/puppeteer/frame_manager.rb +20 -16
- data/lib/puppeteer/geolocation.rb +24 -0
- data/lib/puppeteer/keyboard/us_keyboard_layout.rb +2 -2
- data/lib/puppeteer/launcher.rb +11 -2
- data/lib/puppeteer/launcher/base.rb +14 -4
- data/lib/puppeteer/launcher/browser_options.rb +2 -1
- data/lib/puppeteer/launcher/chrome.rb +5 -9
- data/lib/puppeteer/launcher/firefox.rb +385 -0
- data/lib/puppeteer/lifecycle_watcher.rb +6 -6
- data/lib/puppeteer/network_manager.rb +6 -6
- data/lib/puppeteer/page.rb +87 -103
- data/lib/puppeteer/remote_object.rb +12 -1
- data/lib/puppeteer/target.rb +2 -2
- data/lib/puppeteer/version.rb +1 -1
- data/puppeteer-ruby.gemspec +1 -1
- metadata +11 -4
data/lib/puppeteer/version.rb
CHANGED
data/puppeteer-ruby.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
27
27
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
28
|
spec.add_development_dependency 'rspec_junit_formatter' # for CircleCI.
|
29
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
29
|
+
spec.add_development_dependency 'rubocop', '~> 0.90.0'
|
30
30
|
spec.add_development_dependency 'rubocop-rspec'
|
31
31
|
spec.add_development_dependency 'sinatra'
|
32
32
|
spec.add_development_dependency 'yard'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppeteer-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YusukeIwaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08
|
11
|
+
date: 2020-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
131
|
+
version: 0.90.0
|
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
|
-
version: 0.
|
138
|
+
version: 0.90.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rubocop-rspec
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,11 +193,13 @@ files:
|
|
193
193
|
- ".rspec"
|
194
194
|
- ".rubocop.yml"
|
195
195
|
- ".travis.yml"
|
196
|
+
- Dockerfile
|
196
197
|
- Gemfile
|
197
198
|
- README.md
|
198
199
|
- Rakefile
|
199
200
|
- bin/console
|
200
201
|
- bin/setup
|
202
|
+
- docker-compose.yml
|
201
203
|
- lib/puppeteer.rb
|
202
204
|
- lib/puppeteer/browser.rb
|
203
205
|
- lib/puppeteer/browser_context.rb
|
@@ -211,6 +213,7 @@ files:
|
|
211
213
|
- lib/puppeteer/define_async_method.rb
|
212
214
|
- lib/puppeteer/device.rb
|
213
215
|
- lib/puppeteer/devices.rb
|
216
|
+
- lib/puppeteer/dialog.rb
|
214
217
|
- lib/puppeteer/dom_world.rb
|
215
218
|
- lib/puppeteer/element_handle.rb
|
216
219
|
- lib/puppeteer/element_handle/bounding_box.rb
|
@@ -220,10 +223,13 @@ files:
|
|
220
223
|
- lib/puppeteer/env.rb
|
221
224
|
- lib/puppeteer/errors.rb
|
222
225
|
- lib/puppeteer/event_callbackable.rb
|
226
|
+
- lib/puppeteer/events.rb
|
227
|
+
- lib/puppeteer/exception_details.rb
|
223
228
|
- lib/puppeteer/execution_context.rb
|
224
229
|
- lib/puppeteer/file_chooser.rb
|
225
230
|
- lib/puppeteer/frame.rb
|
226
231
|
- lib/puppeteer/frame_manager.rb
|
232
|
+
- lib/puppeteer/geolocation.rb
|
227
233
|
- lib/puppeteer/if_present.rb
|
228
234
|
- lib/puppeteer/js_handle.rb
|
229
235
|
- lib/puppeteer/keyboard.rb
|
@@ -234,6 +240,7 @@ files:
|
|
234
240
|
- lib/puppeteer/launcher/browser_options.rb
|
235
241
|
- lib/puppeteer/launcher/chrome.rb
|
236
242
|
- lib/puppeteer/launcher/chrome_arg_options.rb
|
243
|
+
- lib/puppeteer/launcher/firefox.rb
|
237
244
|
- lib/puppeteer/launcher/launch_options.rb
|
238
245
|
- lib/puppeteer/lifecycle_watcher.rb
|
239
246
|
- lib/puppeteer/mouse.rb
|