lhs 24.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.bundler-version +1 -0
- data/.gitignore +39 -0
- data/.rubocop.localch.yml +325 -0
- data/.rubocop.yml +52 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/Gemfile.activesupport4 +5 -0
- data/Gemfile.activesupport5 +4 -0
- data/LICENSE +674 -0
- data/README.md +2836 -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 +27 -0
- data/cider-ci/jobs/rspec-activesupport-5.yml +26 -0
- data/cider-ci/jobs/rspec-activesupport-latest.yml +24 -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 +37 -0
- data/cider-ci/task_components/rubocop.yml +29 -0
- data/cider-ci/task_components/ruby.yml +15 -0
- data/friday.yml +2 -0
- data/lhs.gemspec +43 -0
- data/lib/lhs.rb +100 -0
- data/lib/lhs/collection.rb +84 -0
- data/lib/lhs/complex.rb +158 -0
- data/lib/lhs/concerns/autoload_records.rb +55 -0
- data/lib/lhs/concerns/collection/handle_nested.rb +43 -0
- data/lib/lhs/concerns/collection/internal_collection.rb +49 -0
- data/lib/lhs/concerns/configuration.rb +20 -0
- data/lib/lhs/concerns/data/becomes.rb +18 -0
- data/lib/lhs/concerns/data/equality.rb +14 -0
- data/lib/lhs/concerns/data/json.rb +14 -0
- data/lib/lhs/concerns/data/to_hash.rb +14 -0
- data/lib/lhs/concerns/inspect.rb +70 -0
- data/lib/lhs/concerns/is_href.rb +15 -0
- data/lib/lhs/concerns/item/destroy.rb +38 -0
- data/lib/lhs/concerns/item/endpoint_lookup.rb +27 -0
- data/lib/lhs/concerns/item/save.rb +55 -0
- data/lib/lhs/concerns/item/update.rb +50 -0
- data/lib/lhs/concerns/item/validation.rb +61 -0
- data/lib/lhs/concerns/o_auth.rb +25 -0
- data/lib/lhs/concerns/option_blocks.rb +26 -0
- data/lib/lhs/concerns/proxy/accessors.rb +132 -0
- data/lib/lhs/concerns/proxy/create.rb +45 -0
- data/lib/lhs/concerns/proxy/link.rb +25 -0
- data/lib/lhs/concerns/proxy/problems.rb +27 -0
- data/lib/lhs/concerns/record/attribute_assignment.rb +25 -0
- data/lib/lhs/concerns/record/batch.rb +40 -0
- data/lib/lhs/concerns/record/chainable.rb +465 -0
- data/lib/lhs/concerns/record/configuration.rb +103 -0
- data/lib/lhs/concerns/record/create.rb +24 -0
- data/lib/lhs/concerns/record/custom_setters.rb +22 -0
- data/lib/lhs/concerns/record/destroy.rb +18 -0
- data/lib/lhs/concerns/record/endpoints.rb +108 -0
- data/lib/lhs/concerns/record/equality.rb +14 -0
- data/lib/lhs/concerns/record/find.rb +86 -0
- data/lib/lhs/concerns/record/find_by.rb +38 -0
- data/lib/lhs/concerns/record/first.rb +20 -0
- data/lib/lhs/concerns/record/href_for.rb +19 -0
- data/lib/lhs/concerns/record/last.rb +27 -0
- data/lib/lhs/concerns/record/mapping.rb +25 -0
- data/lib/lhs/concerns/record/merge.rb +26 -0
- data/lib/lhs/concerns/record/model.rb +23 -0
- data/lib/lhs/concerns/record/pagination.rb +47 -0
- data/lib/lhs/concerns/record/provider.rb +23 -0
- data/lib/lhs/concerns/record/relations.rb +26 -0
- data/lib/lhs/concerns/record/request.rb +620 -0
- data/lib/lhs/concerns/record/scope.rb +25 -0
- data/lib/lhs/concerns/record/tracing.rb +24 -0
- data/lib/lhs/concerns/record/update.rb +17 -0
- data/lib/lhs/config.rb +24 -0
- data/lib/lhs/data.rb +165 -0
- data/lib/lhs/endpoint.rb +12 -0
- data/lib/lhs/interceptors/auto_oauth/interceptor.rb +33 -0
- data/lib/lhs/interceptors/auto_oauth/thread_registry.rb +18 -0
- data/lib/lhs/interceptors/extended_rollbar/handler.rb +40 -0
- data/lib/lhs/interceptors/extended_rollbar/interceptor.rb +20 -0
- data/lib/lhs/interceptors/extended_rollbar/thread_registry.rb +19 -0
- data/lib/lhs/interceptors/request_cycle_cache/interceptor.rb +41 -0
- data/lib/lhs/interceptors/request_cycle_cache/thread_registry.rb +18 -0
- data/lib/lhs/item.rb +59 -0
- data/lib/lhs/pagination/base.rb +90 -0
- data/lib/lhs/pagination/link.rb +21 -0
- data/lib/lhs/pagination/offset.rb +22 -0
- data/lib/lhs/pagination/page.rb +18 -0
- data/lib/lhs/pagination/start.rb +22 -0
- data/lib/lhs/problems/base.rb +113 -0
- data/lib/lhs/problems/errors.rb +69 -0
- data/lib/lhs/problems/nested/base.rb +54 -0
- data/lib/lhs/problems/nested/errors.rb +16 -0
- data/lib/lhs/problems/nested/warnings.rb +15 -0
- data/lib/lhs/problems/warnings.rb +24 -0
- data/lib/lhs/proxy.rb +68 -0
- data/lib/lhs/railtie.rb +34 -0
- data/lib/lhs/record.rb +112 -0
- data/lib/lhs/rspec.rb +10 -0
- data/lib/lhs/test/stubbable_records.rb +34 -0
- data/lib/lhs/unprocessable.rb +6 -0
- data/lib/lhs/version.rb +5 -0
- data/script/ci/build.sh +18 -0
- data/spec/auto_oauth_spec.rb +169 -0
- data/spec/autoloading_spec.rb +48 -0
- data/spec/collection/accessors_spec.rb +31 -0
- data/spec/collection/collection_items_spec.rb +44 -0
- data/spec/collection/configurable_spec.rb +43 -0
- data/spec/collection/delegate_spec.rb +21 -0
- data/spec/collection/enumerable_spec.rb +27 -0
- data/spec/collection/href_spec.rb +17 -0
- data/spec/collection/meta_data_spec.rb +57 -0
- data/spec/collection/respond_to_spec.rb +20 -0
- data/spec/collection/to_a_spec.rb +34 -0
- data/spec/collection/to_ary_spec.rb +40 -0
- data/spec/collection/without_object_items_spec.rb +27 -0
- data/spec/complex/reduce_spec.rb +202 -0
- data/spec/concerns/record/request_spec.rb +78 -0
- data/spec/data/collection_spec.rb +56 -0
- data/spec/data/equality_spec.rb +23 -0
- data/spec/data/inspect_spec.rb +88 -0
- data/spec/data/is_item_or_collection_spec.rb +40 -0
- data/spec/data/item_spec.rb +106 -0
- data/spec/data/merge_spec.rb +27 -0
- data/spec/data/parent_spec.rb +39 -0
- data/spec/data/raw_spec.rb +48 -0
- data/spec/data/respond_to_spec.rb +26 -0
- data/spec/data/root_spec.rb +25 -0
- data/spec/data/select_spec.rb +27 -0
- data/spec/data/to_ary_spec.rb +28 -0
- data/spec/data/to_json_spec.rb +68 -0
- data/spec/dummy/Rakefile +8 -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 +26 -0
- data/spec/dummy/app/controllers/automatic_authentication_controller.rb +29 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/controllers/error_handling_with_chains_controller.rb +36 -0
- data/spec/dummy/app/controllers/extended_rollbar_controller.rb +10 -0
- data/spec/dummy/app/controllers/option_blocks_controller.rb +15 -0
- data/spec/dummy/app/controllers/request_cycle_cache_controller.rb +27 -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/models/dummy_customer.rb +6 -0
- data/spec/dummy/app/models/dummy_record.rb +6 -0
- data/spec/dummy/app/models/dummy_record_with_auto_oauth_provider.rb +6 -0
- data/spec/dummy/app/models/dummy_record_with_multiple_oauth_providers1.rb +7 -0
- data/spec/dummy/app/models/dummy_record_with_multiple_oauth_providers2.rb +7 -0
- data/spec/dummy/app/models/dummy_record_with_multiple_providers_per_endpoint.rb +6 -0
- data/spec/dummy/app/models/dummy_record_with_oauth.rb +7 -0
- data/spec/dummy/app/models/dummy_user.rb +6 -0
- data/spec/dummy/app/models/providers/customer_system.rb +7 -0
- data/spec/dummy/app/models/providers/internal_services.rb +7 -0
- data/spec/dummy/app/views/error_handling_with_chains/error.html.erb +1 -0
- data/spec/dummy/app/views/error_handling_with_chains/show.html.erb +3 -0
- data/spec/dummy/app/views/form_for.html.erb +5 -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 +40 -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/rollbar.rb +9 -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 +27 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/lib/assets/.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/for_url_spec.rb +27 -0
- data/spec/extended_rollbar_spec.rb +67 -0
- data/spec/item/access_errors_spec.rb +33 -0
- data/spec/item/accessors_spec.rb +21 -0
- data/spec/item/add_error_spec.rb +21 -0
- data/spec/item/becomes_spec.rb +38 -0
- data/spec/item/blacklisted_keywords_spec.rb +30 -0
- data/spec/item/delegate_spec.rb +32 -0
- data/spec/item/destroy_spec.rb +113 -0
- data/spec/item/dig_spec.rb +29 -0
- data/spec/item/error_codes_spec.rb +55 -0
- data/spec/item/errors_spec.rb +324 -0
- data/spec/item/fetch_spec.rb +39 -0
- data/spec/item/getter_spec.rb +24 -0
- data/spec/item/internal_data_structure_spec.rb +37 -0
- data/spec/item/map_spec.rb +46 -0
- data/spec/item/nested_errors_spec.rb +28 -0
- data/spec/item/partial_update_spec.rb +170 -0
- data/spec/item/respond_to_spec.rb +31 -0
- data/spec/item/save_spec.rb +115 -0
- data/spec/item/setter_spec.rb +44 -0
- data/spec/item/translate_errors_spec.rb +257 -0
- data/spec/item/update_spec.rb +161 -0
- data/spec/item/validation_spec.rb +131 -0
- data/spec/item/warning_codes_spec.rb +55 -0
- data/spec/item/warnings_spec.rb +52 -0
- data/spec/option_blocks/ensure_reset_between_requests_spec.rb +23 -0
- data/spec/option_blocks/main_spec.rb +55 -0
- data/spec/pagination/link/current_page_spec.rb +19 -0
- data/spec/pagination/link/pages_left_spec.rb +36 -0
- data/spec/pagination/link/parallel_spec.rb +19 -0
- data/spec/pagination/link/total_spec.rb +46 -0
- data/spec/pagination/offset/pages_left_spec.rb +26 -0
- data/spec/pagination/parameters_spec.rb +61 -0
- data/spec/proxy/create_sub_resource_spec.rb +182 -0
- data/spec/proxy/load_spec.rb +75 -0
- data/spec/proxy/record_identification_spec.rb +35 -0
- data/spec/rails_helper.rb +13 -0
- data/spec/record/all_spec.rb +133 -0
- data/spec/record/attribute_assignment_spec.rb +28 -0
- data/spec/record/build_spec.rb +26 -0
- data/spec/record/cast_nested_data_spec.rb +78 -0
- data/spec/record/create_spec.rb +160 -0
- data/spec/record/creation_failed_spec.rb +55 -0
- data/spec/record/custom_setters_spec.rb +45 -0
- data/spec/record/definitions_spec.rb +29 -0
- data/spec/record/destroy_spec.rb +38 -0
- data/spec/record/dig_configuration_spec.rb +75 -0
- data/spec/record/dup_spec.rb +20 -0
- data/spec/record/endpoint_inheritance_spec.rb +65 -0
- data/spec/record/endpoint_options_spec.rb +52 -0
- data/spec/record/endpoint_priorities_spec.rb +26 -0
- data/spec/record/endpoints_spec.rb +96 -0
- data/spec/record/equality_spec.rb +27 -0
- data/spec/record/error_handling_integration_spec.rb +25 -0
- data/spec/record/error_handling_spec.rb +40 -0
- data/spec/record/expanded_spec.rb +69 -0
- data/spec/record/fetch_spec.rb +41 -0
- data/spec/record/find_by_chains_spec.rb +21 -0
- data/spec/record/find_by_spec.rb +76 -0
- data/spec/record/find_each_spec.rb +57 -0
- data/spec/record/find_in_batches_spec.rb +122 -0
- data/spec/record/find_in_parallel_spec.rb +67 -0
- data/spec/record/find_spec.rb +104 -0
- data/spec/record/first_spec.rb +39 -0
- data/spec/record/force_merge_spec.rb +56 -0
- data/spec/record/handle_includes_errors_spec.rb +32 -0
- data/spec/record/has_many_spec.rb +120 -0
- data/spec/record/has_one_spec.rb +116 -0
- data/spec/record/href_for_spec.rb +25 -0
- data/spec/record/ignore_errors_spec.rb +139 -0
- data/spec/record/immutable_chains_spec.rb +22 -0
- data/spec/record/includes_first_page_spec.rb +737 -0
- data/spec/record/includes_spec.rb +693 -0
- data/spec/record/includes_warning_spec.rb +46 -0
- data/spec/record/item_key_spec.rb +81 -0
- data/spec/record/items_created_key_configuration_spec.rb +37 -0
- data/spec/record/last_spec.rb +68 -0
- data/spec/record/loading_twice_spec.rb +19 -0
- data/spec/record/mapping_spec.rb +102 -0
- data/spec/record/model_name_spec.rb +17 -0
- data/spec/record/new_spec.rb +106 -0
- data/spec/record/options_getter_spec.rb +26 -0
- data/spec/record/options_spec.rb +164 -0
- data/spec/record/paginatable_collection_spec.rb +360 -0
- data/spec/record/pagination_chain_spec.rb +101 -0
- data/spec/record/pagination_links_spec.rb +72 -0
- data/spec/record/pagination_spec.rb +71 -0
- data/spec/record/persisted_spec.rb +52 -0
- data/spec/record/provider_spec.rb +41 -0
- data/spec/record/references_spec.rb +53 -0
- data/spec/record/relation_caching_spec.rb +121 -0
- data/spec/record/reload_by_id_spec.rb +43 -0
- data/spec/record/reload_spec.rb +65 -0
- data/spec/record/request_spec.rb +90 -0
- data/spec/record/save_spec.rb +40 -0
- data/spec/record/scope_chains_spec.rb +39 -0
- data/spec/record/select_spec.rb +17 -0
- data/spec/record/to_ary_spec.rb +65 -0
- data/spec/record/to_hash_spec.rb +22 -0
- data/spec/record/to_json_spec.rb +22 -0
- data/spec/record/tracing_spec.rb +154 -0
- data/spec/record/update_spec.rb +62 -0
- data/spec/record/where_chains_spec.rb +57 -0
- data/spec/record/where_spec.rb +62 -0
- data/spec/record/where_values_hash_spec.rb +32 -0
- data/spec/request_cycle_cache_spec.rb +106 -0
- data/spec/require_lhs_spec.rb +9 -0
- data/spec/spec_helper.rb +6 -0
- data/spec/stubs/all_spec.rb +72 -0
- data/spec/support/fixtures/json/feedback.json +11 -0
- data/spec/support/fixtures/json/feedbacks.json +174 -0
- data/spec/support/fixtures/json/localina_content_ad.json +23 -0
- data/spec/support/load_json.rb +5 -0
- data/spec/support/request_cycle_cache.rb +10 -0
- data/spec/support/reset.rb +67 -0
- data/spec/views/form_for_spec.rb +20 -0
- metadata +776 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e31a9b37f1bc0f12b3a6c87933b145781ed3054e08ea4ea347d5b27d00a069ea
|
4
|
+
data.tar.gz: d67f414e70fdcae5567dcf5c81c2e2dec93237026e829c9dc9522df5eb778480
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f39832a96aa989660bfbaf051c53bd53c647d4e75f7b9fa3ca81ab1243ec94bd17828da931207f80fd57a9f98f38188cca659143912a01a4ffc5e197090f6b3a
|
7
|
+
data.tar.gz: 19ea228303da96f4f4e831825c19c98ea9a81c15b76ad645b3ecbe23532f0a7336eb87d815f432f2d25ee5d6f0c07d98963ed0ba5388022cd79521cd0ae04424
|
data/.bundler-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
_1.17.3_
|
data/.gitignore
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
*.rbc
|
2
|
+
capybara-*.html
|
3
|
+
.rspec
|
4
|
+
.DS_Store
|
5
|
+
spec/dummy/log
|
6
|
+
/tmp
|
7
|
+
/pkg
|
8
|
+
/db/*.sqlite3
|
9
|
+
/public/system
|
10
|
+
/coverage/
|
11
|
+
/spec/tmp
|
12
|
+
**.orig
|
13
|
+
rerun.txt
|
14
|
+
pickle-email-*.html
|
15
|
+
*.log
|
16
|
+
|
17
|
+
# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
|
18
|
+
config/initiali ers/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
|
+
Gemfile.*.lock
|
28
|
+
.ruby-gemset
|
29
|
+
|
30
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
31
|
+
.rvmrc
|
32
|
+
|
33
|
+
# if using bower-rails ignore default bower_components path bower.json files
|
34
|
+
/vendor/assets/bower_components
|
35
|
+
*.bowerrc
|
36
|
+
bower.json
|
37
|
+
|
38
|
+
spec/dummy/log/test.log
|
39
|
+
spec/dummy/tmp
|
@@ -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,52 @@
|
|
1
|
+
# This is project specific rubocop configuration file.
|
2
|
+
# You can tweak project settings here
|
3
|
+
inherit_from:
|
4
|
+
- ./.rubocop.localch.yml
|
5
|
+
|
6
|
+
Lint/IneffectiveAccessModifier:
|
7
|
+
Enabled: false
|
8
|
+
|
9
|
+
Lint/ShadowingOuterLocalVariable:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
RSpec/DescribedClass:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
RSpec/AnyInstance:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
Style/MethodMissingSuper:
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
Style/MissingRespondToMissing:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
Rails/OutputSafety:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Style/SignalException:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Rails/DynamicFindBy:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
Metrics/BlockLength:
|
34
|
+
Enabled: false
|
35
|
+
|
36
|
+
Layout/EmptyLinesAroundBlockBody:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
RSpec/MultipleExpectations:
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
Naming/PredicateName:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
RSpec/MessageSpies:
|
46
|
+
Enabled: false
|
47
|
+
|
48
|
+
Style/RegexpLiteral:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
Style/FrozenStringLiteralComment:
|
52
|
+
Enabled: true
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.6.5
|
data/Gemfile
ADDED