lhc 12.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +37 -0
- data/.rubocop.localch.yml +325 -0
- data/.rubocop.yml +61 -0
- data/.ruby-version +1 -0
- data/Gemfile +13 -0
- data/Gemfile.activesupport4 +4 -0
- data/Gemfile.activesupport5 +4 -0
- data/Gemfile.activesupport6 +4 -0
- data/LICENSE +674 -0
- data/README.md +984 -0
- data/Rakefile +25 -0
- data/cider-ci.yml +6 -0
- data/cider-ci/bin/bundle +51 -0
- data/cider-ci/bin/ruby_install +8 -0
- data/cider-ci/bin/ruby_version +25 -0
- data/cider-ci/jobs/rspec-activesupport-4.yml +28 -0
- data/cider-ci/jobs/rspec-activesupport-5.yml +27 -0
- data/cider-ci/jobs/rspec-activesupport-6.yml +28 -0
- data/cider-ci/jobs/rubocop.yml +18 -0
- data/cider-ci/task_components/bundle.yml +22 -0
- data/cider-ci/task_components/rspec.yml +36 -0
- data/cider-ci/task_components/rubocop.yml +29 -0
- data/cider-ci/task_components/ruby.yml +15 -0
- data/friday.yml +3 -0
- data/lhc.gemspec +39 -0
- data/lib/core_ext/hash/deep_transform_values.rb +48 -0
- data/lib/lhc.rb +136 -0
- data/lib/lhc/concerns/lhc/basic_methods_concern.rb +42 -0
- data/lib/lhc/concerns/lhc/configuration_concern.rb +20 -0
- data/lib/lhc/concerns/lhc/fix_invalid_encoding_concern.rb +42 -0
- data/lib/lhc/concerns/lhc/formats_concern.rb +25 -0
- data/lib/lhc/concerns/lhc/request/user_agent_concern.rb +25 -0
- data/lib/lhc/config.rb +47 -0
- data/lib/lhc/endpoint.rb +119 -0
- data/lib/lhc/error.rb +80 -0
- data/lib/lhc/errors/client_error.rb +73 -0
- data/lib/lhc/errors/parser_error.rb +4 -0
- data/lib/lhc/errors/server_error.rb +28 -0
- data/lib/lhc/errors/timeout.rb +4 -0
- data/lib/lhc/errors/unknown_error.rb +4 -0
- data/lib/lhc/format.rb +18 -0
- data/lib/lhc/formats.rb +8 -0
- data/lib/lhc/formats/form.rb +45 -0
- data/lib/lhc/formats/json.rb +55 -0
- data/lib/lhc/formats/multipart.rb +45 -0
- data/lib/lhc/formats/plain.rb +42 -0
- data/lib/lhc/interceptor.rb +32 -0
- data/lib/lhc/interceptors.rb +26 -0
- data/lib/lhc/interceptors/auth.rb +98 -0
- data/lib/lhc/interceptors/caching.rb +127 -0
- data/lib/lhc/interceptors/default_timeout.rb +16 -0
- data/lib/lhc/interceptors/logging.rb +37 -0
- data/lib/lhc/interceptors/monitoring.rb +63 -0
- data/lib/lhc/interceptors/prometheus.rb +51 -0
- data/lib/lhc/interceptors/retry.rb +41 -0
- data/lib/lhc/interceptors/rollbar.rb +36 -0
- data/lib/lhc/interceptors/throttle.rb +81 -0
- data/lib/lhc/interceptors/zipkin.rb +110 -0
- data/lib/lhc/railtie.rb +10 -0
- data/lib/lhc/request.rb +157 -0
- data/lib/lhc/response.rb +60 -0
- data/lib/lhc/response/data.rb +28 -0
- data/lib/lhc/response/data/base.rb +22 -0
- data/lib/lhc/response/data/collection.rb +16 -0
- data/lib/lhc/response/data/item.rb +29 -0
- data/lib/lhc/rspec.rb +12 -0
- data/lib/lhc/test/cache_helper.rb +3 -0
- data/lib/lhc/version.rb +5 -0
- data/script/ci/build.sh +19 -0
- data/spec/basic_methods/delete_spec.rb +34 -0
- data/spec/basic_methods/get_spec.rb +49 -0
- data/spec/basic_methods/post_spec.rb +42 -0
- data/spec/basic_methods/put_spec.rb +48 -0
- data/spec/basic_methods/request_spec.rb +19 -0
- data/spec/basic_methods/request_without_rails_spec.rb +29 -0
- data/spec/config/endpoints_spec.rb +63 -0
- data/spec/config/placeholders_spec.rb +32 -0
- data/spec/core_ext/hash/deep_transform_values_spec.rb +24 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +8 -0
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +7 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +4 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +5 -0
- data/spec/dummy/bin/rails +6 -0
- data/spec/dummy/bin/rake +6 -0
- data/spec/dummy/config.ru +6 -0
- data/spec/dummy/config/application.rb +16 -0
- data/spec/dummy/config/boot.rb +7 -0
- data/spec/dummy/config/environment.rb +7 -0
- data/spec/dummy/config/environments/development.rb +36 -0
- data/spec/dummy/config/environments/production.rb +77 -0
- data/spec/dummy/config/environments/test.rb +41 -0
- data/spec/dummy/config/initializers/assets.rb +10 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +9 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
- data/spec/dummy/config/initializers/inflections.rb +18 -0
- data/spec/dummy/config/initializers/mime_types.rb +6 -0
- data/spec/dummy/config/initializers/session_store.rb +5 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +11 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/endpoint/compile_spec.rb +35 -0
- data/spec/endpoint/match_spec.rb +41 -0
- data/spec/endpoint/placeholders_spec.rb +30 -0
- data/spec/endpoint/remove_interpolated_params_spec.rb +17 -0
- data/spec/endpoint/values_as_params_spec.rb +31 -0
- data/spec/error/dup_spec.rb +12 -0
- data/spec/error/find_spec.rb +57 -0
- data/spec/error/response_spec.rb +17 -0
- data/spec/error/timeout_spec.rb +14 -0
- data/spec/error/to_s_spec.rb +80 -0
- data/spec/formats/form_spec.rb +27 -0
- data/spec/formats/json_spec.rb +66 -0
- data/spec/formats/multipart_spec.rb +26 -0
- data/spec/formats/plain_spec.rb +29 -0
- data/spec/interceptors/after_request_spec.rb +20 -0
- data/spec/interceptors/after_response_spec.rb +39 -0
- data/spec/interceptors/auth/basic_auth_spec.rb +17 -0
- data/spec/interceptors/auth/bearer_spec.rb +19 -0
- data/spec/interceptors/auth/reauthentication_configuration_spec.rb +61 -0
- data/spec/interceptors/auth/reauthentication_spec.rb +44 -0
- data/spec/interceptors/before_request_spec.rb +21 -0
- data/spec/interceptors/before_response_spec.rb +20 -0
- data/spec/interceptors/caching/hydra_spec.rb +26 -0
- data/spec/interceptors/caching/main_spec.rb +73 -0
- data/spec/interceptors/caching/methods_spec.rb +42 -0
- data/spec/interceptors/caching/options_spec.rb +89 -0
- data/spec/interceptors/caching/parameters_spec.rb +24 -0
- data/spec/interceptors/caching/response_status_spec.rb +29 -0
- data/spec/interceptors/caching/to_cache_spec.rb +16 -0
- data/spec/interceptors/default_interceptors_spec.rb +15 -0
- data/spec/interceptors/default_timeout/main_spec.rb +34 -0
- data/spec/interceptors/define_spec.rb +29 -0
- data/spec/interceptors/dup_spec.rb +19 -0
- data/spec/interceptors/logging/main_spec.rb +37 -0
- data/spec/interceptors/monitoring/main_spec.rb +97 -0
- data/spec/interceptors/prometheus_spec.rb +54 -0
- data/spec/interceptors/response_competition_spec.rb +41 -0
- data/spec/interceptors/retry/main_spec.rb +73 -0
- data/spec/interceptors/return_response_spec.rb +38 -0
- data/spec/interceptors/rollbar/invalid_encoding_spec.rb +43 -0
- data/spec/interceptors/rollbar/main_spec.rb +57 -0
- data/spec/interceptors/throttle/main_spec.rb +106 -0
- data/spec/interceptors/throttle/reset_track_spec.rb +53 -0
- data/spec/interceptors/zipkin/distributed_tracing_spec.rb +135 -0
- data/spec/rails_helper.rb +6 -0
- data/spec/request/body_spec.rb +39 -0
- data/spec/request/encoding_spec.rb +37 -0
- data/spec/request/error_handling_spec.rb +88 -0
- data/spec/request/headers_spec.rb +12 -0
- data/spec/request/ignore_errors_spec.rb +73 -0
- data/spec/request/option_dup_spec.rb +13 -0
- data/spec/request/parallel_requests_spec.rb +59 -0
- data/spec/request/params_encoding_spec.rb +26 -0
- data/spec/request/request_without_rails_spec.rb +15 -0
- data/spec/request/url_patterns_spec.rb +54 -0
- data/spec/request/user_agent_spec.rb +26 -0
- data/spec/request/user_agent_without_rails_spec.rb +27 -0
- data/spec/response/body_spec.rb +16 -0
- data/spec/response/code_spec.rb +16 -0
- data/spec/response/data_accessor_spec.rb +29 -0
- data/spec/response/data_spec.rb +61 -0
- data/spec/response/effective_url_spec.rb +16 -0
- data/spec/response/headers_spec.rb +18 -0
- data/spec/response/options_spec.rb +18 -0
- data/spec/response/success_spec.rb +13 -0
- data/spec/response/time_spec.rb +21 -0
- data/spec/spec_helper.rb +8 -0
- data/spec/support/fixtures/json/feedback.json +11 -0
- data/spec/support/fixtures/json/feedbacks.json +164 -0
- data/spec/support/fixtures/json/localina_content_ad.json +23 -0
- data/spec/support/load_json.rb +5 -0
- data/spec/support/reset_config.rb +7 -0
- data/spec/support/zipkin_mock.rb +113 -0
- data/spec/timeouts/no_signal_spec.rb +13 -0
- data/spec/timeouts/timings_spec.rb +55 -0
- metadata +534 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7cde56134f9f363649066cc6a6764534c56887fbd9ea2234beaaac0babe6a56c
|
4
|
+
data.tar.gz: 4daf357293a3539de5764670def7e682d6d6dfb98cc209980fcd968a187bad31
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fc0deecc6746fb5c192fdc4648af66992cf21fe1fc340665cb7ec03e98a6f9aaabfbb0f5d59769fa8312c8448cf64c4236f8bcb807915b8055270af709163b75
|
7
|
+
data.tar.gz: fbbda42ca1d2d7976b41c982a2b5135865af46340f4e5f6539f21c79115144bd9c8ff0039b5ee910e581fbe6d075d6776f564476cccded2e41fd330ab48e952f
|
data/.gitignore
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
*.rbc
|
2
|
+
capybara-*.html
|
3
|
+
.rspec
|
4
|
+
.DS_Store
|
5
|
+
/log
|
6
|
+
/tmp
|
7
|
+
/db/*.sqlite3
|
8
|
+
/public/system
|
9
|
+
/coverage/
|
10
|
+
/spec/tmp
|
11
|
+
**.orig
|
12
|
+
rerun.txt
|
13
|
+
pickle-email-*.html
|
14
|
+
*.log
|
15
|
+
pkg/
|
16
|
+
|
17
|
+
# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
|
18
|
+
config/initializers/secret_token.rb
|
19
|
+
config/secrets.yml
|
20
|
+
|
21
|
+
## Environment normalisation:
|
22
|
+
/.bundle
|
23
|
+
/vendor/bundle
|
24
|
+
|
25
|
+
# these should all be checked in to normalise the environment:
|
26
|
+
Gemfile.lock
|
27
|
+
.ruby-gemset
|
28
|
+
|
29
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
30
|
+
.rvmrc
|
31
|
+
|
32
|
+
# if using bower-rails ignore default bower_components path bower.json files
|
33
|
+
/vendor/assets/bower_components
|
34
|
+
*.bowerrc
|
35
|
+
bower.json
|
36
|
+
|
37
|
+
spec/dummy/tmp/cache
|
@@ -0,0 +1,325 @@
|
|
1
|
+
# This is master rubocop configuration.
|
2
|
+
# DO NOT EDIT THIS FILE - it WILL be overwriten on every config update
|
3
|
+
AllCops:
|
4
|
+
TargetRubyVersion: 2.3
|
5
|
+
DisplayCopNames: true
|
6
|
+
DisplayStyleGuide: true
|
7
|
+
Exclude:
|
8
|
+
- 'db/**/*'
|
9
|
+
- 'script/**/*'
|
10
|
+
- 'vendor/bundle/**/*'
|
11
|
+
- 'vendor/assets/**/*'
|
12
|
+
- 'bin/**/*'
|
13
|
+
- 'config/unicorn.rb'
|
14
|
+
- 'config/compass.rb'
|
15
|
+
- 'Rakefile'
|
16
|
+
- 'app/controllers/error_trap_controller.rb'
|
17
|
+
- 'app/controllers/hsts_controller.rb'
|
18
|
+
- 'spec/lib/util_spec.rb'
|
19
|
+
|
20
|
+
Rails:
|
21
|
+
Enabled: true
|
22
|
+
|
23
|
+
require:
|
24
|
+
- rubocop-rspec
|
25
|
+
|
26
|
+
Bundler/OrderedGems:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
Lint/HandleExceptions:
|
30
|
+
Exclude:
|
31
|
+
- spec/**/*
|
32
|
+
|
33
|
+
Lint/UriEscapeUnescape:
|
34
|
+
Enabled: false
|
35
|
+
|
36
|
+
Style/RescueStandardError:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
Metrics/LineLength:
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
Metrics/AbcSize:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
Metrics/MethodLength:
|
46
|
+
Enabled: false
|
47
|
+
|
48
|
+
Metrics/CyclomaticComplexity:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
Metrics/PerceivedComplexity:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
Metrics/ClassLength:
|
55
|
+
Enabled: false
|
56
|
+
|
57
|
+
Metrics/ModuleLength:
|
58
|
+
Enabled: false
|
59
|
+
|
60
|
+
Metrics/BlockLength:
|
61
|
+
Enabled: false
|
62
|
+
|
63
|
+
Metrics/ParameterLists:
|
64
|
+
Enabled: false
|
65
|
+
|
66
|
+
Metrics/BlockNesting:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
Performance/StringReplacement:
|
70
|
+
Enabled: false
|
71
|
+
|
72
|
+
Performance/TimesMap:
|
73
|
+
Enabled: false
|
74
|
+
|
75
|
+
Performance/RedundantBlockCall:
|
76
|
+
Enabled: false
|
77
|
+
|
78
|
+
Performance/RedundantMatch:
|
79
|
+
Enabled: false
|
80
|
+
|
81
|
+
Performance/RedundantMerge:
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
Performance/Casecmp:
|
85
|
+
Enabled: false
|
86
|
+
|
87
|
+
Layout/MultilineOperationIndentation:
|
88
|
+
EnforcedStyle: indented
|
89
|
+
|
90
|
+
Layout/DotPosition:
|
91
|
+
EnforcedStyle: leading
|
92
|
+
|
93
|
+
Layout/AlignParameters:
|
94
|
+
Enabled: false
|
95
|
+
|
96
|
+
Layout/EmptyLinesAroundClassBody:
|
97
|
+
Enabled: false
|
98
|
+
|
99
|
+
Layout/IndentArray:
|
100
|
+
EnforcedStyle: consistent
|
101
|
+
|
102
|
+
Layout/MultilineMethodCallIndentation:
|
103
|
+
EnforcedStyle: indented
|
104
|
+
|
105
|
+
Layout/MultilineMethodCallBraceLayout:
|
106
|
+
EnforcedStyle: symmetrical
|
107
|
+
|
108
|
+
Layout/EmptyLinesAroundBlockBody:
|
109
|
+
EnforcedStyle: no_empty_lines
|
110
|
+
|
111
|
+
Layout/IndentHeredoc:
|
112
|
+
Enabled: false
|
113
|
+
|
114
|
+
Layout/MultilineArrayBraceLayout:
|
115
|
+
EnforcedStyle: symmetrical
|
116
|
+
|
117
|
+
Layout/MultilineHashBraceLayout:
|
118
|
+
EnforcedStyle: symmetrical
|
119
|
+
|
120
|
+
Style/StringLiterals:
|
121
|
+
Enabled: false
|
122
|
+
|
123
|
+
Style/RegexpLiteral:
|
124
|
+
Exclude:
|
125
|
+
- spec/**/*
|
126
|
+
|
127
|
+
Style/NumericLiterals:
|
128
|
+
Enabled: false
|
129
|
+
|
130
|
+
Style/WordArray:
|
131
|
+
Enabled: false
|
132
|
+
|
133
|
+
Style/Next:
|
134
|
+
Enabled: false
|
135
|
+
|
136
|
+
Style/PercentLiteralDelimiters:
|
137
|
+
Enabled: false
|
138
|
+
|
139
|
+
Style/GlobalVars:
|
140
|
+
Enabled: false
|
141
|
+
|
142
|
+
Style/CommentAnnotation:
|
143
|
+
Enabled: false
|
144
|
+
|
145
|
+
Style/SymbolProc:
|
146
|
+
Enabled: false
|
147
|
+
|
148
|
+
Style/DoubleNegation:
|
149
|
+
Enabled: false
|
150
|
+
|
151
|
+
Style/FormatString:
|
152
|
+
Enabled: false
|
153
|
+
|
154
|
+
Style/AsciiComments:
|
155
|
+
Enabled: false
|
156
|
+
|
157
|
+
Style/BarePercentLiterals:
|
158
|
+
Enabled: false
|
159
|
+
|
160
|
+
Style/SingleLineBlockParams:
|
161
|
+
Enabled: false
|
162
|
+
|
163
|
+
Style/MultilineBlockChain:
|
164
|
+
Enabled: false
|
165
|
+
|
166
|
+
Style/UnneededCapitalW:
|
167
|
+
Enabled: false
|
168
|
+
|
169
|
+
Style/UnneededPercentQ:
|
170
|
+
Enabled: false
|
171
|
+
|
172
|
+
Style/BlockDelimiters:
|
173
|
+
Exclude:
|
174
|
+
- spec/**/*
|
175
|
+
|
176
|
+
Style/BracesAroundHashParameters:
|
177
|
+
EnforcedStyle: context_dependent
|
178
|
+
|
179
|
+
Style/IfUnlessModifier:
|
180
|
+
Enabled: false
|
181
|
+
|
182
|
+
Style/ClassAndModuleChildren:
|
183
|
+
Enabled: false
|
184
|
+
|
185
|
+
Style/Documentation:
|
186
|
+
Enabled: false
|
187
|
+
|
188
|
+
Style/GuardClause:
|
189
|
+
Enabled: false
|
190
|
+
|
191
|
+
Naming/AccessorMethodName:
|
192
|
+
Exclude:
|
193
|
+
- spec/support/pages/**/*
|
194
|
+
|
195
|
+
Style/NegatedIf:
|
196
|
+
Enabled: false
|
197
|
+
|
198
|
+
Style/MutableConstant:
|
199
|
+
Enabled: false
|
200
|
+
|
201
|
+
Style/ConditionalAssignment:
|
202
|
+
Enabled: false
|
203
|
+
|
204
|
+
Style/Lambda:
|
205
|
+
Enabled: false
|
206
|
+
|
207
|
+
Style/FrozenStringLiteralComment:
|
208
|
+
Enabled: false
|
209
|
+
|
210
|
+
Style/SymbolArray:
|
211
|
+
Enabled: false
|
212
|
+
|
213
|
+
Style/HashSyntax:
|
214
|
+
EnforcedStyle: ruby19
|
215
|
+
|
216
|
+
Style/FormatStringToken:
|
217
|
+
Enabled: false
|
218
|
+
|
219
|
+
Style/EmptyMethod:
|
220
|
+
EnforcedStyle: expanded
|
221
|
+
|
222
|
+
Style/TernaryParentheses:
|
223
|
+
EnforcedStyle: require_parentheses_when_complex
|
224
|
+
|
225
|
+
Naming/VariableNumber:
|
226
|
+
Enabled: false
|
227
|
+
|
228
|
+
Style/PerlBackrefs:
|
229
|
+
Enabled: false
|
230
|
+
|
231
|
+
Style/RegexpLiteral:
|
232
|
+
AllowInnerSlashes: false
|
233
|
+
|
234
|
+
Style/BlockComments:
|
235
|
+
Enabled: false
|
236
|
+
|
237
|
+
Style/RedundantParentheses:
|
238
|
+
Enabled: false
|
239
|
+
|
240
|
+
Naming/FileName:
|
241
|
+
Exclude:
|
242
|
+
- Gemfile
|
243
|
+
- Brewfile
|
244
|
+
- Guardfile
|
245
|
+
|
246
|
+
Style/NumericPredicate:
|
247
|
+
Enabled: false
|
248
|
+
|
249
|
+
RSpec/DescribeClass:
|
250
|
+
Exclude:
|
251
|
+
- spec/views/**/*
|
252
|
+
- spec/routing/**/*
|
253
|
+
- spec/requests/**/*
|
254
|
+
- spec/features/**/*
|
255
|
+
|
256
|
+
RSpec/FilePath:
|
257
|
+
Enabled: false
|
258
|
+
|
259
|
+
RSpec/NamedSubject:
|
260
|
+
Enabled: false
|
261
|
+
|
262
|
+
RSpec/MultipleExpectations:
|
263
|
+
Enabled: false
|
264
|
+
|
265
|
+
RSpec/ExampleLength:
|
266
|
+
Enabled: false
|
267
|
+
|
268
|
+
RSpec/HookArgument:
|
269
|
+
EnforcedStyle: implicit
|
270
|
+
|
271
|
+
RSpec/MessageSpies:
|
272
|
+
EnforcedStyle: receive
|
273
|
+
|
274
|
+
RSpec/NestedGroups:
|
275
|
+
Enabled: false
|
276
|
+
|
277
|
+
RSpec/VerifiedDoubles:
|
278
|
+
Enabled: false
|
279
|
+
|
280
|
+
RSpec/LeadingSubject:
|
281
|
+
Enabled: false
|
282
|
+
|
283
|
+
RSpec/ExpectInHook:
|
284
|
+
Enabled: false
|
285
|
+
|
286
|
+
RSpec/ReturnFromStub:
|
287
|
+
Enabled: false
|
288
|
+
|
289
|
+
RSpec/SubjectStub:
|
290
|
+
Enabled: false
|
291
|
+
|
292
|
+
RSpec/EmptyLineAfterSubject:
|
293
|
+
Enabled: false
|
294
|
+
|
295
|
+
RSpec/LetSetup:
|
296
|
+
Enabled: false
|
297
|
+
|
298
|
+
RSpec/ImplicitExpect:
|
299
|
+
EnforcedStyle: is_expected
|
300
|
+
|
301
|
+
RSpec/ScatteredLet:
|
302
|
+
Enabled: false
|
303
|
+
|
304
|
+
RSpec/ContextWording:
|
305
|
+
Enabled: false
|
306
|
+
|
307
|
+
Rails/Output:
|
308
|
+
Exclude:
|
309
|
+
- 'config/application.rb'
|
310
|
+
- 'config/initializers/asset_manifest_warning.rb'
|
311
|
+
|
312
|
+
Rails/DynamicFindBy:
|
313
|
+
Enabled: false
|
314
|
+
|
315
|
+
Rails/Presence:
|
316
|
+
Enabled: false
|
317
|
+
|
318
|
+
Capybara/CurrentPathExpectation:
|
319
|
+
Enabled: false
|
320
|
+
|
321
|
+
Naming/UncommunicativeMethodParamName:
|
322
|
+
Enabled: false
|
323
|
+
|
324
|
+
Style/ExpandPathArguments:
|
325
|
+
Enabled: false
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# This is project specific rubocop configuration file.
|
2
|
+
# You can tweak project settings here
|
3
|
+
inherit_from:
|
4
|
+
- ./.rubocop.localch.yml
|
5
|
+
|
6
|
+
AllCops:
|
7
|
+
TargetRubyVersion: 2.3
|
8
|
+
|
9
|
+
Lint/IneffectiveAccessModifier:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
Rails:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
RSpec/AnyInstance:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
RSpec/DescribedClass:
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
RSpec/MultipleExpectations:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
RSpec/HookArgument:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
RSpec/ExampleLength:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Style/Lambda:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
RSpec/NestedGroups:
|
34
|
+
Enabled: false
|
35
|
+
|
36
|
+
RSpec/VerifiedDoubles:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
Style/RedundantReturn:
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
RSpec/InstanceVariable:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
Style/FrozenStringLiteralComment:
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
Naming/MemoizedInstanceVariableName:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
RSpec/MessageSpies:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
RSpec/BeforeAfterAll:
|
55
|
+
Enabled: false
|
56
|
+
|
57
|
+
Style/EmptyMethod:
|
58
|
+
EnforcedStyle: compact
|
59
|
+
|
60
|
+
RSpec/RepeatedExample:
|
61
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.6.5
|
data/Gemfile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
# Declare your gem's dependencies in lhc.gemspec.
|
6
|
+
# Bundler will treat runtime dependencies like base dependencies, and
|
7
|
+
# development dependencies will be added by default to the :development group.
|
8
|
+
gemspec
|
9
|
+
|
10
|
+
# Declare any dependencies that are still in development here instead of in
|
11
|
+
# your gemspec. These might include edge Rails or gems from your path or
|
12
|
+
# Git. Remember to move these dependencies to your gemspec before releasing
|
13
|
+
# your gem to rubygems.org.
|