active_cached_resource 0.1.0 → 0.1.1
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/CHANGELOG.md +7 -0
- data/LICENSE +21 -0
- data/lib/active_cached_resource/caching.rb +104 -1
- data/lib/active_cached_resource/configuration.rb +22 -1
- data/lib/active_cached_resource/logger.rb +14 -0
- data/lib/active_cached_resource/model.rb +18 -0
- data/lib/active_cached_resource/version.rb +1 -8
- metadata +2 -308
- data/.rspec +0 -3
- data/.rubocop.yml +0 -23
- data/.standard.yml +0 -2
- data/Rakefile +0 -29
- data/example/consumer/.dockerignore +0 -41
- data/example/consumer/.gitattributes +0 -9
- data/example/consumer/.gitignore +0 -36
- data/example/consumer/.kamal/hooks/docker-setup.sample +0 -3
- data/example/consumer/.kamal/hooks/post-deploy.sample +0 -14
- data/example/consumer/.kamal/hooks/post-proxy-reboot.sample +0 -3
- data/example/consumer/.kamal/hooks/pre-build.sample +0 -51
- data/example/consumer/.kamal/hooks/pre-connect.sample +0 -47
- data/example/consumer/.kamal/hooks/pre-deploy.sample +0 -109
- data/example/consumer/.kamal/hooks/pre-proxy-reboot.sample +0 -3
- data/example/consumer/.kamal/secrets +0 -17
- data/example/consumer/Dockerfile +0 -65
- data/example/consumer/Gemfile +0 -17
- data/example/consumer/Rakefile +0 -6
- data/example/consumer/app/controllers/application_controller.rb +0 -2
- data/example/consumer/app/controllers/concerns/.keep +0 -0
- data/example/consumer/app/jobs/application_job.rb +0 -7
- data/example/consumer/app/mailers/application_mailer.rb +0 -4
- data/example/consumer/app/models/application_record.rb +0 -3
- data/example/consumer/app/models/concerns/.keep +0 -0
- data/example/consumer/app/models/person.rb +0 -9
- data/example/consumer/app/views/layouts/mailer.html.erb +0 -13
- data/example/consumer/app/views/layouts/mailer.text.erb +0 -1
- data/example/consumer/bin/brakeman +0 -7
- data/example/consumer/bin/bundle +0 -109
- data/example/consumer/bin/dev +0 -2
- data/example/consumer/bin/docker-entrypoint +0 -14
- data/example/consumer/bin/jobs +0 -6
- data/example/consumer/bin/kamal +0 -27
- data/example/consumer/bin/rails +0 -4
- data/example/consumer/bin/rake +0 -4
- data/example/consumer/bin/rubocop +0 -8
- data/example/consumer/bin/setup +0 -34
- data/example/consumer/bin/thrust +0 -5
- data/example/consumer/config/application.rb +0 -20
- data/example/consumer/config/boot.rb +0 -3
- data/example/consumer/config/cache.yml +0 -16
- data/example/consumer/config/credentials.yml.enc +0 -1
- data/example/consumer/config/database.yml +0 -14
- data/example/consumer/config/deploy.yml +0 -116
- data/example/consumer/config/environment.rb +0 -5
- data/example/consumer/config/environments/development.rb +0 -64
- data/example/consumer/config/environments/production.rb +0 -85
- data/example/consumer/config/environments/test.rb +0 -50
- data/example/consumer/config/initializers/cors.rb +0 -16
- data/example/consumer/config/initializers/filter_parameter_logging.rb +0 -8
- data/example/consumer/config/initializers/inflections.rb +0 -16
- data/example/consumer/config/locales/en.yml +0 -31
- data/example/consumer/config/puma.rb +0 -41
- data/example/consumer/config/queue.yml +0 -18
- data/example/consumer/config/recurring.yml +0 -10
- data/example/consumer/config/routes.rb +0 -10
- data/example/consumer/config.ru +0 -6
- data/example/consumer/db/cache_schema.rb +0 -14
- data/example/consumer/db/queue_schema.rb +0 -129
- data/example/consumer/db/seeds.rb +0 -0
- data/example/consumer/lib/tasks/.keep +0 -0
- data/example/consumer/log/.keep +0 -0
- data/example/consumer/public/robots.txt +0 -1
- data/example/consumer/script/.keep +0 -0
- data/example/consumer/storage/.keep +0 -0
- data/example/consumer/tmp/.keep +0 -0
- data/example/consumer/tmp/cache/.keep +0 -0
- data/example/consumer/tmp/pids/.keep +0 -0
- data/example/consumer/tmp/storage/.keep +0 -0
- data/example/consumer/vendor/.keep +0 -0
- data/example/provider/.dockerignore +0 -41
- data/example/provider/.gitattributes +0 -9
- data/example/provider/.gitignore +0 -32
- data/example/provider/.kamal/hooks/docker-setup.sample +0 -3
- data/example/provider/.kamal/hooks/post-deploy.sample +0 -14
- data/example/provider/.kamal/hooks/post-proxy-reboot.sample +0 -3
- data/example/provider/.kamal/hooks/pre-build.sample +0 -51
- data/example/provider/.kamal/hooks/pre-connect.sample +0 -47
- data/example/provider/.kamal/hooks/pre-deploy.sample +0 -109
- data/example/provider/.kamal/hooks/pre-proxy-reboot.sample +0 -3
- data/example/provider/.kamal/secrets +0 -17
- data/example/provider/Dockerfile +0 -65
- data/example/provider/Gemfile +0 -14
- data/example/provider/Rakefile +0 -6
- data/example/provider/app/controllers/application_controller.rb +0 -2
- data/example/provider/app/controllers/concerns/.keep +0 -0
- data/example/provider/app/controllers/people_controller.rb +0 -68
- data/example/provider/app/jobs/application_job.rb +0 -7
- data/example/provider/app/mailers/application_mailer.rb +0 -4
- data/example/provider/app/models/address.rb +0 -3
- data/example/provider/app/models/application_record.rb +0 -3
- data/example/provider/app/models/company.rb +0 -3
- data/example/provider/app/models/concerns/.keep +0 -0
- data/example/provider/app/models/person.rb +0 -6
- data/example/provider/app/views/layouts/mailer.html.erb +0 -13
- data/example/provider/app/views/layouts/mailer.text.erb +0 -1
- data/example/provider/bin/brakeman +0 -7
- data/example/provider/bin/bundle +0 -109
- data/example/provider/bin/dev +0 -2
- data/example/provider/bin/docker-entrypoint +0 -14
- data/example/provider/bin/jobs +0 -6
- data/example/provider/bin/kamal +0 -27
- data/example/provider/bin/rails +0 -4
- data/example/provider/bin/rake +0 -4
- data/example/provider/bin/rubocop +0 -8
- data/example/provider/bin/setup +0 -34
- data/example/provider/bin/thrust +0 -5
- data/example/provider/config/application.rb +0 -44
- data/example/provider/config/boot.rb +0 -3
- data/example/provider/config/cache.yml +0 -16
- data/example/provider/config/credentials.yml.enc +0 -1
- data/example/provider/config/database.yml +0 -20
- data/example/provider/config/deploy.yml +0 -116
- data/example/provider/config/environment.rb +0 -5
- data/example/provider/config/environments/development.rb +0 -64
- data/example/provider/config/environments/production.rb +0 -85
- data/example/provider/config/environments/test.rb +0 -50
- data/example/provider/config/initializers/cors.rb +0 -16
- data/example/provider/config/initializers/filter_parameter_logging.rb +0 -8
- data/example/provider/config/initializers/inflections.rb +0 -16
- data/example/provider/config/locales/en.yml +0 -31
- data/example/provider/config/puma.rb +0 -41
- data/example/provider/config/queue.yml +0 -18
- data/example/provider/config/recurring.yml +0 -10
- data/example/provider/config/routes.rb +0 -4
- data/example/provider/config.ru +0 -6
- data/example/provider/db/cache_schema.rb +0 -14
- data/example/provider/db/migrate/20241202183937_create_people.rb +0 -11
- data/example/provider/db/migrate/20241202183955_create_addresses.rb +0 -13
- data/example/provider/db/migrate/20241202184017_create_companies.rb +0 -14
- data/example/provider/db/queue_schema.rb +0 -129
- data/example/provider/db/schema.rb +0 -47
- data/example/provider/db/seeds.rb +0 -18
- data/example/provider/lib/tasks/.keep +0 -0
- data/example/provider/log/.keep +0 -0
- data/example/provider/public/robots.txt +0 -1
- data/example/provider/script/.keep +0 -0
- data/example/provider/storage/.keep +0 -0
- data/example/provider/tmp/.keep +0 -0
- data/example/provider/tmp/pids/.keep +0 -0
- data/example/provider/tmp/storage/.keep +0 -0
- data/example/provider/vendor/.keep +0 -0
- data/lib/activeresource/.gitignore +0 -15
- data/lib/activeresource/examples/performance.rb +0 -72
- data/lib/activeresource/test/abstract_unit.rb +0 -154
- data/lib/activeresource/test/cases/active_job_serializer_test.rb +0 -53
- data/lib/activeresource/test/cases/association_test.rb +0 -104
- data/lib/activeresource/test/cases/associations/builder/belongs_to_test.rb +0 -42
- data/lib/activeresource/test/cases/associations/builder/has_many_test.rb +0 -28
- data/lib/activeresource/test/cases/associations/builder/has_one_test.rb +0 -28
- data/lib/activeresource/test/cases/authorization_test.rb +0 -276
- data/lib/activeresource/test/cases/base/custom_methods_test.rb +0 -155
- data/lib/activeresource/test/cases/base/equality_test.rb +0 -53
- data/lib/activeresource/test/cases/base/load_test.rb +0 -249
- data/lib/activeresource/test/cases/base/schema_test.rb +0 -428
- data/lib/activeresource/test/cases/base_errors_test.rb +0 -129
- data/lib/activeresource/test/cases/base_test.rb +0 -1622
- data/lib/activeresource/test/cases/callbacks_test.rb +0 -155
- data/lib/activeresource/test/cases/collection_test.rb +0 -196
- data/lib/activeresource/test/cases/connection_test.rb +0 -357
- data/lib/activeresource/test/cases/finder_test.rb +0 -217
- data/lib/activeresource/test/cases/format_test.rb +0 -137
- data/lib/activeresource/test/cases/http_mock_test.rb +0 -213
- data/lib/activeresource/test/cases/inheritence_test.rb +0 -19
- data/lib/activeresource/test/cases/inheriting_hash_test.rb +0 -25
- data/lib/activeresource/test/cases/log_subscriber_test.rb +0 -64
- data/lib/activeresource/test/cases/reflection_test.rb +0 -65
- data/lib/activeresource/test/cases/validations_test.rb +0 -78
- data/lib/activeresource/test/fixtures/address.rb +0 -20
- data/lib/activeresource/test/fixtures/beast.rb +0 -16
- data/lib/activeresource/test/fixtures/comment.rb +0 -5
- data/lib/activeresource/test/fixtures/customer.rb +0 -5
- data/lib/activeresource/test/fixtures/fixtures.rbi +0 -46
- data/lib/activeresource/test/fixtures/inventory.rb +0 -14
- data/lib/activeresource/test/fixtures/person.rb +0 -15
- data/lib/activeresource/test/fixtures/pet.rb +0 -6
- data/lib/activeresource/test/fixtures/post.rb +0 -5
- data/lib/activeresource/test/fixtures/product.rb +0 -11
- data/lib/activeresource/test/fixtures/project.rb +0 -19
- data/lib/activeresource/test/fixtures/proxy.rb +0 -6
- data/lib/activeresource/test/fixtures/sound.rb +0 -11
- data/lib/activeresource/test/fixtures/street_address.rb +0 -6
- data/lib/activeresource/test/fixtures/subscription_plan.rb +0 -7
- data/lib/activeresource/test/fixtures/weather.rb +0 -21
- data/lib/activeresource/test/setter_trap.rb +0 -28
- data/lib/activeresource/test/singleton_test.rb +0 -138
- data/lib/activeresource/test/threadsafe_attributes_test.rb +0 -91
- data/sorbet/config +0 -6
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/activemodel.rbi +0 -89
- data/sorbet/rbi/annotations/activesupport.rbi +0 -457
- data/sorbet/rbi/annotations/minitest.rbi +0 -119
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/dsl/.gitattributes +0 -1
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -21
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/actioncable@8.0.1.rbi +0 -252
- data/sorbet/rbi/gems/actionmailbox@8.0.1.rbi +0 -9
- data/sorbet/rbi/gems/actionmailer@8.0.1.rbi +0 -9
- data/sorbet/rbi/gems/actionpack@8.0.1.rbi +0 -21111
- data/sorbet/rbi/gems/actiontext@8.0.1.rbi +0 -9
- data/sorbet/rbi/gems/actionview@8.0.1.rbi +0 -16409
- data/sorbet/rbi/gems/activejob@8.0.1.rbi +0 -90
- data/sorbet/rbi/gems/activemodel-serializers-xml@1.0.3.rbi +0 -166
- data/sorbet/rbi/gems/activemodel@8.0.1.rbi +0 -6865
- data/sorbet/rbi/gems/activerecord@8.0.1.rbi +0 -43277
- data/sorbet/rbi/gems/activestorage@8.0.1.rbi +0 -9
- data/sorbet/rbi/gems/activesupport@8.0.1.rbi +0 -21426
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -585
- data/sorbet/rbi/gems/base64@0.2.0.rbi +0 -509
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +0 -618
- data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +0 -78
- data/sorbet/rbi/gems/builder@3.3.0.rbi +0 -9
- data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -169
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -3607
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3427
- data/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi +0 -11645
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +0 -9
- data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -623
- data/sorbet/rbi/gems/date@3.4.1.rbi +0 -75
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +0 -1131
- data/sorbet/rbi/gems/docile@1.4.1.rbi +0 -377
- data/sorbet/rbi/gems/drb@2.2.1.rbi +0 -1347
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +0 -150
- data/sorbet/rbi/gems/globalid@1.2.1.rbi +0 -9
- data/sorbet/rbi/gems/i18n@1.14.6.rbi +0 -2359
- data/sorbet/rbi/gems/io-console@0.8.0.rbi +0 -9
- data/sorbet/rbi/gems/json@2.9.0.rbi +0 -1944
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14238
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +0 -240
- data/sorbet/rbi/gems/logger@1.6.3.rbi +0 -940
- data/sorbet/rbi/gems/loofah@2.23.1.rbi +0 -1081
- data/sorbet/rbi/gems/mail@2.8.1.rbi +0 -9
- data/sorbet/rbi/gems/marcel@1.0.4.rbi +0 -9
- data/sorbet/rbi/gems/method_source@1.1.0.rbi +0 -304
- data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +0 -9
- data/sorbet/rbi/gems/minitest@5.25.4.rbi +0 -1547
- data/sorbet/rbi/gems/mocha@2.7.1.rbi +0 -12
- data/sorbet/rbi/gems/msgpack@1.7.5.rbi +0 -320
- data/sorbet/rbi/gems/net-imap@0.5.2.rbi +0 -9
- data/sorbet/rbi/gems/net-pop@0.1.2.rbi +0 -9
- data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +0 -292
- data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +0 -9
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
- data/sorbet/rbi/gems/nio4r@2.7.4.rbi +0 -9
- data/sorbet/rbi/gems/nokogiri@1.17.2.rbi +0 -8201
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +0 -291
- data/sorbet/rbi/gems/parser@3.3.6.0.rbi +0 -5519
- data/sorbet/rbi/gems/prism@1.2.0.rbi +0 -39085
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +0 -1151
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10076
- data/sorbet/rbi/gems/psych@5.2.1.rbi +0 -1785
- data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -162
- data/sorbet/rbi/gems/rack-session@2.0.0.rbi +0 -727
- data/sorbet/rbi/gems/rack-test@2.1.0.rbi +0 -747
- data/sorbet/rbi/gems/rack@3.1.8.rbi +0 -4905
- data/sorbet/rbi/gems/rackup@2.2.1.rbi +0 -230
- data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +0 -758
- data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +0 -785
- data/sorbet/rbi/gems/rails@8.0.1.rbi +0 -9
- data/sorbet/rbi/gems/railties@8.0.1.rbi +0 -6347
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
- data/sorbet/rbi/gems/rake@13.2.1.rbi +0 -3028
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +0 -4535
- data/sorbet/rbi/gems/rdoc@6.9.1.rbi +0 -12593
- data/sorbet/rbi/gems/regexp_parser@2.9.3.rbi +0 -3772
- data/sorbet/rbi/gems/reline@0.6.0.rbi +0 -2454
- data/sorbet/rbi/gems/rexml@3.4.0.rbi +0 -4871
- data/sorbet/rbi/gems/rspec-core@3.13.2.rbi +0 -11284
- data/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +0 -8183
- data/sorbet/rbi/gems/rspec-mocks@3.13.2.rbi +0 -5341
- data/sorbet/rbi/gems/rspec-support@3.13.2.rbi +0 -1630
- data/sorbet/rbi/gems/rspec@3.13.0.rbi +0 -83
- data/sorbet/rbi/gems/rubocop-ast@1.37.0.rbi +0 -7713
- data/sorbet/rbi/gems/rubocop-md@1.2.4.rbi +0 -123
- data/sorbet/rbi/gems/rubocop-minitest@0.36.0.rbi +0 -2613
- data/sorbet/rbi/gems/rubocop-packaging@0.5.2.rbi +0 -388
- data/sorbet/rbi/gems/rubocop-performance@1.23.0.rbi +0 -9
- data/sorbet/rbi/gems/rubocop-rails@2.27.0.rbi +0 -9535
- data/sorbet/rbi/gems/rubocop@1.69.2.rbi +0 -59600
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -9
- data/sorbet/rbi/gems/securerandom@0.4.1.rbi +0 -78
- data/sorbet/rbi/gems/simplecov-html@0.13.1.rbi +0 -225
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +0 -2149
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -9
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +0 -4932
- data/sorbet/rbi/gems/sqlite3@2.3.1.rbi +0 -1824
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +0 -9
- data/sorbet/rbi/gems/standard-performance@1.6.0.rbi +0 -9
- data/sorbet/rbi/gems/standard@1.43.0.rbi +0 -926
- data/sorbet/rbi/gems/stringio@3.1.2.rbi +0 -9
- data/sorbet/rbi/gems/tapioca@0.16.4.rbi +0 -3597
- data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
- data/sorbet/rbi/gems/timeout@0.4.2.rbi +0 -151
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
- data/sorbet/rbi/gems/unicode-display_width@3.1.2.rbi +0 -130
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +0 -251
- data/sorbet/rbi/gems/uri@1.0.2.rbi +0 -2377
- data/sorbet/rbi/gems/useragent@0.16.11.rbi +0 -9
- data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +0 -9
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +0 -9
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
- data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18504
- data/sorbet/rbi/gems/zeitwerk@2.7.1.rbi +0 -9
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -13
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
|
|
3
|
-
# DO NOT EDIT MANUALLY
|
|
4
|
-
# This is an autogenerated file for types exported from the `rubocop-packaging` gem.
|
|
5
|
-
# Please instead update this file by running `bin/tapioca gem rubocop-packaging`.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# source://rubocop-packaging//lib/rubocop/packaging/version.rb#3
|
|
9
|
-
module RuboCop; end
|
|
10
|
-
|
|
11
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#6
|
|
12
|
-
module RuboCop::Cop; end
|
|
13
|
-
|
|
14
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#7
|
|
15
|
-
module RuboCop::Cop::Packaging; end
|
|
16
|
-
|
|
17
|
-
# This cop flags the `require "bundler/setup"` calls if they're
|
|
18
|
-
# made from inside the tests directory.
|
|
19
|
-
#
|
|
20
|
-
# @example
|
|
21
|
-
#
|
|
22
|
-
# # bad
|
|
23
|
-
# require "foo"
|
|
24
|
-
# require "bundler/setup"
|
|
25
|
-
#
|
|
26
|
-
# # good
|
|
27
|
-
# require "foo"
|
|
28
|
-
#
|
|
29
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#20
|
|
30
|
-
class RuboCop::Cop::Packaging::BundlerSetupInTests < ::RuboCop::Cop::Base
|
|
31
|
-
include ::RuboCop::Packaging::LibHelperModule
|
|
32
|
-
include ::RuboCop::Cop::RangeHelp
|
|
33
|
-
extend ::RuboCop::Cop::AutoCorrector
|
|
34
|
-
|
|
35
|
-
# Called from on_send, this method helps to autocorrect
|
|
36
|
-
# the offenses flagged by this cop.
|
|
37
|
-
#
|
|
38
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#57
|
|
39
|
-
def autocorrect(corrector, node); end
|
|
40
|
-
|
|
41
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#29
|
|
42
|
-
def bundler_setup?(param0 = T.unsafe(nil)); end
|
|
43
|
-
|
|
44
|
-
# This method is called from inside `#def_node_matcher`.
|
|
45
|
-
# It flags an offense if the `require "bundler/setup"`
|
|
46
|
-
# call is made from the tests directory.
|
|
47
|
-
#
|
|
48
|
-
# @return [Boolean]
|
|
49
|
-
#
|
|
50
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#66
|
|
51
|
-
def bundler_setup_in_test_dir?(str); end
|
|
52
|
-
|
|
53
|
-
# This method determines if the call is made *from* the tests directory.
|
|
54
|
-
#
|
|
55
|
-
# @return [Boolean]
|
|
56
|
-
#
|
|
57
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#71
|
|
58
|
-
def falls_in_test_dir?; end
|
|
59
|
-
|
|
60
|
-
# Extended from the Base class.
|
|
61
|
-
# More about the `#on_new_investigation` method can be found here:
|
|
62
|
-
# https://github.com/rubocop-hq/rubocop/blob/343f62e4555be0470326f47af219689e21c61a37/lib/rubocop/cop/base.rb
|
|
63
|
-
#
|
|
64
|
-
# Processing of the AST happens here.
|
|
65
|
-
#
|
|
66
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#39
|
|
67
|
-
def on_new_investigation; end
|
|
68
|
-
|
|
69
|
-
# Extended from AST::Traversal.
|
|
70
|
-
# More about the `#on_send` method can be found here:
|
|
71
|
-
# https://github.com/rubocop-hq/rubocop-ast/blob/08d0f49a47af1e9a30a6d8f67533ba793c843d67/lib/rubocop/ast/traversal.rb#L112
|
|
72
|
-
#
|
|
73
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#47
|
|
74
|
-
def on_send(node); end
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
# This is the message that will be displayed when RuboCop::Packaging finds
|
|
78
|
-
# an offense of using `require "bundler/setup"` in the tests directory.
|
|
79
|
-
#
|
|
80
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#27
|
|
81
|
-
RuboCop::Cop::Packaging::BundlerSetupInTests::MSG = T.let(T.unsafe(nil), String)
|
|
82
|
-
|
|
83
|
-
# This cop flags the usage of `git ls-files` in gemspec
|
|
84
|
-
# and suggests to use a plain Ruby alternative, like `Dir`,
|
|
85
|
-
# `Dir.glob`, or `Rake::FileList` instead.
|
|
86
|
-
#
|
|
87
|
-
# @example
|
|
88
|
-
#
|
|
89
|
-
# # bad
|
|
90
|
-
# Gem::Specification.new do |spec|
|
|
91
|
-
# spec.files = `git ls-files`.split("\n")
|
|
92
|
-
# end
|
|
93
|
-
#
|
|
94
|
-
# # good
|
|
95
|
-
# Gem::Specification.new do |spec|
|
|
96
|
-
# spec.files = Dir["lib/**/*", "LICENSE", "README.md"]
|
|
97
|
-
# end
|
|
98
|
-
#
|
|
99
|
-
# # bad
|
|
100
|
-
# Gem::Specification.new do |spec|
|
|
101
|
-
# spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
102
|
-
# `git ls-files -z`.split("\\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
103
|
-
# end
|
|
104
|
-
# end
|
|
105
|
-
#
|
|
106
|
-
# # good
|
|
107
|
-
# require "rake/file_list"
|
|
108
|
-
#
|
|
109
|
-
# Gem::Specification.new do |spec|
|
|
110
|
-
# spec.files = Rake::FileList["**/*"].exclude(*File.read(".gitignore").split)
|
|
111
|
-
# end
|
|
112
|
-
#
|
|
113
|
-
# # bad
|
|
114
|
-
# Gem::Specification.new do |spec|
|
|
115
|
-
# spec.files = `git ls-files -- lib/`.split("\n")
|
|
116
|
-
# spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
117
|
-
# end
|
|
118
|
-
#
|
|
119
|
-
# # good
|
|
120
|
-
# Gem::Specification.new do |spec|
|
|
121
|
-
# spec.files = Dir.glob("lib/**/*")
|
|
122
|
-
# spec.executables = Dir.glob("bin/*").map{ |f| File.basename(f) }
|
|
123
|
-
# end
|
|
124
|
-
#
|
|
125
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/gemspec_git.rb#48
|
|
126
|
-
class RuboCop::Cop::Packaging::GemspecGit < ::RuboCop::Cop::Base
|
|
127
|
-
# Extended from the Cop class.
|
|
128
|
-
# More about the `#investigate` method can be found here:
|
|
129
|
-
# https://github.com/rubocop-hq/rubocop/blob/59543c8e2b66bff249de131fa9105f3eb11e9edb/lib/rubocop/cop/cop.rb#L13-L25
|
|
130
|
-
#
|
|
131
|
-
# Processing of the AST happens here.
|
|
132
|
-
#
|
|
133
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/gemspec_git.rb#70
|
|
134
|
-
def on_new_investigation; end
|
|
135
|
-
|
|
136
|
-
# This method is called from inside `#def_node_search`.
|
|
137
|
-
# It is used to find strings which start with "git".
|
|
138
|
-
#
|
|
139
|
-
# @return [Boolean]
|
|
140
|
-
#
|
|
141
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/gemspec_git.rb#83
|
|
142
|
-
def starts_with_git?(str); end
|
|
143
|
-
|
|
144
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/gemspec_git.rb#56
|
|
145
|
-
def xstr(param0); end
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
# This is the message that will be displayed when RuboCop finds an
|
|
149
|
-
# offense of using `git ls-files`.
|
|
150
|
-
#
|
|
151
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/gemspec_git.rb#51
|
|
152
|
-
RuboCop::Cop::Packaging::GemspecGit::MSG = T.let(T.unsafe(nil), String)
|
|
153
|
-
|
|
154
|
-
# This cop flags the `require` calls, from anywhere mapping to
|
|
155
|
-
# the "lib" directory, except originating from lib/.
|
|
156
|
-
#
|
|
157
|
-
# @example
|
|
158
|
-
#
|
|
159
|
-
# # bad
|
|
160
|
-
# require "../lib/foo/bar"
|
|
161
|
-
#
|
|
162
|
-
# # good
|
|
163
|
-
# require "foo/bar"
|
|
164
|
-
#
|
|
165
|
-
# # bad
|
|
166
|
-
# require File.expand_path("../../lib/foo", __FILE__)
|
|
167
|
-
#
|
|
168
|
-
# # good
|
|
169
|
-
# require "foo"
|
|
170
|
-
#
|
|
171
|
-
# # bad
|
|
172
|
-
# require File.expand_path("../../../lib/foo/bar/baz/qux", __dir__)
|
|
173
|
-
#
|
|
174
|
-
# # good
|
|
175
|
-
# require "foo/bar/baz/qux"
|
|
176
|
-
#
|
|
177
|
-
# # bad
|
|
178
|
-
# require File.dirname(__FILE__) + "/../../lib/baz/qux"
|
|
179
|
-
#
|
|
180
|
-
# # good
|
|
181
|
-
# require "baz/qux"
|
|
182
|
-
#
|
|
183
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#37
|
|
184
|
-
class RuboCop::Cop::Packaging::RequireHardcodingLib < ::RuboCop::Cop::Base
|
|
185
|
-
include ::RuboCop::Packaging::LibHelperModule
|
|
186
|
-
extend ::RuboCop::Cop::AutoCorrector
|
|
187
|
-
|
|
188
|
-
# This method is called from inside `#def_node_matcher`.
|
|
189
|
-
# It flags an offense if the `require` call is made from
|
|
190
|
-
# anywhere except the "lib" directory.
|
|
191
|
-
#
|
|
192
|
-
# @return [Boolean]
|
|
193
|
-
#
|
|
194
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#85
|
|
195
|
-
def falls_in_lib?(str); end
|
|
196
|
-
|
|
197
|
-
# This method is called from inside `#def_node_matcher`.
|
|
198
|
-
# It flags an offense if the `require` call (using the __FILE__
|
|
199
|
-
# arguement) is made from anywhere except the "lib" directory.
|
|
200
|
-
#
|
|
201
|
-
# @return [Boolean]
|
|
202
|
-
#
|
|
203
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#93
|
|
204
|
-
def falls_in_lib_using_file?(str); end
|
|
205
|
-
|
|
206
|
-
# This method preprends a "." to the string that starts with "/".
|
|
207
|
-
# And then determines if that call is made to "lib/".
|
|
208
|
-
#
|
|
209
|
-
# @return [Boolean]
|
|
210
|
-
#
|
|
211
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#100
|
|
212
|
-
def falls_in_lib_with_file_dirname_plus_str?(str); end
|
|
213
|
-
|
|
214
|
-
# Called from on_send, this method helps to replace
|
|
215
|
-
# the "bad" require call with the "good" one.
|
|
216
|
-
#
|
|
217
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#77
|
|
218
|
-
def good_require_call; end
|
|
219
|
-
|
|
220
|
-
# Extended from the Base class.
|
|
221
|
-
# More about the `#on_new_investigation` method can be found here:
|
|
222
|
-
# https://github.com/rubocop-hq/rubocop/blob/343f62e4555be0470326f47af219689e21c61a37/lib/rubocop/cop/base.rb
|
|
223
|
-
#
|
|
224
|
-
# Processing of the AST happens here.
|
|
225
|
-
#
|
|
226
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#59
|
|
227
|
-
def on_new_investigation; end
|
|
228
|
-
|
|
229
|
-
# Extended from AST::Traversal.
|
|
230
|
-
# More about the `#on_send` method can be found here:
|
|
231
|
-
# https://github.com/rubocop-hq/rubocop-ast/blob/08d0f49a47af1e9a30a6d8f67533ba793c843d67/lib/rubocop/ast/traversal.rb#L112
|
|
232
|
-
#
|
|
233
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#67
|
|
234
|
-
def on_send(node); end
|
|
235
|
-
|
|
236
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#46
|
|
237
|
-
def require?(param0 = T.unsafe(nil)); end
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
# This is the message that will be displayed when RuboCop::Packaging
|
|
241
|
-
# finds an offense of using `require` with relative path to lib.
|
|
242
|
-
#
|
|
243
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#43
|
|
244
|
-
RuboCop::Cop::Packaging::RequireHardcodingLib::MSG = T.let(T.unsafe(nil), String)
|
|
245
|
-
|
|
246
|
-
# This cop flags the `require_relative` calls, from anywhere
|
|
247
|
-
# mapping to the "lib" directory, except originating from lib/ or
|
|
248
|
-
# the gemspec file, and suggests to use `require` instead.
|
|
249
|
-
#
|
|
250
|
-
# @example
|
|
251
|
-
#
|
|
252
|
-
# # bad
|
|
253
|
-
# require_relative "lib/foo"
|
|
254
|
-
#
|
|
255
|
-
# # good
|
|
256
|
-
# require "foo"
|
|
257
|
-
#
|
|
258
|
-
# # bad
|
|
259
|
-
# require_relative "../../lib/foo/bar"
|
|
260
|
-
#
|
|
261
|
-
# # good
|
|
262
|
-
# require "foo/bar"
|
|
263
|
-
#
|
|
264
|
-
# # good
|
|
265
|
-
# require_relative "foo/bar/bax"
|
|
266
|
-
# require_relative "baz/qux"
|
|
267
|
-
#
|
|
268
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#30
|
|
269
|
-
class RuboCop::Cop::Packaging::RequireRelativeHardcodingLib < ::RuboCop::Cop::Base
|
|
270
|
-
include ::RuboCop::Packaging::LibHelperModule
|
|
271
|
-
extend ::RuboCop::Cop::AutoCorrector
|
|
272
|
-
|
|
273
|
-
# This method is called from inside `#def_node_matcher`.
|
|
274
|
-
# It flags an offense if the `require_relative` call is made
|
|
275
|
-
# from anywhere except the "lib" directory.
|
|
276
|
-
#
|
|
277
|
-
# @return [Boolean]
|
|
278
|
-
#
|
|
279
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#75
|
|
280
|
-
def falls_in_lib?(str); end
|
|
281
|
-
|
|
282
|
-
# Called from on_send, this method helps to replace the
|
|
283
|
-
# "bad" require_relative call with the "good" one.
|
|
284
|
-
#
|
|
285
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#67
|
|
286
|
-
def good_require_call; end
|
|
287
|
-
|
|
288
|
-
# Extended from the Base class.
|
|
289
|
-
# More about the `#on_new_investigation` method can be found here:
|
|
290
|
-
# https://github.com/rubocop-hq/rubocop/blob/343f62e4555be0470326f47af219689e21c61a37/lib/rubocop/cop/base.rb
|
|
291
|
-
#
|
|
292
|
-
# Processing of the AST happens here.
|
|
293
|
-
#
|
|
294
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#49
|
|
295
|
-
def on_new_investigation; end
|
|
296
|
-
|
|
297
|
-
# Extended from AST::Traversal.
|
|
298
|
-
# More about the `#on_send` method can be found here:
|
|
299
|
-
# https://github.com/rubocop-hq/rubocop-ast/blob/08d0f49a47af1e9a30a6d8f67533ba793c843d67/lib/rubocop/ast/traversal.rb#L112
|
|
300
|
-
#
|
|
301
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#57
|
|
302
|
-
def on_send(node); end
|
|
303
|
-
|
|
304
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#39
|
|
305
|
-
def require_relative(param0 = T.unsafe(nil)); end
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
# This is the message that will be displayed when RuboCop finds an
|
|
309
|
-
# offense of using `require_relative` with relative path to lib.
|
|
310
|
-
#
|
|
311
|
-
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#36
|
|
312
|
-
RuboCop::Cop::Packaging::RequireRelativeHardcodingLib::MSG = T.let(T.unsafe(nil), String)
|
|
313
|
-
|
|
314
|
-
# RuboCop Packaging project namespace
|
|
315
|
-
#
|
|
316
|
-
# source://rubocop-packaging//lib/rubocop/packaging/version.rb#4
|
|
317
|
-
module RuboCop::Packaging; end
|
|
318
|
-
|
|
319
|
-
# source://rubocop-packaging//lib/rubocop/packaging.rb#10
|
|
320
|
-
RuboCop::Packaging::CONFIG = T.let(T.unsafe(nil), Hash)
|
|
321
|
-
|
|
322
|
-
# source://rubocop-packaging//lib/rubocop/packaging.rb#9
|
|
323
|
-
RuboCop::Packaging::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
|
|
324
|
-
|
|
325
|
-
# Because RuboCop doesn't yet support plugins, we have to monkey patch in a
|
|
326
|
-
# bit of our configuration.
|
|
327
|
-
#
|
|
328
|
-
# source://rubocop-packaging//lib/rubocop/packaging/inject.rb#7
|
|
329
|
-
module RuboCop::Packaging::Inject
|
|
330
|
-
class << self
|
|
331
|
-
# source://rubocop-packaging//lib/rubocop/packaging/inject.rb#8
|
|
332
|
-
def defaults!; end
|
|
333
|
-
end
|
|
334
|
-
end
|
|
335
|
-
|
|
336
|
-
# This helper module extracts the methods which can be used
|
|
337
|
-
# in other cop classes.
|
|
338
|
-
#
|
|
339
|
-
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#7
|
|
340
|
-
module RuboCop::Packaging::LibHelperModule
|
|
341
|
-
# This method determines if that call is made *from* the "lib" directory.
|
|
342
|
-
#
|
|
343
|
-
# @return [Boolean]
|
|
344
|
-
#
|
|
345
|
-
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#25
|
|
346
|
-
def inspected_file_falls_in_lib?; end
|
|
347
|
-
|
|
348
|
-
# This method determines if that call is made *from* the "gemspec" file.
|
|
349
|
-
#
|
|
350
|
-
# @return [Boolean]
|
|
351
|
-
#
|
|
352
|
-
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#30
|
|
353
|
-
def inspected_file_is_gemspec?; end
|
|
354
|
-
|
|
355
|
-
# This method determines if the inspected file is not in lib/ or
|
|
356
|
-
# isn't a gemspec file.
|
|
357
|
-
#
|
|
358
|
-
# @return [Boolean]
|
|
359
|
-
#
|
|
360
|
-
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#36
|
|
361
|
-
def inspected_file_is_not_in_lib_or_gemspec?; end
|
|
362
|
-
|
|
363
|
-
# For determining the root directory of the project.
|
|
364
|
-
#
|
|
365
|
-
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#9
|
|
366
|
-
def root_dir; end
|
|
367
|
-
|
|
368
|
-
# This method determines if the calls are made to the "lib" directory.
|
|
369
|
-
#
|
|
370
|
-
# @return [Boolean]
|
|
371
|
-
#
|
|
372
|
-
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#14
|
|
373
|
-
def target_falls_in_lib?(str); end
|
|
374
|
-
|
|
375
|
-
# This method determines if the calls (using the __FILE__ argument)
|
|
376
|
-
# are made to the "lib" directory.
|
|
377
|
-
#
|
|
378
|
-
# @return [Boolean]
|
|
379
|
-
#
|
|
380
|
-
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#20
|
|
381
|
-
def target_falls_in_lib_using_file?(str); end
|
|
382
|
-
end
|
|
383
|
-
|
|
384
|
-
# source://rubocop-packaging//lib/rubocop/packaging.rb#8
|
|
385
|
-
RuboCop::Packaging::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
|
|
386
|
-
|
|
387
|
-
# source://rubocop-packaging//lib/rubocop/packaging/version.rb#5
|
|
388
|
-
RuboCop::Packaging::VERSION = T.let(T.unsafe(nil), String)
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
|
|
3
|
-
# DO NOT EDIT MANUALLY
|
|
4
|
-
# This is an autogenerated file for types exported from the `rubocop-performance` gem.
|
|
5
|
-
# Please instead update this file by running `bin/tapioca gem rubocop-performance`.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# THIS IS AN EMPTY RBI FILE.
|
|
9
|
-
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|