puppeteer-ruby 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +71 -0
  3. data/.github/stale.yml +16 -0
  4. data/.gitignore +19 -0
  5. data/.rspec +3 -0
  6. data/.rubocop.yml +302 -0
  7. data/.travis.yml +7 -0
  8. data/Dockerfile +6 -0
  9. data/Gemfile +6 -0
  10. data/README.md +54 -0
  11. data/Rakefile +1 -0
  12. data/bin/console +11 -0
  13. data/bin/setup +8 -0
  14. data/docker-compose.yml +15 -0
  15. data/docs/Puppeteer.html +2020 -0
  16. data/docs/Puppeteer/AsyncAwaitBehavior.html +105 -0
  17. data/docs/Puppeteer/Browser.html +2148 -0
  18. data/docs/Puppeteer/BrowserContext.html +809 -0
  19. data/docs/Puppeteer/BrowserFetcher.html +214 -0
  20. data/docs/Puppeteer/BrowserRunner.html +914 -0
  21. data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +477 -0
  22. data/docs/Puppeteer/CDPSession.html +813 -0
  23. data/docs/Puppeteer/CDPSession/Error.html +124 -0
  24. data/docs/Puppeteer/ConcurrentRubyUtils.html +430 -0
  25. data/docs/Puppeteer/Connection.html +960 -0
  26. data/docs/Puppeteer/Connection/MessageCallback.html +434 -0
  27. data/docs/Puppeteer/Connection/ProtocolError.html +216 -0
  28. data/docs/Puppeteer/Connection/RequestDebugPrinter.html +217 -0
  29. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +244 -0
  30. data/docs/Puppeteer/ConsoleMessage.html +565 -0
  31. data/docs/Puppeteer/ConsoleMessage/Location.html +433 -0
  32. data/docs/Puppeteer/DOMWorld.html +2219 -0
  33. data/docs/Puppeteer/DOMWorld/DetachedError.html +124 -0
  34. data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +124 -0
  35. data/docs/Puppeteer/DebugPrint.html +233 -0
  36. data/docs/Puppeteer/Device.html +470 -0
  37. data/docs/Puppeteer/Devices.html +139 -0
  38. data/docs/Puppeteer/ElementHandle.html +2542 -0
  39. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +206 -0
  40. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +206 -0
  41. data/docs/Puppeteer/ElementHandle/Point.html +492 -0
  42. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +124 -0
  43. data/docs/Puppeteer/EmulationManager.html +454 -0
  44. data/docs/Puppeteer/EventCallbackable.html +433 -0
  45. data/docs/Puppeteer/EventCallbackable/EventListeners.html +435 -0
  46. data/docs/Puppeteer/ExecutionContext.html +998 -0
  47. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +124 -0
  48. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +357 -0
  49. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +389 -0
  50. data/docs/Puppeteer/FileChooser.html +455 -0
  51. data/docs/Puppeteer/Frame.html +3677 -0
  52. data/docs/Puppeteer/FrameManager.html +2410 -0
  53. data/docs/Puppeteer/FrameManager/NavigationError.html +124 -0
  54. data/docs/Puppeteer/IfPresent.html +222 -0
  55. data/docs/Puppeteer/JSHandle.html +1352 -0
  56. data/docs/Puppeteer/Keyboard.html +1557 -0
  57. data/docs/Puppeteer/Keyboard/KeyDefinition.html +831 -0
  58. data/docs/Puppeteer/Keyboard/KeyDescription.html +603 -0
  59. data/docs/Puppeteer/Launcher.html +237 -0
  60. data/docs/Puppeteer/Launcher/Base.html +385 -0
  61. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +124 -0
  62. data/docs/Puppeteer/Launcher/BrowserOptions.html +441 -0
  63. data/docs/Puppeteer/Launcher/Chrome.html +669 -0
  64. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +382 -0
  65. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +531 -0
  66. data/docs/Puppeteer/Launcher/LaunchOptions.html +893 -0
  67. data/docs/Puppeteer/LifecycleWatcher.html +834 -0
  68. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +363 -0
  69. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +206 -0
  70. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +124 -0
  71. data/docs/Puppeteer/Mouse.html +1105 -0
  72. data/docs/Puppeteer/Mouse/Button.html +136 -0
  73. data/docs/Puppeteer/NetworkManager.html +901 -0
  74. data/docs/Puppeteer/NetworkManager/Credentials.html +385 -0
  75. data/docs/Puppeteer/Page.html +5970 -0
  76. data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
  77. data/docs/Puppeteer/Page/ScreenshotOptions.html +845 -0
  78. data/docs/Puppeteer/Page/ScriptTag.html +555 -0
  79. data/docs/Puppeteer/Page/StyleTag.html +448 -0
  80. data/docs/Puppeteer/Page/TargetCrashedError.html +124 -0
  81. data/docs/Puppeteer/RemoteObject.html +1087 -0
  82. data/docs/Puppeteer/Target.html +1336 -0
  83. data/docs/Puppeteer/Target/InitializeFailure.html +124 -0
  84. data/docs/Puppeteer/Target/TargetInfo.html +729 -0
  85. data/docs/Puppeteer/TimeoutError.html +135 -0
  86. data/docs/Puppeteer/TimeoutSettings.html +496 -0
  87. data/docs/Puppeteer/TouchScreen.html +464 -0
  88. data/docs/Puppeteer/Viewport.html +837 -0
  89. data/docs/Puppeteer/WaitTask.html +637 -0
  90. data/docs/Puppeteer/WaitTask/TerminatedError.html +124 -0
  91. data/docs/Puppeteer/WaitTask/TimeoutError.html +206 -0
  92. data/docs/Puppeteer/WebSocket.html +673 -0
  93. data/docs/Puppeteer/WebSocket/DriverImpl.html +412 -0
  94. data/docs/Puppeteer/WebSocketTransport.html +600 -0
  95. data/docs/Puppeteer/WebSocktTransportError.html +124 -0
  96. data/docs/_index.html +823 -0
  97. data/docs/class_list.html +51 -0
  98. data/docs/css/common.css +1 -0
  99. data/docs/css/full_list.css +58 -0
  100. data/docs/css/style.css +496 -0
  101. data/docs/file.README.html +123 -0
  102. data/docs/file_list.html +56 -0
  103. data/docs/frames.html +17 -0
  104. data/docs/index.html +123 -0
  105. data/docs/js/app.js +314 -0
  106. data/docs/js/full_list.js +216 -0
  107. data/docs/js/jquery.js +4 -0
  108. data/docs/method_list.html +4075 -0
  109. data/docs/top-level-namespace.html +126 -0
  110. data/lib/puppeteer.rb +200 -0
  111. data/lib/puppeteer/async_await_behavior.rb +38 -0
  112. data/lib/puppeteer/browser.rb +259 -0
  113. data/lib/puppeteer/browser_context.rb +90 -0
  114. data/lib/puppeteer/browser_fetcher.rb +6 -0
  115. data/lib/puppeteer/browser_runner.rb +161 -0
  116. data/lib/puppeteer/cdp_session.rb +100 -0
  117. data/lib/puppeteer/concurrent_ruby_utils.rb +37 -0
  118. data/lib/puppeteer/connection.rb +254 -0
  119. data/lib/puppeteer/console_message.rb +24 -0
  120. data/lib/puppeteer/debug_print.rb +20 -0
  121. data/lib/puppeteer/device.rb +12 -0
  122. data/lib/puppeteer/devices.rb +885 -0
  123. data/lib/puppeteer/dom_world.rb +484 -0
  124. data/lib/puppeteer/element_handle.rb +433 -0
  125. data/lib/puppeteer/element_handle/bounding_box.rb +12 -0
  126. data/lib/puppeteer/element_handle/box_model.rb +19 -0
  127. data/lib/puppeteer/element_handle/point.rb +26 -0
  128. data/lib/puppeteer/emulation_manager.rb +46 -0
  129. data/lib/puppeteer/errors.rb +2 -0
  130. data/lib/puppeteer/event_callbackable.rb +88 -0
  131. data/lib/puppeteer/execution_context.rb +254 -0
  132. data/lib/puppeteer/file_chooser.rb +29 -0
  133. data/lib/puppeteer/frame.rb +286 -0
  134. data/lib/puppeteer/frame_manager.rb +378 -0
  135. data/lib/puppeteer/if_present.rb +18 -0
  136. data/lib/puppeteer/js_handle.rb +142 -0
  137. data/lib/puppeteer/keyboard.rb +183 -0
  138. data/lib/puppeteer/keyboard/key_description.rb +19 -0
  139. data/lib/puppeteer/keyboard/us_keyboard_layout.rb +283 -0
  140. data/lib/puppeteer/launcher.rb +25 -0
  141. data/lib/puppeteer/launcher/base.rb +48 -0
  142. data/lib/puppeteer/launcher/browser_options.rb +41 -0
  143. data/lib/puppeteer/launcher/chrome.rb +211 -0
  144. data/lib/puppeteer/launcher/chrome_arg_options.rb +49 -0
  145. data/lib/puppeteer/launcher/launch_options.rb +68 -0
  146. data/lib/puppeteer/lifecycle_watcher.rb +171 -0
  147. data/lib/puppeteer/mouse.rb +123 -0
  148. data/lib/puppeteer/network_manager.rb +122 -0
  149. data/lib/puppeteer/page.rb +1065 -0
  150. data/lib/puppeteer/page/screenshot_options.rb +78 -0
  151. data/lib/puppeteer/remote_object.rb +143 -0
  152. data/lib/puppeteer/target.rb +150 -0
  153. data/lib/puppeteer/timeout_settings.rb +15 -0
  154. data/lib/puppeteer/touch_screen.rb +43 -0
  155. data/lib/puppeteer/version.rb +3 -0
  156. data/lib/puppeteer/viewport.rb +54 -0
  157. data/lib/puppeteer/wait_task.rb +188 -0
  158. data/lib/puppeteer/web_socket.rb +122 -0
  159. data/lib/puppeteer/web_socket_transport.rb +49 -0
  160. data/puppeteer-ruby.gemspec +32 -0
  161. metadata +355 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b43e26ef1313e3be7dddacb20ef524d8312f2b4149af75a48c68038d84dadadf
4
+ data.tar.gz: 0fb91daee496531b0be5026bbe562bcc532ad312a75874b98f3332f3a8235d19
5
+ SHA512:
6
+ metadata.gz: 243c3f594ea951b40abbe861f46a3a0b0feafb5eedb37b173eea480808f345d9e1f6c67fceb1a1aca7f967a25676c59078bf09d222f64053344891fd08f8ecb0
7
+ data.tar.gz: 96d8a363bc14ab00099b3f4e514d53d29c32fb1c4105966cb8059f20259773ab65ff2e600a48657442ea819f7f8bb3b379e8df3903550d010d753a156451194d
@@ -0,0 +1,71 @@
1
+ version: 2.1
2
+ orbs:
3
+ ruby: circleci/ruby@0.1.2
4
+
5
+ jobs:
6
+ rspec:
7
+ docker:
8
+ - image: circleci/ruby:2.6.3-stretch-node-browsers
9
+ executor: ruby/default
10
+ steps:
11
+ - checkout
12
+ - ruby/bundle-install
13
+ - run:
14
+ name: rspec
15
+ command: |
16
+ bundle exec rspec --profile 10 \
17
+ --format RspecJunitFormatter \
18
+ --out test_results/rspec.xml \
19
+ --format progress
20
+
21
+ rubocop:
22
+ docker:
23
+ - image: circleci/ruby:2.6.3-stretch-node
24
+ executor: ruby/default
25
+ steps:
26
+ - checkout
27
+ - ruby/bundle-install
28
+ - run:
29
+ name: rubocop
30
+ command: bundle exec rubocop
31
+
32
+ deploy:
33
+ docker:
34
+ - image: circleci/ruby:2.6.3-stretch-node
35
+ executor: ruby/default
36
+ steps:
37
+ - checkout
38
+ - run:
39
+ name: Which bundler?
40
+ command: bundle -v
41
+ - ruby/bundle-install
42
+ - run:
43
+ name: rake build
44
+ command: rake build
45
+ - run:
46
+ name: setup API key
47
+ command: |
48
+ mkdir -p ~/.gem/
49
+ echo "---" > ~/.gem/credentials
50
+ echo ":rubygems_api_key: $RUBYGEMS_API_KEY" >> ~/.gem/credentials
51
+ chmod 600 ~/.gem/credentials
52
+ - run:
53
+ name: Check Puppeteer::version
54
+ command: bundle exec ruby -e 'raise "invalid Puppeteer::VERSION" unless Puppeteer::VERSION == ENV["CIRCLE_TAG"]'
55
+ - run:
56
+ name: gem push
57
+ command: gem push pkg/puppeteer-ruby-$CIRCLE_TAG.gem
58
+
59
+ workflows:
60
+ ci:
61
+ jobs:
62
+ - rspec
63
+ - rubocop
64
+ rubygems-deploy:
65
+ jobs:
66
+ - deploy:
67
+ filters:
68
+ tags:
69
+ only: /^[0-9]\.[0-9]+\.[0-9].*/
70
+ branches:
71
+ ignore: /.*/
@@ -0,0 +1,16 @@
1
+ # Number of days of inactivity before an issue becomes stale
2
+ daysUntilStale: 14
3
+ # Number of days of inactivity before a stale issue is closed
4
+ daysUntilClose: 7
5
+ # Issues with these labels will never be considered stale
6
+ exemptLabels:
7
+ - security
8
+ # Label to use when marking an issue as stale
9
+ staleLabel: inactive
10
+ # Comment to post when marking an issue as stale. Set to `false` to disable
11
+ markComment: >
12
+ This issue has been automatically marked as stale because it has not had
13
+ recent activity. It will be closed if no further activity occurs. Thank you
14
+ for your contributions.
15
+ # Comment to post when closing a stale issue. Set to `false` to disable
16
+ closeComment: false
@@ -0,0 +1,19 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ /.vscode
11
+ /Gemfile.lock
12
+ /vendor/bundle
13
+
14
+ # rspec failure tracking
15
+ .rspec_status
16
+
17
+ # RubyMine
18
+ /.idea/
19
+ /.rakeTasks
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,302 @@
1
+ require:
2
+ - rubocop-rspec
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 2.7
6
+ # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
7
+ # to ignore them, so only the ones explicitly set in this file are enabled.
8
+ DisabledByDefault: true
9
+
10
+ # Prefer &&/|| over and/or.
11
+ Style/AndOr:
12
+ Enabled: true
13
+
14
+ # Align `when` with `case`.
15
+ Layout/CaseIndentation:
16
+ Enabled: true
17
+
18
+ Layout/ClosingHeredocIndentation:
19
+ Enabled: true
20
+
21
+ # Align comments with method definitions.
22
+ Layout/CommentIndentation:
23
+ Enabled: true
24
+
25
+ Layout/ElseAlignment:
26
+ Enabled: true
27
+
28
+ # Align `end` with the matching keyword or starting expression except for
29
+ # assignments, where it should be aligned with the LHS.
30
+ Layout/EndAlignment:
31
+ Enabled: true
32
+ EnforcedStyleAlignWith: variable
33
+ AutoCorrect: true
34
+
35
+ Layout/EmptyLineAfterMagicComment:
36
+ Enabled: true
37
+
38
+ Layout/EmptyLinesAroundAccessModifier:
39
+ Enabled: true
40
+ EnforcedStyle: only_before
41
+
42
+ Layout/EmptyLinesAroundBlockBody:
43
+ Enabled: true
44
+
45
+ # In a regular class definition, no empty lines around the body.
46
+ Layout/EmptyLinesAroundClassBody:
47
+ Enabled: true
48
+
49
+ # In a regular method definition, no empty lines around the body.
50
+ Layout/EmptyLinesAroundMethodBody:
51
+ Enabled: true
52
+
53
+ # In a regular module definition, no empty lines around the body.
54
+ Layout/EmptyLinesAroundModuleBody:
55
+ Enabled: true
56
+
57
+ # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
58
+ Style/HashSyntax:
59
+ Enabled: true
60
+
61
+ Layout/FirstArgumentIndentation:
62
+ Enabled: true
63
+
64
+ # Method definitions after `private` or `protected` isolated calls need one
65
+ # extra level of indentation.
66
+ Layout/IndentationConsistency:
67
+ Enabled: true
68
+ EnforcedStyle: indented_internal_methods
69
+
70
+ # Detect hard tabs, no hard tabs.
71
+ Layout/IndentationStyle:
72
+ Enabled: true
73
+
74
+ # Two spaces, no tabs (for indentation).
75
+ Layout/IndentationWidth:
76
+ Enabled: true
77
+
78
+ Layout/LeadingCommentSpace:
79
+ Enabled: true
80
+
81
+ Layout/SpaceAfterColon:
82
+ Enabled: true
83
+
84
+ Layout/SpaceAfterComma:
85
+ Enabled: true
86
+
87
+ Layout/SpaceAfterSemicolon:
88
+ Enabled: true
89
+
90
+ Layout/SpaceAroundEqualsInParameterDefault:
91
+ Enabled: true
92
+
93
+ Layout/SpaceAroundKeyword:
94
+ Enabled: true
95
+
96
+ Layout/SpaceBeforeComma:
97
+ Enabled: true
98
+
99
+ Layout/SpaceBeforeComment:
100
+ Enabled: true
101
+
102
+ Layout/SpaceBeforeFirstArg:
103
+ Enabled: true
104
+
105
+ Style/DefWithParentheses:
106
+ Enabled: true
107
+
108
+ # Defining a method with parameters needs parentheses.
109
+ Style/MethodDefParentheses:
110
+ Enabled: true
111
+
112
+ Style/RedundantFreeze:
113
+ Enabled: true
114
+
115
+ # Use `foo {}` not `foo{}`.
116
+ Layout/SpaceBeforeBlockBraces:
117
+ Enabled: true
118
+
119
+ # Use `foo { bar }` not `foo {bar}`.
120
+ Layout/SpaceInsideBlockBraces:
121
+ Enabled: true
122
+ EnforcedStyleForEmptyBraces: space
123
+
124
+ # Use `{ a: 1 }` not `{a:1}`.
125
+ Layout/SpaceInsideHashLiteralBraces:
126
+ Enabled: true
127
+
128
+ Layout/SpaceInsideParens:
129
+ Enabled: true
130
+
131
+ # Empty lines should not have any spaces.
132
+ Layout/TrailingEmptyLines:
133
+ Enabled: true
134
+
135
+ # No trailing whitespace.
136
+ Layout/TrailingWhitespace:
137
+ Enabled: true
138
+
139
+ # Use quotes for string literals when they are enough.
140
+ Style/RedundantPercentQ:
141
+ Enabled: true
142
+
143
+ Lint/AmbiguousOperator:
144
+ Enabled: true
145
+
146
+ Lint/AmbiguousRegexpLiteral:
147
+ Enabled: true
148
+
149
+ Lint/ErbNewArguments:
150
+ Enabled: true
151
+
152
+ # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
153
+ Lint/RequireParentheses:
154
+ Enabled: true
155
+
156
+ Lint/ShadowingOuterLocalVariable:
157
+ Enabled: true
158
+
159
+ Lint/RedundantStringCoercion:
160
+ Enabled: true
161
+
162
+ Lint/UriEscapeUnescape:
163
+ Enabled: true
164
+
165
+ Lint/UselessAssignment:
166
+ Enabled: true
167
+
168
+ Lint/DeprecatedClassMethods:
169
+ Enabled: true
170
+
171
+ Style/ParenthesesAroundCondition:
172
+ Enabled: true
173
+
174
+ Style/FrozenStringLiteralComment:
175
+ Enabled: false
176
+
177
+ Style/HashEachMethods:
178
+ Enabled: true
179
+
180
+ Style/HashTransformKeys:
181
+ Enabled: true
182
+
183
+ Style/HashTransformValues:
184
+ Enabled: true
185
+
186
+ Style/RaiseArgs:
187
+ Enabled: true
188
+ EnforcedStyle: compact
189
+
190
+ Style/RedundantBegin:
191
+ Enabled: true
192
+
193
+ Style/RedundantReturn:
194
+ Enabled: true
195
+ AllowMultipleReturnValues: true
196
+
197
+ Style/Semicolon:
198
+ Enabled: true
199
+ AllowAsExpressionSeparator: true
200
+
201
+ # Prefer Foo.method over Foo::method
202
+ Style/ColonMethodCall:
203
+ Enabled: true
204
+
205
+ Style/TrivialAccessors:
206
+ Enabled: false
207
+
208
+ Style/AccessModifierDeclarations:
209
+ Enabled: true
210
+ EnforcedStyle: inline
211
+
212
+ Style/ClassAndModuleChildren:
213
+ EnforcedStyle: compact
214
+
215
+ Style/TrailingCommaInArguments:
216
+ Enabled: true
217
+ EnforcedStyleForMultiline: comma
218
+
219
+ Style/TrailingCommaInArrayLiteral:
220
+ Enabled: true
221
+ EnforcedStyleForMultiline: comma
222
+
223
+ Style/TrailingCommaInHashLiteral:
224
+ Enabled: true
225
+ EnforcedStyleForMultiline: comma
226
+
227
+ # rubocop-rspec
228
+
229
+ RSpec/EmptyLineAfterExampleGroup:
230
+ Enabled: true
231
+
232
+ RSpec/EmptyLineAfterHook:
233
+ Enabled: true
234
+
235
+ # bad: expect("success").to eq(result)
236
+ # good: expect(result).to eq("success")
237
+ RSpec/ExpectActual:
238
+ Enabled: true
239
+
240
+ # bad: expect{ subject }.to change(Hoge, :count).by(1)
241
+ # good: expect{ subject }.to change{ Hoge.count }.by(1)
242
+ RSpec/ExpectChange:
243
+ Enabled: true
244
+ EnforcedStyle: block
245
+
246
+ RSpec/ExpectInHook:
247
+ Enabled: true
248
+
249
+ RSpec/ImplicitBlockExpectation:
250
+ Enabled: true
251
+
252
+ RSpec/InstanceVariable:
253
+ Enabled: true
254
+
255
+ # bad: it_should_behave_like
256
+ # good: it_behaves_like
257
+ RSpec/ItBehavesLike:
258
+ Enabled: true
259
+
260
+ RSpec/LeakyConstantDeclaration:
261
+ Enabled: false
262
+
263
+ RSpec/LetSetup:
264
+ Enabled: true
265
+
266
+ RSpec/MultipleSubjects:
267
+ Enabled: true
268
+
269
+ RSpec/NestedGroups:
270
+ Enabled: true
271
+ Max: 4
272
+
273
+ RSpec/NotToNot:
274
+ Enabled: true
275
+
276
+ RSpec/PredicateMatcher:
277
+ Enabled: true
278
+
279
+ RSpec/ReceiveCounts:
280
+ Enabled: true
281
+
282
+ RSpec/ReceiveNever:
283
+ Enabled: true
284
+
285
+ RSpec/ReturnFromStub:
286
+ Enabled: true
287
+ EnforcedStyle: and_return
288
+
289
+ RSpec/SharedContext:
290
+ Enabled: true
291
+
292
+ RSpec/SharedExamples:
293
+ Enabled: true
294
+
295
+ RSpec/SingleArgumentMessageChain:
296
+ Enabled: true
297
+
298
+ RSpec/VoidExpect:
299
+ Enabled: true
300
+
301
+ RSpec/Yield:
302
+ Enabled: true
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 1.17.2
@@ -0,0 +1,6 @@
1
+ FROM ruby:2.6.5
2
+
3
+ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
4
+ && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
5
+ && apt-get update && apt-get install -y google-chrome-stable --no-install-recommends \
6
+ && rm -rf /var/lib/apt/lists/*
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in puppeteer-ruby.gemspec
6
+ gemspec