puppeteer-ruby 0.0.20 → 0.0.21
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/lib/puppeteer/devices.rb +998 -849
- data/lib/puppeteer/keyboard/us_keyboard_layout.rb +2 -2
- data/lib/puppeteer/launcher/firefox.rb +4 -7
- data/lib/puppeteer/version.rb +1 -1
- metadata +2 -2
@@ -89,7 +89,7 @@ class Puppeteer::Keyboard
|
|
89
89
|
'Digit6': KeyDefinition.new({ 'keyCode': 54, 'code': 'Digit6', 'shiftKey': '^', 'key': '6' }),
|
90
90
|
'Digit7': KeyDefinition.new({ 'keyCode': 55, 'code': 'Digit7', 'shiftKey': '&', 'key': '7' }),
|
91
91
|
'Digit8': KeyDefinition.new({ 'keyCode': 56, 'code': 'Digit8', 'shiftKey': '*', 'key': '8' }),
|
92
|
-
'Digit9': KeyDefinition.new({ 'keyCode': 57, 'code': 'Digit9', 'shiftKey': '
|
92
|
+
'Digit9': KeyDefinition.new({ 'keyCode': 57, 'code': 'Digit9', 'shiftKey': '(', 'key': '9' }),
|
93
93
|
'KeyA': KeyDefinition.new({ 'keyCode': 65, 'code': 'KeyA', 'shiftKey': 'A', 'key': 'a' }),
|
94
94
|
'KeyB': KeyDefinition.new({ 'keyCode': 66, 'code': 'KeyB', 'shiftKey': 'B', 'key': 'b' }),
|
95
95
|
'KeyC': KeyDefinition.new({ 'keyCode': 67, 'code': 'KeyC', 'shiftKey': 'C', 'key': 'c' }),
|
@@ -235,7 +235,7 @@ class Puppeteer::Keyboard
|
|
235
235
|
'%': KeyDefinition.new({ 'keyCode': 53, 'key': '%', 'code': 'Digit5' }),
|
236
236
|
'^': KeyDefinition.new({ 'keyCode': 54, 'key': '^', 'code': 'Digit6' }),
|
237
237
|
'&': KeyDefinition.new({ 'keyCode': 55, 'key': '&', 'code': 'Digit7' }),
|
238
|
-
'(': KeyDefinition.new({ 'keyCode': 57, 'key': '
|
238
|
+
'(': KeyDefinition.new({ 'keyCode': 57, 'key': '(', 'code': 'Digit9' }),
|
239
239
|
'A': KeyDefinition.new({ 'keyCode': 65, 'key': 'A', 'code': 'KeyA' }),
|
240
240
|
'B': KeyDefinition.new({ 'keyCode': 66, 'key': 'B', 'code': 'KeyB' }),
|
241
241
|
'C': KeyDefinition.new({ 'keyCode': 67, 'key': 'C', 'code': 'KeyC' }),
|
@@ -203,7 +203,7 @@ module Puppeteer::Launcher
|
|
203
203
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1543115
|
204
204
|
'browser.dom.window.dump.enabled': true,
|
205
205
|
# Disable topstories
|
206
|
-
'browser.newtabpage.activity-stream.feeds.
|
206
|
+
'browser.newtabpage.activity-stream.feeds.system.topstories': false,
|
207
207
|
# Always display a blank page
|
208
208
|
'browser.newtabpage.enabled': false,
|
209
209
|
# Background thumbnails in particular cause grief: and disabling
|
@@ -250,16 +250,15 @@ module Puppeteer::Launcher
|
|
250
250
|
# Do not warn on quitting Firefox
|
251
251
|
'browser.warnOnQuit': false,
|
252
252
|
|
253
|
-
#
|
254
|
-
# interfere with tests
|
255
|
-
'datareporting.healthreport.about.reportUrl': "http://#{server}/dummy/abouthealthreport/",
|
253
|
+
# Defensively disable data reporting systems
|
256
254
|
'datareporting.healthreport.documentServerURI': "http://#{server}/dummy/healthreport/",
|
257
255
|
'datareporting.healthreport.logging.consoleEnabled': false,
|
258
256
|
'datareporting.healthreport.service.enabled': false,
|
259
257
|
'datareporting.healthreport.service.firstRun': false,
|
260
258
|
'datareporting.healthreport.uploadEnabled': false,
|
259
|
+
|
260
|
+
# Do not show datareporting policy notifications which can interfere with tests
|
261
261
|
'datareporting.policy.dataSubmissionEnabled': false,
|
262
|
-
'datareporting.policy.dataSubmissionPolicyAccepted': false,
|
263
262
|
'datareporting.policy.dataSubmissionPolicyBypassNotification': true,
|
264
263
|
|
265
264
|
# DevTools JSONViewer sometimes fails to load dependencies with its require.js.
|
@@ -372,8 +371,6 @@ module Puppeteer::Launcher
|
|
372
371
|
# Disable browser animations (tabs, fullscreen, sliding alerts)
|
373
372
|
'toolkit.cosmeticAnimations.enabled': false,
|
374
373
|
|
375
|
-
# We want to collect telemetry, but we don't want to send in the results
|
376
|
-
'toolkit.telemetry.server': "https://#{server}/dummy/telemetry/",
|
377
374
|
# Prevent starting into safe mode after application crashes
|
378
375
|
'toolkit.startup.max_resumed_crashes': -1,
|
379
376
|
}
|
data/lib/puppeteer/version.rb
CHANGED
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.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YusukeIwaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|