sorbet-rails 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -2
- data/.travis.yml +7 -1
- data/CONTRIBUTING.md +3 -1
- data/Gemfile +11 -0
- data/README.md +0 -2
- data/{rbi → lib/sorbet-rails/rbi}/activerecord.rbi +118 -86
- data/lib/sorbet-rails/tasks/rails_rbi.rake +15 -6
- data/lib/sorbet-rails/utils.rb +11 -0
- data/sorbet-rails.gemspec +1 -1
- data/spec/bin/run_all_specs.sh +3 -2
- data/spec/bin/run_spec.sh +33 -26
- data/spec/model_rbi_formatter_spec.rb +0 -15
- data/spec/rails_helper.rb +12 -7
- data/spec/rake_rails_rbi_models_spec.rb +22 -5
- data/spec/rake_rails_rbi_routes_spec.rb +0 -1
- data/spec/sorbet_spec.rb +80 -0
- data/spec/support/rails_shared/config/routes.rb +1 -0
- data/spec/support/rails_shared/sorbet_test_cases.rb +120 -0
- data/spec/support/rails_symlinks/sorbet_test_cases.rb +1 -0
- data/spec/support/v4.2/Gemfile +13 -0
- data/spec/support/v4.2/Gemfile.lock +138 -0
- data/spec/support/v4.2/app/controllers/application_controller.rb +1 -0
- data/spec/support/v4.2/app/helpers/application_helper.rb +1 -0
- data/spec/support/v4.2/config/application.rb +1 -0
- data/spec/support/v4.2/config/boot.rb +1 -0
- data/spec/support/v4.2/config/environment.rb +1 -0
- data/spec/support/v4.2/config/environments/development.rb +1 -0
- data/spec/support/v4.2/config/environments/production.rb +1 -0
- data/spec/support/v4.2/config/environments/test.rb +1 -0
- data/spec/support/v4.2/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/support/v4.2/config/initializers/cookies_serializer.rb +1 -0
- data/spec/support/v4.2/config/initializers/filter_parameter_logging.rb +1 -0
- data/spec/support/v4.2/config/initializers/inflections.rb +1 -0
- data/spec/support/v4.2/config/initializers/mime_types.rb +1 -0
- data/spec/support/v4.2/config/initializers/session_store.rb +1 -0
- data/spec/support/v4.2/config/initializers/to_time_preserves_timezone.rb +1 -0
- data/spec/support/v4.2/config/initializers/wrap_parameters.rb +1 -0
- data/spec/support/v4.2/config/routes.rb +1 -0
- data/spec/support/v4.2/db/migrate/20190620001234_create_wizards.rb +1 -0
- data/spec/support/v4.2/db/migrate/20190620003037_create_wands.rb +1 -0
- data/spec/support/v4.2/db/migrate/20190620003739_create_spell_books.rb +1 -0
- data/spec/support/v4.2/db/migrate/20190622000000_add_more_column_types_to_wands.rb +1 -0
- data/spec/support/v4.2/db/schema.rb +1 -0
- data/spec/support/v4.2/db/seeds.rb +1 -0
- data/spec/support/v4.2/sorbet/config +2 -0
- data/spec/support/v4.2/sorbet/rbi/gems/actionmailer.rbi +267 -0
- data/spec/support/v4.2/sorbet/rbi/gems/actionpack.rbi +2885 -0
- data/spec/support/v4.2/sorbet/rbi/gems/actionview.rbi +978 -0
- data/spec/support/v4.2/sorbet/rbi/gems/activejob.rbi +19 -0
- data/spec/support/v4.2/sorbet/rbi/gems/activemodel.rbi +335 -0
- data/spec/support/v4.2/sorbet/rbi/gems/activerecord.rbi +3382 -0
- data/spec/support/v4.2/sorbet/rbi/gems/activesupport.rbi +1892 -0
- data/spec/support/v4.2/sorbet/rbi/gems/arel.rbi +1109 -0
- data/spec/support/v4.2/sorbet/rbi/gems/binding_of_caller.rbi +22 -0
- data/spec/support/v4.2/sorbet/rbi/gems/byebug.rbi +1039 -0
- data/spec/support/v4.2/sorbet/rbi/gems/concurrent-ruby.rbi +218 -0
- data/spec/support/v4.2/sorbet/rbi/gems/crass.rbi +92 -0
- data/spec/support/v4.2/sorbet/rbi/gems/debug_inspector.rbi +18 -0
- data/spec/support/v4.2/sorbet/rbi/gems/erubis.rbi +265 -0
- data/spec/support/v4.2/sorbet/rbi/gems/globalid.rbi +98 -0
- data/spec/support/v4.2/sorbet/rbi/gems/i18n.rbi +186 -0
- data/spec/support/v4.2/sorbet/rbi/gems/jbuilder.rbi +99 -0
- data/spec/support/v4.2/sorbet/rbi/gems/loofah.rbi +129 -0
- data/spec/support/v4.2/sorbet/rbi/gems/mail.rbi +1091 -0
- data/spec/support/v4.2/sorbet/rbi/gems/mini_mime.rbi +45 -0
- data/spec/support/v4.2/sorbet/rbi/gems/minitest.rbi +276 -0
- data/spec/support/v4.2/sorbet/rbi/gems/nokogiri.rbi +1010 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rack-test.rbi +145 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rack.rbi +490 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rails-deprecated_sanitizer.rbi +13 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rails-dom-testing.rbi +76 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rails-html-sanitizer.rbi +90 -0
- data/spec/support/v4.2/sorbet/rbi/gems/railties.rbi +623 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rdoc.rbi +1053 -0
- data/spec/support/v4.2/sorbet/rbi/gems/sdoc.rbi +73 -0
- data/spec/support/v4.2/sorbet/rbi/gems/sorbet-runtime.rbi +647 -0
- data/spec/support/v4.2/sorbet/rbi/gems/sqlite3.rbi +345 -0
- data/spec/support/v4.2/sorbet/rbi/gems/thor.rbi +401 -0
- data/spec/support/v4.2/sorbet/rbi/gems/thread_safe.rbi +81 -0
- data/spec/support/v4.2/sorbet/rbi/gems/tzinfo.rbi +407 -0
- data/spec/support/v4.2/sorbet/rbi/gems/web-console.rbi +136 -0
- data/spec/support/v4.2/sorbet/rbi/hidden-definitions/errors.txt +11998 -0
- data/spec/support/v4.2/sorbet/rbi/hidden-definitions/hidden.rbi +27774 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +13 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +51 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +107 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8547 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +22 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/spec/support/v4.2/sorbet/rbi/todo.rbi +8 -0
- data/spec/support/v4.2/sorbet_test_cases.rb +1 -0
- data/spec/support/v4.2/test/test_helper.rb +1 -0
- data/spec/support/v5.0/Gemfile +13 -0
- data/spec/support/v5.0/Gemfile.lock +130 -0
- data/spec/support/v5.0/app/channels/application_cable/channel.rb +1 -0
- data/spec/support/v5.0/app/channels/application_cable/connection.rb +1 -0
- data/spec/support/v5.0/app/jobs/application_job.rb +1 -0
- data/spec/support/v5.0/app/mailers/application_mailer.rb +1 -0
- data/spec/support/v5.0/config/application.rb +1 -0
- data/spec/support/v5.0/config/boot.rb +1 -0
- data/spec/support/v5.0/config/environment.rb +1 -0
- data/spec/support/v5.0/config/environments/development.rb +1 -0
- data/spec/support/v5.0/config/environments/production.rb +1 -0
- data/spec/support/v5.0/config/environments/test.rb +1 -0
- data/spec/support/v5.0/config/initializers/application_controller_renderer.rb +1 -0
- data/spec/support/v5.0/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/support/v5.0/config/initializers/cors.rb +1 -0
- data/spec/support/v5.0/config/initializers/filter_parameter_logging.rb +1 -0
- data/spec/support/v5.0/config/initializers/inflections.rb +1 -0
- data/spec/support/v5.0/config/initializers/mime_types.rb +1 -0
- data/spec/support/v5.0/config/initializers/new_framework_defaults.rb +1 -0
- data/spec/support/v5.0/config/initializers/wrap_parameters.rb +1 -0
- data/spec/support/v5.0/config/puma.rb +1 -0
- data/spec/support/v5.0/config/routes.rb +1 -0
- data/spec/support/v5.0/db/schema.rb +1 -0
- data/spec/support/v5.0/db/seeds.rb +1 -0
- data/spec/support/v5.0/rails_symlinks/config/routes.rb +1 -0
- data/spec/support/v5.0/sorbet/config +2 -0
- data/spec/support/v5.0/sorbet/rbi/gems/actioncable.rbi +309 -0
- data/spec/support/v5.0/sorbet/rbi/gems/actionmailer.rbi +379 -0
- data/spec/support/v5.0/sorbet/rbi/gems/actionpack.rbi +3150 -0
- data/spec/support/v5.0/sorbet/rbi/gems/actionview.rbi +1093 -0
- data/spec/support/v5.0/sorbet/rbi/gems/activejob.rbi +252 -0
- data/spec/support/v5.0/sorbet/rbi/gems/activemodel.rbi +562 -0
- data/spec/support/v5.0/sorbet/rbi/gems/activerecord.rbi +4060 -0
- data/spec/support/v5.0/sorbet/rbi/gems/activesupport.rbi +2078 -0
- data/spec/support/v5.0/sorbet/rbi/gems/arel.rbi +1222 -0
- data/spec/support/v5.0/sorbet/rbi/gems/byebug.rbi +1039 -0
- data/spec/support/v5.0/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
- data/spec/support/v5.0/sorbet/rbi/gems/crass.rbi +92 -0
- data/spec/support/v5.0/sorbet/rbi/gems/erubis.rbi +265 -0
- data/spec/support/v5.0/sorbet/rbi/gems/globalid.rbi +98 -0
- data/spec/support/v5.0/sorbet/rbi/gems/i18n.rbi +191 -0
- data/spec/support/v5.0/sorbet/rbi/gems/loofah.rbi +129 -0
- data/spec/support/v5.0/sorbet/rbi/gems/mail.rbi +1091 -0
- data/spec/support/v5.0/sorbet/rbi/gems/method_source.rbi +63 -0
- data/spec/support/v5.0/sorbet/rbi/gems/mini_mime.rbi +45 -0
- data/spec/support/v5.0/sorbet/rbi/gems/minitest.rbi +276 -0
- data/spec/support/v5.0/sorbet/rbi/gems/nokogiri.rbi +1010 -0
- data/spec/support/v5.0/sorbet/rbi/gems/puma.rbi +570 -0
- data/spec/support/v5.0/sorbet/rbi/gems/rack-test.rbi +145 -0
- data/spec/support/v5.0/sorbet/rbi/gems/rack.rbi +534 -0
- data/spec/support/v5.0/sorbet/rbi/gems/rails-dom-testing.rbi +67 -0
- data/spec/support/v5.0/sorbet/rbi/gems/rails-html-sanitizer.rbi +90 -0
- data/spec/support/v5.0/sorbet/rbi/gems/railties.rbi +682 -0
- data/spec/support/v5.0/sorbet/rbi/gems/rake.rbi +255 -0
- data/spec/support/v5.0/sorbet/rbi/gems/sorbet-runtime.rbi +647 -0
- data/spec/support/v5.0/sorbet/rbi/gems/sqlite3.rbi +345 -0
- data/spec/support/v5.0/sorbet/rbi/gems/thor.rbi +401 -0
- data/spec/support/v5.0/sorbet/rbi/gems/thread_safe.rbi +81 -0
- data/spec/support/v5.0/sorbet/rbi/gems/tzinfo.rbi +407 -0
- data/spec/support/v5.0/sorbet/rbi/hidden-definitions/errors.txt +10523 -0
- data/spec/support/v5.0/sorbet/rbi/hidden-definitions/hidden.rbi +24969 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +13 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +51 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +107 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8547 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +22 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/spec/support/v5.0/sorbet/rbi/todo.rbi +10 -0
- data/spec/support/v5.0/sorbet_test_cases.rb +1 -0
- data/spec/support/v5.0/test/test_helper.rb +1 -0
- data/spec/support/v5.1/Gemfile +13 -0
- data/spec/support/v5.1/Gemfile.lock +15 -20
- data/spec/support/v5.1/app/channels/application_cable/channel.rb +1 -0
- data/spec/support/v5.1/app/channels/application_cable/connection.rb +1 -0
- data/spec/support/v5.1/app/jobs/application_job.rb +1 -0
- data/spec/support/v5.1/app/mailers/application_mailer.rb +1 -0
- data/spec/support/v5.1/bin/rails +0 -5
- data/spec/support/v5.1/bin/rake +0 -5
- data/spec/support/v5.1/config/application.rb +1 -0
- data/spec/support/v5.1/config/boot.rb +1 -0
- data/spec/support/v5.1/config/environment.rb +1 -0
- data/spec/support/v5.1/config/environments/development.rb +2 -1
- data/spec/support/v5.1/config/environments/production.rb +1 -0
- data/spec/support/v5.1/config/environments/test.rb +1 -0
- data/spec/support/v5.1/config/initializers/application_controller_renderer.rb +1 -0
- data/spec/support/v5.1/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/support/v5.1/config/initializers/cors.rb +1 -0
- data/spec/support/v5.1/config/initializers/filter_parameter_logging.rb +1 -0
- data/spec/support/v5.1/config/initializers/inflections.rb +1 -0
- data/spec/support/v5.1/config/initializers/mime_types.rb +1 -0
- data/spec/support/v5.1/config/initializers/wrap_parameters.rb +1 -0
- data/spec/support/v5.1/config/puma.rb +1 -0
- data/spec/support/v5.1/config/spring.rb +1 -0
- data/spec/support/v5.1/db/schema.rb +1 -0
- data/spec/support/v5.1/db/seeds.rb +1 -0
- data/spec/support/v5.1/sorbet/config +2 -0
- data/spec/support/v5.1/sorbet/rbi/gems/actioncable.rbi +309 -0
- data/spec/support/v5.1/sorbet/rbi/gems/actionmailer.rbi +429 -0
- data/spec/support/v5.1/sorbet/rbi/gems/actionpack.rbi +3171 -0
- data/spec/support/v5.1/sorbet/rbi/gems/actionview.rbi +1115 -0
- data/spec/support/v5.1/sorbet/rbi/gems/activejob.rbi +273 -0
- data/spec/support/v5.1/sorbet/rbi/gems/activemodel.rbi +547 -0
- data/spec/support/v5.1/sorbet/rbi/gems/activerecord.rbi +4093 -0
- data/spec/support/v5.1/sorbet/rbi/gems/activesupport.rbi +2180 -0
- data/spec/support/v5.1/sorbet/rbi/gems/arel.rbi +1220 -0
- data/spec/support/v5.1/sorbet/rbi/gems/byebug.rbi +1039 -0
- data/spec/support/v5.1/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
- data/spec/support/v5.1/sorbet/rbi/gems/crass.rbi +92 -0
- data/spec/support/v5.1/sorbet/rbi/gems/erubi.rbi +26 -0
- data/spec/support/v5.1/sorbet/rbi/gems/globalid.rbi +98 -0
- data/spec/support/v5.1/sorbet/rbi/gems/i18n.rbi +191 -0
- data/spec/support/v5.1/sorbet/rbi/gems/loofah.rbi +129 -0
- data/spec/support/v5.1/sorbet/rbi/gems/mail.rbi +1091 -0
- data/spec/support/v5.1/sorbet/rbi/gems/method_source.rbi +63 -0
- data/spec/support/v5.1/sorbet/rbi/gems/mini_mime.rbi +45 -0
- data/spec/support/v5.1/sorbet/rbi/gems/minitest.rbi +276 -0
- data/spec/support/v5.1/sorbet/rbi/gems/nokogiri.rbi +1010 -0
- data/spec/support/v5.1/sorbet/rbi/gems/puma.rbi +570 -0
- data/spec/support/v5.1/sorbet/rbi/gems/rack-test.rbi +161 -0
- data/spec/support/v5.1/sorbet/rbi/gems/rack.rbi +534 -0
- data/spec/support/v5.1/sorbet/rbi/gems/rails-dom-testing.rbi +67 -0
- data/spec/support/v5.1/sorbet/rbi/gems/rails-html-sanitizer.rbi +90 -0
- data/spec/support/v5.1/sorbet/rbi/gems/railties.rbi +707 -0
- data/spec/support/v5.1/sorbet/rbi/gems/rake.rbi +255 -0
- data/spec/support/v5.1/sorbet/rbi/gems/sorbet-runtime.rbi +647 -0
- data/spec/support/v5.1/sorbet/rbi/gems/sqlite3.rbi +345 -0
- data/spec/support/v5.1/sorbet/rbi/gems/thor.rbi +450 -0
- data/spec/support/v5.1/sorbet/rbi/gems/thread_safe.rbi +81 -0
- data/spec/support/v5.1/sorbet/rbi/gems/tzinfo.rbi +407 -0
- data/spec/support/v5.1/sorbet/rbi/hidden-definitions/errors.txt +10226 -0
- data/spec/support/v5.1/sorbet/rbi/hidden-definitions/hidden.rbi +24635 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +13 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +51 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +107 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8547 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +22 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/spec/support/v5.1/sorbet/rbi/todo.rbi +11 -0
- data/spec/support/v5.1/sorbet_test_cases.rb +1 -0
- data/spec/support/v5.1/test/test_helper.rb +1 -0
- data/spec/support/v5.2/Gemfile +12 -0
- data/spec/support/v5.2/Gemfile.lock +12 -0
- data/spec/support/v5.2/app/channels/application_cable/channel.rb +1 -0
- data/spec/support/v5.2/app/channels/application_cable/connection.rb +1 -0
- data/spec/support/v5.2/app/jobs/application_job.rb +1 -0
- data/spec/support/v5.2/app/mailers/application_mailer.rb +1 -0
- data/spec/support/v5.2/bin/rails +0 -5
- data/spec/support/v5.2/bin/rake +0 -5
- data/spec/support/v5.2/config/application.rb +1 -0
- data/spec/support/v5.2/config/boot.rb +1 -0
- data/spec/support/v5.2/config/environment.rb +1 -0
- data/spec/support/v5.2/config/environments/development.rb +1 -0
- data/spec/support/v5.2/config/environments/production.rb +1 -0
- data/spec/support/v5.2/config/environments/test.rb +1 -0
- data/spec/support/v5.2/config/initializers/application_controller_renderer.rb +1 -0
- data/spec/support/v5.2/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/support/v5.2/config/initializers/cors.rb +1 -0
- data/spec/support/v5.2/config/initializers/filter_parameter_logging.rb +1 -0
- data/spec/support/v5.2/config/initializers/inflections.rb +1 -0
- data/spec/support/v5.2/config/initializers/mime_types.rb +1 -0
- data/spec/support/v5.2/config/initializers/wrap_parameters.rb +1 -0
- data/spec/support/v5.2/config/puma.rb +1 -0
- data/spec/support/v5.2/config/spring.rb +1 -0
- data/spec/support/v5.2/db/schema.rb +1 -0
- data/spec/support/v5.2/db/seeds.rb +1 -0
- data/spec/support/v5.2/sorbet/rbi/gems/sorbet-runtime.rbi +644 -0
- data/spec/support/v5.2/sorbet/rbi/hidden-definitions/errors.txt +12 -6
- data/spec/support/v5.2/sorbet/rbi/hidden-definitions/hidden.rbi +57 -19
- data/spec/support/v5.2/sorbet_test_cases.rb +1 -0
- data/spec/support/v5.2/test/test_helper.rb +1 -0
- data/spec/support/v5.2-no-sorbet/Gemfile +57 -0
- data/spec/support/v5.2-no-sorbet/Gemfile.lock +140 -0
- data/spec/support/v5.2-no-sorbet/README.md +24 -0
- data/spec/support/v5.2-no-sorbet/Rakefile +6 -0
- data/spec/support/v5.2-no-sorbet/app/channels/application_cable/channel.rb +5 -0
- data/spec/support/v5.2-no-sorbet/app/channels/application_cable/connection.rb +5 -0
- data/spec/support/v5.2-no-sorbet/app/controllers +1 -0
- data/spec/support/v5.2-no-sorbet/app/jobs/application_job.rb +3 -0
- data/spec/support/v5.2-no-sorbet/app/mailers/application_mailer.rb +5 -0
- data/spec/support/v5.2-no-sorbet/app/models +1 -0
- data/spec/support/v5.2-no-sorbet/app/views/layouts/mailer.html.erb +13 -0
- data/spec/support/v5.2-no-sorbet/app/views/layouts/mailer.text.erb +1 -0
- data/spec/support/v5.2-no-sorbet/bin/bundle +3 -0
- data/spec/support/v5.2-no-sorbet/bin/rails +4 -0
- data/spec/support/v5.2-no-sorbet/bin/rake +4 -0
- data/spec/support/v5.2-no-sorbet/bin/setup +33 -0
- data/spec/support/v5.2-no-sorbet/bin/spring +17 -0
- data/spec/support/v5.2-no-sorbet/bin/update +28 -0
- data/spec/support/v5.2-no-sorbet/config/application.rb +36 -0
- data/spec/support/v5.2-no-sorbet/config/boot.rb +4 -0
- data/spec/support/v5.2-no-sorbet/config/cable.yml +10 -0
- data/spec/support/v5.2-no-sorbet/config/credentials.yml.enc +1 -0
- data/spec/support/v5.2-no-sorbet/config/database.yml +25 -0
- data/spec/support/v5.2-no-sorbet/config/environment.rb +6 -0
- data/spec/support/v5.2-no-sorbet/config/environments/development.rb +55 -0
- data/spec/support/v5.2-no-sorbet/config/environments/production.rb +86 -0
- data/spec/support/v5.2-no-sorbet/config/environments/test.rb +47 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/application_controller_renderer.rb +9 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/backtrace_silencers.rb +8 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/cors.rb +17 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/filter_parameter_logging.rb +5 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/inflections.rb +17 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/mime_types.rb +5 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/wrap_parameters.rb +15 -0
- data/spec/support/v5.2-no-sorbet/config/locales/en.yml +33 -0
- data/spec/support/v5.2-no-sorbet/config/puma.rb +35 -0
- data/spec/support/v5.2-no-sorbet/config/routes.rb +1 -0
- data/spec/support/v5.2-no-sorbet/config/spring.rb +7 -0
- data/spec/support/v5.2-no-sorbet/config/storage.yml +34 -0
- data/spec/support/v5.2-no-sorbet/config.ru +5 -0
- data/spec/support/v5.2-no-sorbet/db/migrate +1 -0
- data/spec/support/v5.2-no-sorbet/db/schema.rb +48 -0
- data/spec/support/v5.2-no-sorbet/db/seeds.rb +8 -0
- data/spec/support/v5.2-no-sorbet/lib/tasks/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/log/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/public/robots.txt +1 -0
- data/spec/support/v5.2-no-sorbet/storage/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/controllers/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/fixtures/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/fixtures/files/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/integration/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/mailers/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/models/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/test_helper.rb +11 -0
- data/spec/support/v5.2-no-sorbet/tmp/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/vendor/.keep +0 -0
- data/spec/support/v6.0/Gemfile +12 -0
- data/spec/support/v6.0/Gemfile.lock +157 -0
- data/spec/support/v6.0/app/channels/application_cable/channel.rb +1 -0
- data/spec/support/v6.0/app/channels/application_cable/connection.rb +1 -0
- data/spec/support/v6.0/app/jobs/application_job.rb +1 -0
- data/spec/support/v6.0/app/mailers/application_mailer.rb +1 -0
- data/spec/support/v6.0/config/application.rb +1 -0
- data/spec/support/v6.0/config/boot.rb +1 -0
- data/spec/support/v6.0/config/environment.rb +1 -0
- data/spec/support/v6.0/config/environments/development.rb +1 -0
- data/spec/support/v6.0/config/environments/production.rb +1 -0
- data/spec/support/v6.0/config/environments/test.rb +1 -0
- data/spec/support/v6.0/config/initializers/application_controller_renderer.rb +1 -0
- data/spec/support/v6.0/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/support/v6.0/config/initializers/cors.rb +1 -0
- data/spec/support/v6.0/config/initializers/filter_parameter_logging.rb +1 -0
- data/spec/support/v6.0/config/initializers/inflections.rb +1 -0
- data/spec/support/v6.0/config/initializers/mime_types.rb +1 -0
- data/spec/support/v6.0/config/initializers/wrap_parameters.rb +1 -0
- data/spec/support/v6.0/config/puma.rb +1 -0
- data/spec/support/v6.0/config/routes.rb +1 -0
- data/spec/support/v6.0/db/schema.rb +1 -0
- data/spec/support/v6.0/db/seeds.rb +1 -0
- data/spec/support/v6.0/sorbet/config +2 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actioncable.rbi +245 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actionmailbox.rbi +56 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actionmailer.rbi +69 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actionpack.rbi +2401 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actiontext.rbi +32 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actionview.rbi +1033 -0
- data/spec/support/v6.0/sorbet/rbi/gems/activejob.rbi +362 -0
- data/spec/support/v6.0/sorbet/rbi/gems/activemodel.rbi +750 -0
- data/spec/support/v6.0/sorbet/rbi/gems/activerecord.rbi +5552 -0
- data/spec/support/v6.0/sorbet/rbi/gems/activestorage.rbi +217 -0
- data/spec/support/v6.0/sorbet/rbi/gems/activesupport.rbi +2430 -0
- data/spec/support/v6.0/sorbet/rbi/gems/byebug.rbi +1039 -0
- data/spec/support/v6.0/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
- data/spec/support/v6.0/sorbet/rbi/gems/crass.rbi +92 -0
- data/spec/support/v6.0/sorbet/rbi/gems/erubi.rbi +26 -0
- data/spec/support/v6.0/sorbet/rbi/gems/globalid.rbi +98 -0
- data/spec/support/v6.0/sorbet/rbi/gems/i18n.rbi +191 -0
- data/spec/support/v6.0/sorbet/rbi/gems/loofah.rbi +129 -0
- data/spec/support/v6.0/sorbet/rbi/gems/mail.rbi +1542 -0
- data/spec/support/v6.0/sorbet/rbi/gems/marcel.rbi +12 -0
- data/spec/support/v6.0/sorbet/rbi/gems/method_source.rbi +63 -0
- data/spec/support/v6.0/sorbet/rbi/gems/mini_mime.rbi +45 -0
- data/spec/support/v6.0/sorbet/rbi/gems/minitest.rbi +276 -0
- data/spec/support/v6.0/sorbet/rbi/gems/nokogiri.rbi +1010 -0
- data/spec/support/v6.0/sorbet/rbi/gems/puma.rbi +570 -0
- data/spec/support/v6.0/sorbet/rbi/gems/rack-test.rbi +161 -0
- data/spec/support/v6.0/sorbet/rbi/gems/rack.rbi +522 -0
- data/spec/support/v6.0/sorbet/rbi/gems/rails-dom-testing.rbi +67 -0
- data/spec/support/v6.0/sorbet/rbi/gems/rails-html-sanitizer.rbi +90 -0
- data/spec/support/v6.0/sorbet/rbi/gems/railties.rbi +760 -0
- data/spec/support/v6.0/sorbet/rbi/gems/rake.rbi +254 -0
- data/spec/support/v6.0/sorbet/rbi/gems/sorbet-runtime.rbi +647 -0
- data/spec/support/v6.0/sorbet/rbi/gems/sqlite3.rbi +353 -0
- data/spec/support/v6.0/sorbet/rbi/gems/thor.rbi +450 -0
- data/spec/support/v6.0/sorbet/rbi/gems/thread_safe.rbi +81 -0
- data/spec/support/v6.0/sorbet/rbi/gems/tzinfo.rbi +407 -0
- data/spec/support/v6.0/sorbet/rbi/gems/zeitwerk.rbi +119 -0
- data/spec/support/v6.0/sorbet/rbi/hidden-definitions/errors.txt +12074 -0
- data/spec/support/v6.0/sorbet/rbi/hidden-definitions/hidden.rbi +28231 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +13 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +51 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +107 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8547 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +22 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/spec/support/v6.0/sorbet/rbi/todo.rbi +11 -0
- data/spec/support/v6.0/sorbet_test_cases.rb +1 -0
- data/spec/support/v6.0/test/channels/application_cable/connection_test.rb +1 -0
- data/spec/support/v6.0/test/test_helper.rb +1 -0
- data/spec/test_data/v4.2/expected_srb_tc_output.txt +178 -0
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +155 -0
- data/spec/test_data/v5.0/expected_schema_migration.rbi +128 -0
- data/spec/test_data/v5.0/expected_srb_tc_output.txt +178 -0
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +161 -0
- data/spec/test_data/v5.1/expected_schema_migration.rbi +134 -0
- data/spec/test_data/v5.1/expected_srb_tc_output.txt +160 -0
- data/spec/test_data/v5.2/expected_attachment.rbi +137 -0
- data/spec/test_data/v5.2/expected_blob.rbi +149 -0
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +161 -0
- data/spec/test_data/v5.2/expected_schema_migration.rbi +134 -0
- data/spec/test_data/v5.2/expected_srb_tc_output.txt +160 -0
- data/spec/test_data/v5.2-no-sorbet/expected_attachment.rbi +137 -0
- data/spec/test_data/v5.2-no-sorbet/expected_blob.rbi +149 -0
- data/spec/test_data/v5.2-no-sorbet/expected_internal_metadata.rbi +161 -0
- data/spec/test_data/v5.2-no-sorbet/expected_no_routes.rbi +11 -0
- data/spec/test_data/v5.2-no-sorbet/expected_potion.rbi +128 -0
- data/spec/test_data/v5.2-no-sorbet/expected_routes.rbi +43 -0
- data/spec/test_data/v5.2-no-sorbet/expected_schema_migration.rbi +134 -0
- data/spec/test_data/v5.2-no-sorbet/expected_spell_book.rbi +161 -0
- data/spec/test_data/v5.2-no-sorbet/expected_srb_tc_output.txt +160 -0
- data/spec/test_data/v5.2-no-sorbet/expected_wand.rbi +311 -0
- data/spec/test_data/v5.2-no-sorbet/expected_wizard.rbi +254 -0
- data/spec/test_data/v5.2-no-sorbet/expected_wizard_wo_spellbook.rbi +254 -0
- data/spec/test_data/v6.0/expected_attachment.rbi +149 -0
- data/spec/test_data/v6.0/expected_blob.rbi +161 -0
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +173 -0
- data/spec/test_data/v6.0/expected_schema_migration.rbi +146 -0
- data/spec/test_data/v6.0/expected_srb_tc_output.txt +160 -0
- data/spec/utils_spec.rb +24 -0
- metadata +573 -2
@@ -0,0 +1,450 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/thor/all/thor.rbi
|
9
|
+
#
|
10
|
+
# thor-0.20.3
|
11
|
+
class Thor
|
12
|
+
def self.banner(command, namespace = nil, subcommand = nil); end
|
13
|
+
def self.baseclass; end
|
14
|
+
def self.check_unknown_options!(options = nil); end
|
15
|
+
def self.check_unknown_options?(config); end
|
16
|
+
def self.command_help(shell, command_name); end
|
17
|
+
def self.create_command(meth); end
|
18
|
+
def self.create_task(meth); end
|
19
|
+
def self.default_command(meth = nil); end
|
20
|
+
def self.default_task(meth = nil); end
|
21
|
+
def self.desc(usage, description, options = nil); end
|
22
|
+
def self.disable_required_check!(*command_names); end
|
23
|
+
def self.disable_required_check; end
|
24
|
+
def self.disable_required_check?(command); end
|
25
|
+
def self.dispatch(meth, given_args, given_opts, config); end
|
26
|
+
def self.dynamic_command_class; end
|
27
|
+
def self.find_command_possibilities(meth); end
|
28
|
+
def self.find_task_possibilities(meth); end
|
29
|
+
def self.help(shell, subcommand = nil); end
|
30
|
+
def self.initialize_added; end
|
31
|
+
def self.long_desc(long_description, options = nil); end
|
32
|
+
def self.map(mappings = nil); end
|
33
|
+
def self.method_option(name, options = nil); end
|
34
|
+
def self.method_options(options = nil); end
|
35
|
+
def self.normalize_command_name(meth); end
|
36
|
+
def self.normalize_task_name(meth); end
|
37
|
+
def self.option(name, options = nil); end
|
38
|
+
def self.options(options = nil); end
|
39
|
+
def self.package_name(name, _ = nil); end
|
40
|
+
def self.printable_commands(all = nil, subcommand = nil); end
|
41
|
+
def self.printable_tasks(all = nil, subcommand = nil); end
|
42
|
+
def self.register(klass, subcommand_name, usage, description, options = nil); end
|
43
|
+
def self.retrieve_command_name(args); end
|
44
|
+
def self.retrieve_task_name(args); end
|
45
|
+
def self.stop_on_unknown_option!(*command_names); end
|
46
|
+
def self.stop_on_unknown_option; end
|
47
|
+
def self.stop_on_unknown_option?(command); end
|
48
|
+
def self.subcommand(subcommand, subcommand_class); end
|
49
|
+
def self.subcommand_classes; end
|
50
|
+
def self.subcommand_help(cmd); end
|
51
|
+
def self.subcommands; end
|
52
|
+
def self.subtask(subcommand, subcommand_class); end
|
53
|
+
def self.subtask_help(cmd); end
|
54
|
+
def self.subtasks; end
|
55
|
+
def self.task_help(shell, command_name); end
|
56
|
+
extend Thor::Base::ClassMethods
|
57
|
+
extend Thor::Invocation::ClassMethods
|
58
|
+
include Thor::Base
|
59
|
+
include Thor::Invocation
|
60
|
+
include Thor::Shell
|
61
|
+
end
|
62
|
+
class Anonymous_Struct_17 < Struct
|
63
|
+
def ancestor_name; end
|
64
|
+
def ancestor_name=(_); end
|
65
|
+
def description; end
|
66
|
+
def description=(_); end
|
67
|
+
def long_description; end
|
68
|
+
def long_description=(_); end
|
69
|
+
def name; end
|
70
|
+
def name=(_); end
|
71
|
+
def options; end
|
72
|
+
def options=(_); end
|
73
|
+
def self.[](*arg0); end
|
74
|
+
def self.inspect; end
|
75
|
+
def self.members; end
|
76
|
+
def self.new(*arg0); end
|
77
|
+
def usage; end
|
78
|
+
def usage=(_); end
|
79
|
+
end
|
80
|
+
class Thor::Command < Anonymous_Struct_17
|
81
|
+
def formatted_usage(klass, namespace = nil, subcommand = nil); end
|
82
|
+
def handle_argument_error?(instance, error, caller); end
|
83
|
+
def handle_no_method_error?(instance, error, caller); end
|
84
|
+
def hidden?; end
|
85
|
+
def initialize(name, description, long_description, usage, options = nil); end
|
86
|
+
def initialize_copy(other); end
|
87
|
+
def local_method?(instance, name); end
|
88
|
+
def not_debugging?(instance); end
|
89
|
+
def private_method?(instance); end
|
90
|
+
def public_method?(instance); end
|
91
|
+
def required_options; end
|
92
|
+
def run(instance, args = nil); end
|
93
|
+
def sans_backtrace(backtrace, caller); end
|
94
|
+
end
|
95
|
+
class Thor::HiddenCommand < Thor::Command
|
96
|
+
def hidden?; end
|
97
|
+
end
|
98
|
+
class Thor::DynamicCommand < Thor::Command
|
99
|
+
def initialize(name, options = nil); end
|
100
|
+
def run(instance, args = nil); end
|
101
|
+
end
|
102
|
+
module Thor::CoreExt
|
103
|
+
end
|
104
|
+
class Thor::CoreExt::HashWithIndifferentAccess < Hash
|
105
|
+
def [](key); end
|
106
|
+
def []=(key, value); end
|
107
|
+
def convert_key(key); end
|
108
|
+
def delete(key); end
|
109
|
+
def fetch(key, *args); end
|
110
|
+
def initialize(hash = nil); end
|
111
|
+
def key?(key); end
|
112
|
+
def merge!(other); end
|
113
|
+
def merge(other); end
|
114
|
+
def method_missing(method, *args); end
|
115
|
+
def replace(other_hash); end
|
116
|
+
def reverse_merge!(other_hash); end
|
117
|
+
def reverse_merge(other); end
|
118
|
+
def to_hash; end
|
119
|
+
def values_at(*indices); end
|
120
|
+
end
|
121
|
+
class Thor::CoreExt::OrderedHash < Hash
|
122
|
+
end
|
123
|
+
class Thor::Error < StandardError
|
124
|
+
end
|
125
|
+
class Thor::UndefinedCommandError < Thor::Error
|
126
|
+
def all_commands; end
|
127
|
+
def command; end
|
128
|
+
def initialize(command, all_commands, namespace); end
|
129
|
+
end
|
130
|
+
class Thor::UndefinedCommandError::SpellChecker
|
131
|
+
def corrections; end
|
132
|
+
def error; end
|
133
|
+
def initialize(error); end
|
134
|
+
def spell_checker; end
|
135
|
+
end
|
136
|
+
class Thor::AmbiguousCommandError < Thor::Error
|
137
|
+
end
|
138
|
+
class Thor::InvocationError < Thor::Error
|
139
|
+
end
|
140
|
+
class Thor::UnknownArgumentError < Thor::Error
|
141
|
+
def initialize(switches, unknown); end
|
142
|
+
def switches; end
|
143
|
+
def unknown; end
|
144
|
+
end
|
145
|
+
class Thor::UnknownArgumentError::SpellChecker
|
146
|
+
def corrections; end
|
147
|
+
def error; end
|
148
|
+
def initialize(error); end
|
149
|
+
def spell_checker; end
|
150
|
+
end
|
151
|
+
class Thor::RequiredArgumentMissingError < Thor::InvocationError
|
152
|
+
end
|
153
|
+
class Thor::MalformattedArgumentError < Thor::InvocationError
|
154
|
+
end
|
155
|
+
module Thor::Invocation
|
156
|
+
def _parse_initialization_options(args, opts, config); end
|
157
|
+
def _retrieve_class_and_command(name, sent_command = nil); end
|
158
|
+
def _retrieve_class_and_task(name, sent_command = nil); end
|
159
|
+
def _shared_configuration; end
|
160
|
+
def current_command_chain; end
|
161
|
+
def initialize(args = nil, options = nil, config = nil, &block); end
|
162
|
+
def invoke(name = nil, *args); end
|
163
|
+
def invoke_all; end
|
164
|
+
def invoke_command(command, *args); end
|
165
|
+
def invoke_task(command, *args); end
|
166
|
+
def invoke_with_padding(*args); end
|
167
|
+
def self.included(base); end
|
168
|
+
end
|
169
|
+
module Thor::Invocation::ClassMethods
|
170
|
+
def prepare_for_invocation(key, name); end
|
171
|
+
end
|
172
|
+
class Thor::Argument
|
173
|
+
def banner; end
|
174
|
+
def default; end
|
175
|
+
def default_banner; end
|
176
|
+
def description; end
|
177
|
+
def enum; end
|
178
|
+
def human_name; end
|
179
|
+
def initialize(name, options = nil); end
|
180
|
+
def name; end
|
181
|
+
def required; end
|
182
|
+
def required?; end
|
183
|
+
def show_default?; end
|
184
|
+
def type; end
|
185
|
+
def usage; end
|
186
|
+
def valid_type?(type); end
|
187
|
+
def validate!; end
|
188
|
+
end
|
189
|
+
class Thor::Arguments
|
190
|
+
def check_requirement!; end
|
191
|
+
def current_is_value?; end
|
192
|
+
def initialize(arguments = nil); end
|
193
|
+
def last?; end
|
194
|
+
def no_or_skip?(arg); end
|
195
|
+
def parse(args); end
|
196
|
+
def parse_array(name); end
|
197
|
+
def parse_hash(name); end
|
198
|
+
def parse_numeric(name); end
|
199
|
+
def parse_string(name); end
|
200
|
+
def peek; end
|
201
|
+
def remaining; end
|
202
|
+
def self.parse(*args); end
|
203
|
+
def self.split(args); end
|
204
|
+
def shift; end
|
205
|
+
def unshift(arg); end
|
206
|
+
end
|
207
|
+
class Thor::Option < Thor::Argument
|
208
|
+
def aliases; end
|
209
|
+
def array?; end
|
210
|
+
def boolean?; end
|
211
|
+
def dasherize(str); end
|
212
|
+
def dasherized?; end
|
213
|
+
def group; end
|
214
|
+
def hash?; end
|
215
|
+
def hide; end
|
216
|
+
def human_name; end
|
217
|
+
def initialize(name, options = nil); end
|
218
|
+
def lazy_default; end
|
219
|
+
def numeric?; end
|
220
|
+
def self.parse(key, value); end
|
221
|
+
def string?; end
|
222
|
+
def switch_name; end
|
223
|
+
def undasherize(str); end
|
224
|
+
def usage(padding = nil); end
|
225
|
+
def validate!; end
|
226
|
+
def validate_default_type!; end
|
227
|
+
end
|
228
|
+
class Thor::Options < Thor::Arguments
|
229
|
+
def check_unknown!; end
|
230
|
+
def current_is_switch?; end
|
231
|
+
def current_is_switch_formatted?; end
|
232
|
+
def current_is_value?; end
|
233
|
+
def initialize(hash_options = nil, defaults = nil, stop_on_unknown = nil, disable_required_check = nil); end
|
234
|
+
def normalize_switch(arg); end
|
235
|
+
def parse(args); end
|
236
|
+
def parse_boolean(switch); end
|
237
|
+
def parse_peek(switch, option); end
|
238
|
+
def parsing_options?; end
|
239
|
+
def peek; end
|
240
|
+
def remaining; end
|
241
|
+
def self.to_switches(options); end
|
242
|
+
def switch?(arg); end
|
243
|
+
def switch_option(arg); end
|
244
|
+
end
|
245
|
+
module Thor::Base
|
246
|
+
def args; end
|
247
|
+
def args=(arg0); end
|
248
|
+
def initialize(args = nil, local_options = nil, config = nil); end
|
249
|
+
def options; end
|
250
|
+
def options=(arg0); end
|
251
|
+
def parent_options; end
|
252
|
+
def parent_options=(arg0); end
|
253
|
+
def self.included(base); end
|
254
|
+
def self.register_klass_file(klass); end
|
255
|
+
def self.shell; end
|
256
|
+
def self.shell=(arg0); end
|
257
|
+
def self.subclass_files; end
|
258
|
+
def self.subclasses; end
|
259
|
+
end
|
260
|
+
module Thor::Shell
|
261
|
+
def _shared_configuration; end
|
262
|
+
def ask(*args, &block); end
|
263
|
+
def error(*args, &block); end
|
264
|
+
def file_collision(*args, &block); end
|
265
|
+
def initialize(args = nil, options = nil, config = nil); end
|
266
|
+
def no?(*args, &block); end
|
267
|
+
def print_in_columns(*args, &block); end
|
268
|
+
def print_table(*args, &block); end
|
269
|
+
def print_wrapped(*args, &block); end
|
270
|
+
def say(*args, &block); end
|
271
|
+
def say_status(*args, &block); end
|
272
|
+
def set_color(*args, &block); end
|
273
|
+
def shell; end
|
274
|
+
def shell=(arg0); end
|
275
|
+
def terminal_width(*args, &block); end
|
276
|
+
def with_padding; end
|
277
|
+
def yes?(*args, &block); end
|
278
|
+
end
|
279
|
+
module Thor::LineEditor
|
280
|
+
def self.best_available; end
|
281
|
+
def self.readline(prompt, options = nil); end
|
282
|
+
end
|
283
|
+
class Thor::LineEditor::Basic
|
284
|
+
def echo?; end
|
285
|
+
def get_input; end
|
286
|
+
def initialize(prompt, options); end
|
287
|
+
def options; end
|
288
|
+
def prompt; end
|
289
|
+
def readline; end
|
290
|
+
def self.available?; end
|
291
|
+
end
|
292
|
+
class Thor::LineEditor::Readline < Thor::LineEditor::Basic
|
293
|
+
def add_to_history?; end
|
294
|
+
def completion_options; end
|
295
|
+
def completion_proc; end
|
296
|
+
def readline; end
|
297
|
+
def self.available?; end
|
298
|
+
def use_path_completion?; end
|
299
|
+
end
|
300
|
+
class Thor::LineEditor::Readline::PathCompletion
|
301
|
+
def absolute_matches; end
|
302
|
+
def base_path; end
|
303
|
+
def glob_pattern; end
|
304
|
+
def initialize(text); end
|
305
|
+
def matches; end
|
306
|
+
def relative_matches; end
|
307
|
+
def text; end
|
308
|
+
end
|
309
|
+
module Thor::Sandbox
|
310
|
+
end
|
311
|
+
module Thor::Util
|
312
|
+
def self.camel_case(str); end
|
313
|
+
def self.escape_globs(path); end
|
314
|
+
def self.find_by_namespace(namespace); end
|
315
|
+
def self.find_class_and_command_by_namespace(namespace, fallback = nil); end
|
316
|
+
def self.find_class_and_task_by_namespace(namespace, fallback = nil); end
|
317
|
+
def self.globs_for(path); end
|
318
|
+
def self.load_thorfile(path, content = nil, debug = nil); end
|
319
|
+
def self.namespace_from_thor_class(constant); end
|
320
|
+
def self.namespaces_in_content(contents, file = nil); end
|
321
|
+
def self.ruby_command; end
|
322
|
+
def self.snake_case(str); end
|
323
|
+
def self.thor_classes_in(klass); end
|
324
|
+
def self.thor_root; end
|
325
|
+
def self.thor_root_glob; end
|
326
|
+
def self.user_home; end
|
327
|
+
end
|
328
|
+
module Thor::Base::ClassMethods
|
329
|
+
def all_commands; end
|
330
|
+
def all_tasks; end
|
331
|
+
def argument(name, options = nil); end
|
332
|
+
def arguments; end
|
333
|
+
def attr_accessor(*arg0); end
|
334
|
+
def attr_reader(*arg0); end
|
335
|
+
def attr_writer(*arg0); end
|
336
|
+
def baseclass; end
|
337
|
+
def basename; end
|
338
|
+
def build_option(name, options, scope); end
|
339
|
+
def build_options(options, scope); end
|
340
|
+
def check_default_type!; end
|
341
|
+
def check_default_type; end
|
342
|
+
def check_default_type?; end
|
343
|
+
def check_unknown_options!; end
|
344
|
+
def check_unknown_options; end
|
345
|
+
def check_unknown_options?(config); end
|
346
|
+
def class_option(name, options = nil); end
|
347
|
+
def class_options(options = nil); end
|
348
|
+
def class_options_help(shell, groups = nil); end
|
349
|
+
def commands; end
|
350
|
+
def create_command(meth); end
|
351
|
+
def create_task(meth); end
|
352
|
+
def disable_required_check?(command_name); end
|
353
|
+
def dispatch(command, given_args, given_opts, config); end
|
354
|
+
def exit_on_failure?; end
|
355
|
+
def find_and_refresh_command(name); end
|
356
|
+
def find_and_refresh_task(name); end
|
357
|
+
def from_superclass(method, default = nil); end
|
358
|
+
def group(name = nil); end
|
359
|
+
def handle_argument_error(command, error, args, arity); end
|
360
|
+
def handle_no_command_error(command, has_namespace = nil); end
|
361
|
+
def handle_no_task_error(command, has_namespace = nil); end
|
362
|
+
def inherited(klass); end
|
363
|
+
def initialize_added; end
|
364
|
+
def is_thor_reserved_word?(word, type); end
|
365
|
+
def method_added(meth); end
|
366
|
+
def namespace(name = nil); end
|
367
|
+
def no_commands; end
|
368
|
+
def no_tasks; end
|
369
|
+
def print_options(shell, options, group_name = nil); end
|
370
|
+
def public_command(*names); end
|
371
|
+
def public_task(*names); end
|
372
|
+
def remove_argument(*names); end
|
373
|
+
def remove_class_option(*names); end
|
374
|
+
def remove_command(*names); end
|
375
|
+
def remove_task(*names); end
|
376
|
+
def start(given_args = nil, config = nil); end
|
377
|
+
def stop_on_unknown_option?(command_name); end
|
378
|
+
def strict_args_position!; end
|
379
|
+
def strict_args_position; end
|
380
|
+
def strict_args_position?(config); end
|
381
|
+
def tasks; end
|
382
|
+
end
|
383
|
+
class Thor::Group
|
384
|
+
def self.banner; end
|
385
|
+
def self.baseclass; end
|
386
|
+
def self.class_options_help(shell, groups = nil); end
|
387
|
+
def self.create_command(meth); end
|
388
|
+
def self.create_task(meth); end
|
389
|
+
def self.desc(description = nil); end
|
390
|
+
def self.dispatch(command, given_args, given_opts, config); end
|
391
|
+
def self.get_options_from_invocations(group_options, base_options); end
|
392
|
+
def self.handle_argument_error(command, error, _args, arity); end
|
393
|
+
def self.help(shell); end
|
394
|
+
def self.invocation_blocks; end
|
395
|
+
def self.invocations; end
|
396
|
+
def self.invoke(*names, &block); end
|
397
|
+
def self.invoke_from_option(*names, &block); end
|
398
|
+
def self.printable_commands(*arg0); end
|
399
|
+
def self.printable_tasks(*arg0); end
|
400
|
+
def self.remove_invocation(*names); end
|
401
|
+
def self.self_command; end
|
402
|
+
def self.self_task; end
|
403
|
+
extend Thor::Base::ClassMethods
|
404
|
+
extend Thor::Invocation::ClassMethods
|
405
|
+
include Thor::Base
|
406
|
+
include Thor::Invocation
|
407
|
+
include Thor::Shell
|
408
|
+
end
|
409
|
+
class Thor::Shell::Basic
|
410
|
+
def as_unicode; end
|
411
|
+
def ask(statement, *args); end
|
412
|
+
def ask_filtered(statement, color, options); end
|
413
|
+
def ask_simply(statement, color, options); end
|
414
|
+
def base; end
|
415
|
+
def base=(arg0); end
|
416
|
+
def can_display_colors?; end
|
417
|
+
def dynamic_width; end
|
418
|
+
def dynamic_width_stty; end
|
419
|
+
def dynamic_width_tput; end
|
420
|
+
def error(statement); end
|
421
|
+
def file_collision(destination); end
|
422
|
+
def file_collision_help; end
|
423
|
+
def git_merge_tool; end
|
424
|
+
def indent(count = nil); end
|
425
|
+
def initialize; end
|
426
|
+
def is?(value); end
|
427
|
+
def lookup_color(color); end
|
428
|
+
def merge(destination, content); end
|
429
|
+
def merge_tool; end
|
430
|
+
def mute; end
|
431
|
+
def mute?; end
|
432
|
+
def no?(statement, color = nil); end
|
433
|
+
def padding; end
|
434
|
+
def padding=(value); end
|
435
|
+
def prepare_message(message, *color); end
|
436
|
+
def print_in_columns(array); end
|
437
|
+
def print_table(array, options = nil); end
|
438
|
+
def print_wrapped(message, options = nil); end
|
439
|
+
def quiet?; end
|
440
|
+
def say(message = nil, color = nil, force_new_line = nil); end
|
441
|
+
def say_status(status, message, log_status = nil); end
|
442
|
+
def set_color(string, *arg1); end
|
443
|
+
def show_diff(destination, content); end
|
444
|
+
def stderr; end
|
445
|
+
def stdout; end
|
446
|
+
def terminal_width; end
|
447
|
+
def truncate(string, width); end
|
448
|
+
def unix?; end
|
449
|
+
def yes?(statement, color = nil); end
|
450
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/thread_safe/all/thread_safe.rbi
|
9
|
+
#
|
10
|
+
# thread_safe-0.3.6
|
11
|
+
module ThreadSafe
|
12
|
+
end
|
13
|
+
module Threadsafe
|
14
|
+
def self.const_missing(name); end
|
15
|
+
end
|
16
|
+
class SynchronizedDelegator < SimpleDelegator
|
17
|
+
def initialize(obj); end
|
18
|
+
def method_missing(method, *args, &block); end
|
19
|
+
def setup; end
|
20
|
+
def teardown; end
|
21
|
+
end
|
22
|
+
class ThreadSafe::NonConcurrentCacheBackend
|
23
|
+
def [](key); end
|
24
|
+
def []=(key, value); end
|
25
|
+
def _get(key); end
|
26
|
+
def _set(key, value); end
|
27
|
+
def clear; end
|
28
|
+
def compute(key); end
|
29
|
+
def compute_if_absent(key); end
|
30
|
+
def compute_if_present(key); end
|
31
|
+
def delete(key); end
|
32
|
+
def delete_pair(key, value); end
|
33
|
+
def dupped_backend; end
|
34
|
+
def each_pair; end
|
35
|
+
def get_and_set(key, value); end
|
36
|
+
def get_or_default(key, default_value); end
|
37
|
+
def initialize(options = nil); end
|
38
|
+
def initialize_copy(other); end
|
39
|
+
def key?(key); end
|
40
|
+
def merge_pair(key, value); end
|
41
|
+
def pair?(key, expected_value); end
|
42
|
+
def replace_if_exists(key, new_value); end
|
43
|
+
def replace_pair(key, old_value, new_value); end
|
44
|
+
def size; end
|
45
|
+
def store_computed_value(key, new_value); end
|
46
|
+
def value?(value); end
|
47
|
+
end
|
48
|
+
class ThreadSafe::MriCacheBackend < ThreadSafe::NonConcurrentCacheBackend
|
49
|
+
def []=(key, value); end
|
50
|
+
def clear; end
|
51
|
+
def compute(key); end
|
52
|
+
def compute_if_absent(key); end
|
53
|
+
def compute_if_present(key); end
|
54
|
+
def delete(key); end
|
55
|
+
def delete_pair(key, value); end
|
56
|
+
def get_and_set(key, value); end
|
57
|
+
def merge_pair(key, value); end
|
58
|
+
def replace_if_exists(key, new_value); end
|
59
|
+
def replace_pair(key, old_value, new_value); end
|
60
|
+
end
|
61
|
+
class ThreadSafe::Cache < ThreadSafe::MriCacheBackend
|
62
|
+
def [](key); end
|
63
|
+
def each_key; end
|
64
|
+
def each_value; end
|
65
|
+
def empty?; end
|
66
|
+
def fetch(key, default_value = nil); end
|
67
|
+
def fetch_or_store(key, default_value = nil); end
|
68
|
+
def get(key); end
|
69
|
+
def initialize(options = nil, &block); end
|
70
|
+
def initialize_copy(other); end
|
71
|
+
def key(value); end
|
72
|
+
def keys; end
|
73
|
+
def marshal_dump; end
|
74
|
+
def marshal_load(hash); end
|
75
|
+
def populate_from(hash); end
|
76
|
+
def put(key, value); end
|
77
|
+
def put_if_absent(key, value); end
|
78
|
+
def raise_fetch_no_key; end
|
79
|
+
def validate_options_hash!(options); end
|
80
|
+
def values; end
|
81
|
+
end
|