puppeteer-ruby 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +71 -0
- data/.github/stale.yml +16 -0
- data/.gitignore +19 -0
- data/.rspec +3 -0
- data/.rubocop.yml +302 -0
- data/.travis.yml +7 -0
- data/Dockerfile +6 -0
- data/Gemfile +6 -0
- data/README.md +54 -0
- data/Rakefile +1 -0
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/docker-compose.yml +15 -0
- data/docs/Puppeteer.html +2020 -0
- data/docs/Puppeteer/AsyncAwaitBehavior.html +105 -0
- data/docs/Puppeteer/Browser.html +2148 -0
- data/docs/Puppeteer/BrowserContext.html +809 -0
- data/docs/Puppeteer/BrowserFetcher.html +214 -0
- data/docs/Puppeteer/BrowserRunner.html +914 -0
- data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +477 -0
- data/docs/Puppeteer/CDPSession.html +813 -0
- data/docs/Puppeteer/CDPSession/Error.html +124 -0
- data/docs/Puppeteer/ConcurrentRubyUtils.html +430 -0
- data/docs/Puppeteer/Connection.html +960 -0
- data/docs/Puppeteer/Connection/MessageCallback.html +434 -0
- data/docs/Puppeteer/Connection/ProtocolError.html +216 -0
- data/docs/Puppeteer/Connection/RequestDebugPrinter.html +217 -0
- data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +244 -0
- data/docs/Puppeteer/ConsoleMessage.html +565 -0
- data/docs/Puppeteer/ConsoleMessage/Location.html +433 -0
- data/docs/Puppeteer/DOMWorld.html +2219 -0
- data/docs/Puppeteer/DOMWorld/DetachedError.html +124 -0
- data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +124 -0
- data/docs/Puppeteer/DebugPrint.html +233 -0
- data/docs/Puppeteer/Device.html +470 -0
- data/docs/Puppeteer/Devices.html +139 -0
- data/docs/Puppeteer/ElementHandle.html +2542 -0
- data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +206 -0
- data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +206 -0
- data/docs/Puppeteer/ElementHandle/Point.html +492 -0
- data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +124 -0
- data/docs/Puppeteer/EmulationManager.html +454 -0
- data/docs/Puppeteer/EventCallbackable.html +433 -0
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +435 -0
- data/docs/Puppeteer/ExecutionContext.html +998 -0
- data/docs/Puppeteer/ExecutionContext/EvaluationError.html +124 -0
- data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +357 -0
- data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +389 -0
- data/docs/Puppeteer/FileChooser.html +455 -0
- data/docs/Puppeteer/Frame.html +3677 -0
- data/docs/Puppeteer/FrameManager.html +2410 -0
- data/docs/Puppeteer/FrameManager/NavigationError.html +124 -0
- data/docs/Puppeteer/IfPresent.html +222 -0
- data/docs/Puppeteer/JSHandle.html +1352 -0
- data/docs/Puppeteer/Keyboard.html +1557 -0
- data/docs/Puppeteer/Keyboard/KeyDefinition.html +831 -0
- data/docs/Puppeteer/Keyboard/KeyDescription.html +603 -0
- data/docs/Puppeteer/Launcher.html +237 -0
- data/docs/Puppeteer/Launcher/Base.html +385 -0
- data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +124 -0
- data/docs/Puppeteer/Launcher/BrowserOptions.html +441 -0
- data/docs/Puppeteer/Launcher/Chrome.html +669 -0
- data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +382 -0
- data/docs/Puppeteer/Launcher/ChromeArgOptions.html +531 -0
- data/docs/Puppeteer/Launcher/LaunchOptions.html +893 -0
- data/docs/Puppeteer/LifecycleWatcher.html +834 -0
- data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +363 -0
- data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +206 -0
- data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +124 -0
- data/docs/Puppeteer/Mouse.html +1105 -0
- data/docs/Puppeteer/Mouse/Button.html +136 -0
- data/docs/Puppeteer/NetworkManager.html +901 -0
- data/docs/Puppeteer/NetworkManager/Credentials.html +385 -0
- data/docs/Puppeteer/Page.html +5970 -0
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
- data/docs/Puppeteer/Page/ScreenshotOptions.html +845 -0
- data/docs/Puppeteer/Page/ScriptTag.html +555 -0
- data/docs/Puppeteer/Page/StyleTag.html +448 -0
- data/docs/Puppeteer/Page/TargetCrashedError.html +124 -0
- data/docs/Puppeteer/RemoteObject.html +1087 -0
- data/docs/Puppeteer/Target.html +1336 -0
- data/docs/Puppeteer/Target/InitializeFailure.html +124 -0
- data/docs/Puppeteer/Target/TargetInfo.html +729 -0
- data/docs/Puppeteer/TimeoutError.html +135 -0
- data/docs/Puppeteer/TimeoutSettings.html +496 -0
- data/docs/Puppeteer/TouchScreen.html +464 -0
- data/docs/Puppeteer/Viewport.html +837 -0
- data/docs/Puppeteer/WaitTask.html +637 -0
- data/docs/Puppeteer/WaitTask/TerminatedError.html +124 -0
- data/docs/Puppeteer/WaitTask/TimeoutError.html +206 -0
- data/docs/Puppeteer/WebSocket.html +673 -0
- data/docs/Puppeteer/WebSocket/DriverImpl.html +412 -0
- data/docs/Puppeteer/WebSocketTransport.html +600 -0
- data/docs/Puppeteer/WebSocktTransportError.html +124 -0
- data/docs/_index.html +823 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +496 -0
- data/docs/file.README.html +123 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +123 -0
- data/docs/js/app.js +314 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +4075 -0
- data/docs/top-level-namespace.html +126 -0
- data/lib/puppeteer.rb +200 -0
- data/lib/puppeteer/async_await_behavior.rb +38 -0
- data/lib/puppeteer/browser.rb +259 -0
- data/lib/puppeteer/browser_context.rb +90 -0
- data/lib/puppeteer/browser_fetcher.rb +6 -0
- data/lib/puppeteer/browser_runner.rb +161 -0
- data/lib/puppeteer/cdp_session.rb +100 -0
- data/lib/puppeteer/concurrent_ruby_utils.rb +37 -0
- data/lib/puppeteer/connection.rb +254 -0
- data/lib/puppeteer/console_message.rb +24 -0
- data/lib/puppeteer/debug_print.rb +20 -0
- data/lib/puppeteer/device.rb +12 -0
- data/lib/puppeteer/devices.rb +885 -0
- data/lib/puppeteer/dom_world.rb +484 -0
- data/lib/puppeteer/element_handle.rb +433 -0
- data/lib/puppeteer/element_handle/bounding_box.rb +12 -0
- data/lib/puppeteer/element_handle/box_model.rb +19 -0
- data/lib/puppeteer/element_handle/point.rb +26 -0
- data/lib/puppeteer/emulation_manager.rb +46 -0
- data/lib/puppeteer/errors.rb +2 -0
- data/lib/puppeteer/event_callbackable.rb +88 -0
- data/lib/puppeteer/execution_context.rb +254 -0
- data/lib/puppeteer/file_chooser.rb +29 -0
- data/lib/puppeteer/frame.rb +286 -0
- data/lib/puppeteer/frame_manager.rb +378 -0
- data/lib/puppeteer/if_present.rb +18 -0
- data/lib/puppeteer/js_handle.rb +142 -0
- data/lib/puppeteer/keyboard.rb +183 -0
- data/lib/puppeteer/keyboard/key_description.rb +19 -0
- data/lib/puppeteer/keyboard/us_keyboard_layout.rb +283 -0
- data/lib/puppeteer/launcher.rb +25 -0
- data/lib/puppeteer/launcher/base.rb +48 -0
- data/lib/puppeteer/launcher/browser_options.rb +41 -0
- data/lib/puppeteer/launcher/chrome.rb +211 -0
- data/lib/puppeteer/launcher/chrome_arg_options.rb +49 -0
- data/lib/puppeteer/launcher/launch_options.rb +68 -0
- data/lib/puppeteer/lifecycle_watcher.rb +171 -0
- data/lib/puppeteer/mouse.rb +123 -0
- data/lib/puppeteer/network_manager.rb +122 -0
- data/lib/puppeteer/page.rb +1065 -0
- data/lib/puppeteer/page/screenshot_options.rb +78 -0
- data/lib/puppeteer/remote_object.rb +143 -0
- data/lib/puppeteer/target.rb +150 -0
- data/lib/puppeteer/timeout_settings.rb +15 -0
- data/lib/puppeteer/touch_screen.rb +43 -0
- data/lib/puppeteer/version.rb +3 -0
- data/lib/puppeteer/viewport.rb +54 -0
- data/lib/puppeteer/wait_task.rb +188 -0
- data/lib/puppeteer/web_socket.rb +122 -0
- data/lib/puppeteer/web_socket_transport.rb +49 -0
- data/puppeteer-ruby.gemspec +32 -0
- metadata +355 -0
checksums.yaml
ADDED
@@ -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: /.*/
|
data/.github/stale.yml
ADDED
@@ -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
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -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
|
data/.travis.yml
ADDED
data/Dockerfile
ADDED
@@ -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/*
|