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,92 @@
|
|
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/crass/all/crass.rbi
|
9
|
+
#
|
10
|
+
# crass-1.0.4
|
11
|
+
module Crass
|
12
|
+
def self.parse(input, options = nil); end
|
13
|
+
def self.parse_properties(input, options = nil); end
|
14
|
+
end
|
15
|
+
class Crass::TokenScanner
|
16
|
+
def collect; end
|
17
|
+
def consume; end
|
18
|
+
def current; end
|
19
|
+
def initialize(tokens); end
|
20
|
+
def peek; end
|
21
|
+
def pos; end
|
22
|
+
def reconsume; end
|
23
|
+
def reset; end
|
24
|
+
def tokens; end
|
25
|
+
end
|
26
|
+
class Crass::Scanner
|
27
|
+
def consume; end
|
28
|
+
def consume_rest; end
|
29
|
+
def current; end
|
30
|
+
def eos?; end
|
31
|
+
def initialize(input); end
|
32
|
+
def mark; end
|
33
|
+
def marked; end
|
34
|
+
def marker; end
|
35
|
+
def marker=(arg0); end
|
36
|
+
def peek(length = nil); end
|
37
|
+
def pos; end
|
38
|
+
def pos=(arg0); end
|
39
|
+
def reconsume; end
|
40
|
+
def reset; end
|
41
|
+
def scan(pattern); end
|
42
|
+
def scan_until(pattern); end
|
43
|
+
def string; end
|
44
|
+
end
|
45
|
+
class Crass::Tokenizer
|
46
|
+
def consume; end
|
47
|
+
def consume_bad_url; end
|
48
|
+
def consume_comments; end
|
49
|
+
def consume_escaped; end
|
50
|
+
def consume_ident; end
|
51
|
+
def consume_name; end
|
52
|
+
def consume_number; end
|
53
|
+
def consume_numeric; end
|
54
|
+
def consume_string(ending = nil); end
|
55
|
+
def consume_unicode_range; end
|
56
|
+
def consume_url; end
|
57
|
+
def convert_string_to_number(str); end
|
58
|
+
def create_token(type, properties = nil); end
|
59
|
+
def initialize(input, options = nil); end
|
60
|
+
def preprocess(input); end
|
61
|
+
def self.tokenize(input, options = nil); end
|
62
|
+
def start_identifier?(text = nil); end
|
63
|
+
def start_number?(text = nil); end
|
64
|
+
def tokenize; end
|
65
|
+
def valid_escape?(text = nil); end
|
66
|
+
end
|
67
|
+
class Crass::Parser
|
68
|
+
def consume_at_rule(input = nil); end
|
69
|
+
def consume_component_value(input = nil); end
|
70
|
+
def consume_declaration(input = nil); end
|
71
|
+
def consume_declarations(input = nil, options = nil); end
|
72
|
+
def consume_function(input = nil); end
|
73
|
+
def consume_qualified_rule(input = nil); end
|
74
|
+
def consume_rules(flags = nil); end
|
75
|
+
def consume_simple_block(input = nil); end
|
76
|
+
def create_node(type, properties = nil); end
|
77
|
+
def create_selector(input); end
|
78
|
+
def create_style_rule(rule); end
|
79
|
+
def initialize(input, options = nil); end
|
80
|
+
def parse_component_value(input = nil); end
|
81
|
+
def parse_component_values(input = nil); end
|
82
|
+
def parse_declaration(input = nil); end
|
83
|
+
def parse_declarations(input = nil, options = nil); end
|
84
|
+
def parse_properties(input = nil); end
|
85
|
+
def parse_rule(input = nil); end
|
86
|
+
def parse_value(nodes); end
|
87
|
+
def self.parse_properties(input, options = nil); end
|
88
|
+
def self.parse_rules(input, options = nil); end
|
89
|
+
def self.parse_stylesheet(input, options = nil); end
|
90
|
+
def self.stringify(nodes, options = nil); end
|
91
|
+
def tokens; end
|
92
|
+
end
|
@@ -0,0 +1,265 @@
|
|
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/erubis/all/erubis.rbi
|
9
|
+
#
|
10
|
+
# erubis-2.7.0
|
11
|
+
module Kernel
|
12
|
+
def not_implemented; end
|
13
|
+
end
|
14
|
+
module Erubis
|
15
|
+
end
|
16
|
+
module Erubis::Generator
|
17
|
+
def add_expr_debug(src, code); end
|
18
|
+
def add_expr_escaped(src, code); end
|
19
|
+
def add_expr_literal(src, code); end
|
20
|
+
def add_postamble(src); end
|
21
|
+
def add_preamble(src); end
|
22
|
+
def add_stmt(src, code); end
|
23
|
+
def add_text(src, text); end
|
24
|
+
def escape_text(text); end
|
25
|
+
def escaped_expr(code); end
|
26
|
+
def escapefunc; end
|
27
|
+
def escapefunc=(arg0); end
|
28
|
+
def init_generator(properties = nil); end
|
29
|
+
def self.supported_properties; end
|
30
|
+
end
|
31
|
+
module Erubis::Converter
|
32
|
+
def convert(input); end
|
33
|
+
def convert_input(codebuf, input); end
|
34
|
+
def detect_spaces_at_bol(text, is_bol); end
|
35
|
+
def escape; end
|
36
|
+
def escape=(arg0); end
|
37
|
+
def init_converter(properties = nil); end
|
38
|
+
def postamble; end
|
39
|
+
def postamble=(arg0); end
|
40
|
+
def preamble; end
|
41
|
+
def preamble=(arg0); end
|
42
|
+
def self.supported_properties; end
|
43
|
+
end
|
44
|
+
module Erubis::Basic
|
45
|
+
end
|
46
|
+
module Erubis::Basic::Converter
|
47
|
+
def add_expr(src, code, indicator); end
|
48
|
+
def convert_input(src, input); end
|
49
|
+
def init_converter(properties = nil); end
|
50
|
+
def pattern; end
|
51
|
+
def pattern=(arg0); end
|
52
|
+
def pattern_regexp(pattern); end
|
53
|
+
def self.pattern_regexp(pattern); end
|
54
|
+
def self.supported_properties; end
|
55
|
+
def trim; end
|
56
|
+
def trim=(arg0); end
|
57
|
+
include Erubis::Converter
|
58
|
+
end
|
59
|
+
module Erubis::PI
|
60
|
+
end
|
61
|
+
module Erubis::PI::Converter
|
62
|
+
def add_pi_expr(codebuf, code, indicator); end
|
63
|
+
def add_pi_stmt(codebuf, code, pi_arg); end
|
64
|
+
def convert(input); end
|
65
|
+
def convert_input(codebuf, input); end
|
66
|
+
def init_converter(properties = nil); end
|
67
|
+
def pi; end
|
68
|
+
def pi=(arg0); end
|
69
|
+
def prefix; end
|
70
|
+
def prefix=(arg0); end
|
71
|
+
def self.desc; end
|
72
|
+
def self.supported_properties; end
|
73
|
+
include Erubis::Converter
|
74
|
+
end
|
75
|
+
class Erubis::ErubisError < StandardError
|
76
|
+
end
|
77
|
+
class Erubis::NotSupportedError < Erubis::ErubisError
|
78
|
+
end
|
79
|
+
class Erubis::Context
|
80
|
+
def [](key); end
|
81
|
+
def []=(key, value); end
|
82
|
+
def each; end
|
83
|
+
def initialize(hash = nil); end
|
84
|
+
def keys; end
|
85
|
+
def to_hash; end
|
86
|
+
def update(context_or_hash); end
|
87
|
+
include Enumerable
|
88
|
+
end
|
89
|
+
module Erubis::Evaluator
|
90
|
+
def evaluate(*args); end
|
91
|
+
def filename; end
|
92
|
+
def filename=(arg0); end
|
93
|
+
def init_evaluator(properties); end
|
94
|
+
def result(*args); end
|
95
|
+
def self.supported_properties; end
|
96
|
+
def src; end
|
97
|
+
def src=(arg0); end
|
98
|
+
end
|
99
|
+
module Erubis::RubyEvaluator
|
100
|
+
def def_method(object, method_name, filename = nil); end
|
101
|
+
def evaluate(_context = nil); end
|
102
|
+
def result(_binding_or_hash = nil); end
|
103
|
+
def self.supported_properties; end
|
104
|
+
include Erubis::Evaluator
|
105
|
+
end
|
106
|
+
class Erubis::Engine
|
107
|
+
def convert!(input); end
|
108
|
+
def initialize(input = nil, properties = nil); end
|
109
|
+
def process(input, context = nil, filename = nil); end
|
110
|
+
def process_proc(proc_obj, context = nil, filename = nil); end
|
111
|
+
def self.load_file(filename, properties = nil); end
|
112
|
+
end
|
113
|
+
class Erubis::Basic::Engine < Erubis::Engine
|
114
|
+
include Erubis::Basic::Converter
|
115
|
+
include Erubis::Evaluator
|
116
|
+
include Erubis::Generator
|
117
|
+
end
|
118
|
+
class Erubis::PI::Engine < Erubis::Engine
|
119
|
+
include Erubis::Evaluator
|
120
|
+
include Erubis::Generator
|
121
|
+
include Erubis::PI::Converter
|
122
|
+
end
|
123
|
+
module Erubis::XmlHelper
|
124
|
+
def escape_xml(value); end
|
125
|
+
def escape_xml2(value); end
|
126
|
+
def h(value); end
|
127
|
+
def html_escape(value); end
|
128
|
+
def self.escape_xml(value); end
|
129
|
+
def self.escape_xml2(value); end
|
130
|
+
def self.url_encode(str); end
|
131
|
+
def u(str); end
|
132
|
+
def url_encode(str); end
|
133
|
+
end
|
134
|
+
module Erubis::EscapeEnhancer
|
135
|
+
def add_expr(src, code, indicator); end
|
136
|
+
def self.desc; end
|
137
|
+
end
|
138
|
+
module Erubis::StdoutEnhancer
|
139
|
+
def add_postamble(src); end
|
140
|
+
def add_preamble(src); end
|
141
|
+
def self.desc; end
|
142
|
+
end
|
143
|
+
module Erubis::PrintOutEnhancer
|
144
|
+
def add_expr_escaped(src, code); end
|
145
|
+
def add_expr_literal(src, code); end
|
146
|
+
def add_postamble(src); end
|
147
|
+
def add_preamble(src); end
|
148
|
+
def add_text(src, text); end
|
149
|
+
def self.desc; end
|
150
|
+
end
|
151
|
+
module Erubis::PrintEnabledEnhancer
|
152
|
+
def add_preamble(src); end
|
153
|
+
def evaluate(context = nil); end
|
154
|
+
def print(*args); end
|
155
|
+
def self.desc; end
|
156
|
+
end
|
157
|
+
module Erubis::ArrayEnhancer
|
158
|
+
def add_postamble(src); end
|
159
|
+
def add_preamble(src); end
|
160
|
+
def self.desc; end
|
161
|
+
end
|
162
|
+
module Erubis::ArrayBufferEnhancer
|
163
|
+
def add_postamble(src); end
|
164
|
+
def add_preamble(src); end
|
165
|
+
def self.desc; end
|
166
|
+
end
|
167
|
+
module Erubis::StringBufferEnhancer
|
168
|
+
def add_postamble(src); end
|
169
|
+
def add_preamble(src); end
|
170
|
+
def self.desc; end
|
171
|
+
end
|
172
|
+
module Erubis::StringIOEnhancer
|
173
|
+
def add_postamble(src); end
|
174
|
+
def add_preamble(src); end
|
175
|
+
def self.desc; end
|
176
|
+
end
|
177
|
+
module Erubis::ErboutEnhancer
|
178
|
+
def add_postamble(src); end
|
179
|
+
def add_preamble(src); end
|
180
|
+
def self.desc; end
|
181
|
+
end
|
182
|
+
module Erubis::NoTextEnhancer
|
183
|
+
def add_text(src, text); end
|
184
|
+
def self.desc; end
|
185
|
+
end
|
186
|
+
module Erubis::NoCodeEnhancer
|
187
|
+
def add_expr(src, code, indicator); end
|
188
|
+
def add_postamble(src); end
|
189
|
+
def add_preamble(src); end
|
190
|
+
def add_stmt(src, code); end
|
191
|
+
def add_text(src, text); end
|
192
|
+
def self.desc; end
|
193
|
+
end
|
194
|
+
module Erubis::SimplifyEnhancer
|
195
|
+
def convert(input); end
|
196
|
+
def self.desc; end
|
197
|
+
end
|
198
|
+
module Erubis::BiPatternEnhancer
|
199
|
+
def add_text(src, text); end
|
200
|
+
def bipattern=(pat); end
|
201
|
+
def initialize(input, properties = nil); end
|
202
|
+
def self.desc; end
|
203
|
+
end
|
204
|
+
module Erubis::PrefixedLineEnhancer
|
205
|
+
def add_text(src, text); end
|
206
|
+
def init_generator(properties = nil); end
|
207
|
+
def self.desc; end
|
208
|
+
end
|
209
|
+
module Erubis::PercentLineEnhancer
|
210
|
+
def add_text(src, text); end
|
211
|
+
def self.desc; end
|
212
|
+
include Erubis::PrefixedLineEnhancer
|
213
|
+
end
|
214
|
+
module Erubis::HeaderFooterEnhancer
|
215
|
+
def add_text(src, text); end
|
216
|
+
def convert(input); end
|
217
|
+
def footer; end
|
218
|
+
def footer=(arg0); end
|
219
|
+
def header; end
|
220
|
+
def header=(arg0); end
|
221
|
+
def self.desc; end
|
222
|
+
end
|
223
|
+
module Erubis::DeleteIndentEnhancer
|
224
|
+
def convert_input(src, input); end
|
225
|
+
def self.desc; end
|
226
|
+
end
|
227
|
+
module Erubis::InterpolationEnhancer
|
228
|
+
def _add_text_to_str(str, text); end
|
229
|
+
def add_expr_escaped(str, code); end
|
230
|
+
def add_expr_literal(str, code); end
|
231
|
+
def add_text(src, text); end
|
232
|
+
def convert_input(src, input); end
|
233
|
+
def self.desc; end
|
234
|
+
end
|
235
|
+
module Erubis::RubyGenerator
|
236
|
+
def add_expr_debug(src, code); end
|
237
|
+
def add_expr_escaped(src, code); end
|
238
|
+
def add_expr_literal(src, code); end
|
239
|
+
def add_stmt(src, code); end
|
240
|
+
def add_text(src, text); end
|
241
|
+
def escape_text(text); end
|
242
|
+
def escaped_expr(code); end
|
243
|
+
def init_generator(properties = nil); end
|
244
|
+
def self.supported_properties; end
|
245
|
+
include Erubis::Generator
|
246
|
+
include Erubis::StringBufferEnhancer
|
247
|
+
end
|
248
|
+
class Erubis::Eruby < Erubis::Basic::Engine
|
249
|
+
include Erubis::RubyEvaluator
|
250
|
+
include Erubis::RubyGenerator
|
251
|
+
end
|
252
|
+
class Erubis::FastEruby < Erubis::Eruby
|
253
|
+
include Erubis::InterpolationEnhancer
|
254
|
+
end
|
255
|
+
class Erubis::EscapedEruby < Erubis::Eruby
|
256
|
+
include Erubis::EscapeEnhancer
|
257
|
+
end
|
258
|
+
class Erubis::XmlEruby < Erubis::Eruby
|
259
|
+
include Erubis::EscapeEnhancer
|
260
|
+
end
|
261
|
+
class Erubis::PI::Eruby < Erubis::PI::Engine
|
262
|
+
def init_converter(properties = nil); end
|
263
|
+
include Erubis::RubyEvaluator
|
264
|
+
include Erubis::RubyGenerator
|
265
|
+
end
|
@@ -0,0 +1,98 @@
|
|
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/globalid/all/globalid.rbi
|
9
|
+
#
|
10
|
+
# globalid-0.4.2
|
11
|
+
module URI
|
12
|
+
end
|
13
|
+
class URI::GID < URI::Generic
|
14
|
+
def app; end
|
15
|
+
def check_host(host); end
|
16
|
+
def check_path(path); end
|
17
|
+
def check_scheme(scheme); end
|
18
|
+
def model_id; end
|
19
|
+
def model_name; end
|
20
|
+
def params; end
|
21
|
+
def parse_query_params(query); end
|
22
|
+
def query=(query); end
|
23
|
+
def self.build(args); end
|
24
|
+
def self.create(app, model, params = nil); end
|
25
|
+
def self.parse(uri); end
|
26
|
+
def self.validate_app(app); end
|
27
|
+
def set_model_components(path, validate = nil); end
|
28
|
+
def set_params(params); end
|
29
|
+
def set_path(path); end
|
30
|
+
def set_query(query); end
|
31
|
+
def to_s; end
|
32
|
+
def validate_component(component); end
|
33
|
+
def validate_model_id(model_id, model_name); end
|
34
|
+
end
|
35
|
+
class URI::GID::MissingModelIdError < URI::InvalidComponentError
|
36
|
+
end
|
37
|
+
class GlobalID
|
38
|
+
def ==(other); end
|
39
|
+
def app(*args, &block); end
|
40
|
+
def eql?(other); end
|
41
|
+
def find(options = nil); end
|
42
|
+
def hash; end
|
43
|
+
def initialize(gid, options = nil); end
|
44
|
+
def model_class; end
|
45
|
+
def model_id(*args, &block); end
|
46
|
+
def model_name(*args, &block); end
|
47
|
+
def params(*args, &block); end
|
48
|
+
def self.app; end
|
49
|
+
def self.app=(app); end
|
50
|
+
def self.create(model, options = nil); end
|
51
|
+
def self.eager_load!; end
|
52
|
+
def self.find(gid, options = nil); end
|
53
|
+
def self.parse(gid, options = nil); end
|
54
|
+
def self.parse_encoded_gid(gid, options); end
|
55
|
+
def self.repad_gid(gid); end
|
56
|
+
def to_param; end
|
57
|
+
def to_s(*args, &block); end
|
58
|
+
def uri; end
|
59
|
+
extend ActiveSupport::Autoload
|
60
|
+
end
|
61
|
+
class GlobalID::Railtie < Rails::Railtie
|
62
|
+
end
|
63
|
+
class SignedGlobalID < GlobalID
|
64
|
+
def ==(other); end
|
65
|
+
def encoded_expiration; end
|
66
|
+
def expires_at; end
|
67
|
+
def initialize(gid, options = nil); end
|
68
|
+
def pick_expiration(options); end
|
69
|
+
def purpose; end
|
70
|
+
def self.expires_in; end
|
71
|
+
def self.expires_in=(arg0); end
|
72
|
+
def self.parse(sgid, options = nil); end
|
73
|
+
def self.pick_purpose(options); end
|
74
|
+
def self.pick_verifier(options); end
|
75
|
+
def self.raise_if_expired(expires_at); end
|
76
|
+
def self.verifier; end
|
77
|
+
def self.verifier=(arg0); end
|
78
|
+
def self.verify(sgid, options); end
|
79
|
+
def to_h; end
|
80
|
+
def to_param; end
|
81
|
+
def to_s; end
|
82
|
+
def verifier; end
|
83
|
+
end
|
84
|
+
class SignedGlobalID::ExpiredMessage < StandardError
|
85
|
+
end
|
86
|
+
class GlobalID::Verifier < ActiveSupport::MessageVerifier
|
87
|
+
def decode(data); end
|
88
|
+
def encode(data); end
|
89
|
+
end
|
90
|
+
module GlobalID::Identification
|
91
|
+
def to_gid(options = nil); end
|
92
|
+
def to_gid_param(options = nil); end
|
93
|
+
def to_global_id(options = nil); end
|
94
|
+
def to_sgid(options = nil); end
|
95
|
+
def to_sgid_param(options = nil); end
|
96
|
+
def to_signed_global_id(options = nil); end
|
97
|
+
extend ActiveSupport::Concern
|
98
|
+
end
|
@@ -0,0 +1,191 @@
|
|
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/i18n/all/i18n.rbi
|
9
|
+
#
|
10
|
+
# i18n-1.6.0
|
11
|
+
module I18n
|
12
|
+
def self.interpolate(string, values); end
|
13
|
+
def self.interpolate_hash(string, values); end
|
14
|
+
def self.new_double_nested_cache; end
|
15
|
+
extend I18n::Base
|
16
|
+
end
|
17
|
+
class I18n::ExceptionHandler
|
18
|
+
def call(exception, _locale, _key, _options); end
|
19
|
+
end
|
20
|
+
class I18n::ArgumentError < ArgumentError
|
21
|
+
end
|
22
|
+
class I18n::Disabled < I18n::ArgumentError
|
23
|
+
def initialize(method); end
|
24
|
+
end
|
25
|
+
class I18n::InvalidLocale < I18n::ArgumentError
|
26
|
+
def initialize(locale); end
|
27
|
+
def locale; end
|
28
|
+
end
|
29
|
+
class I18n::InvalidLocaleData < I18n::ArgumentError
|
30
|
+
def filename; end
|
31
|
+
def initialize(filename, exception_message); end
|
32
|
+
end
|
33
|
+
class I18n::MissingTranslation < I18n::ArgumentError
|
34
|
+
include I18n::MissingTranslation::Base
|
35
|
+
end
|
36
|
+
module I18n::MissingTranslation::Base
|
37
|
+
def initialize(locale, key, options = nil); end
|
38
|
+
def key; end
|
39
|
+
def keys; end
|
40
|
+
def locale; end
|
41
|
+
def message; end
|
42
|
+
def options; end
|
43
|
+
def to_exception; end
|
44
|
+
def to_s; end
|
45
|
+
end
|
46
|
+
class I18n::MissingTranslationData < I18n::ArgumentError
|
47
|
+
include I18n::MissingTranslation::Base
|
48
|
+
end
|
49
|
+
class I18n::InvalidPluralizationData < I18n::ArgumentError
|
50
|
+
def count; end
|
51
|
+
def entry; end
|
52
|
+
def initialize(entry, count, key); end
|
53
|
+
def key; end
|
54
|
+
end
|
55
|
+
class I18n::MissingInterpolationArgument < I18n::ArgumentError
|
56
|
+
def initialize(key, values, string); end
|
57
|
+
def key; end
|
58
|
+
def string; end
|
59
|
+
def values; end
|
60
|
+
end
|
61
|
+
class I18n::ReservedInterpolationKey < I18n::ArgumentError
|
62
|
+
def initialize(key, string); end
|
63
|
+
def key; end
|
64
|
+
def string; end
|
65
|
+
end
|
66
|
+
class I18n::UnknownFileType < I18n::ArgumentError
|
67
|
+
def filename; end
|
68
|
+
def initialize(type, filename); end
|
69
|
+
def type; end
|
70
|
+
end
|
71
|
+
module I18n::Base
|
72
|
+
def available_locales; end
|
73
|
+
def available_locales=(value); end
|
74
|
+
def available_locales_initialized?; end
|
75
|
+
def backend; end
|
76
|
+
def backend=(value); end
|
77
|
+
def config; end
|
78
|
+
def config=(value); end
|
79
|
+
def default_locale; end
|
80
|
+
def default_locale=(value); end
|
81
|
+
def default_separator; end
|
82
|
+
def default_separator=(value); end
|
83
|
+
def eager_load!; end
|
84
|
+
def enforce_available_locales!(locale); end
|
85
|
+
def enforce_available_locales; end
|
86
|
+
def enforce_available_locales=(value); end
|
87
|
+
def exception_handler; end
|
88
|
+
def exception_handler=(value); end
|
89
|
+
def exists?(key, _locale = nil, locale: nil); end
|
90
|
+
def handle_exception(handling, exception, locale, key, options); end
|
91
|
+
def l(object, locale: nil, format: nil, **options); end
|
92
|
+
def load_path; end
|
93
|
+
def load_path=(value); end
|
94
|
+
def locale; end
|
95
|
+
def locale=(value); end
|
96
|
+
def locale_available?(locale); end
|
97
|
+
def localize(object, locale: nil, format: nil, **options); end
|
98
|
+
def normalize_key(key, separator); end
|
99
|
+
def normalize_keys(locale, key, scope, separator = nil); end
|
100
|
+
def reload!; end
|
101
|
+
def t!(key, options = nil); end
|
102
|
+
def t(key = nil, *arg1, throw: nil, raise: nil, locale: nil, **options); end
|
103
|
+
def translate!(key, options = nil); end
|
104
|
+
def translate(key = nil, *arg1, throw: nil, raise: nil, locale: nil, **options); end
|
105
|
+
def transliterate(key, *arg1, throw: nil, raise: nil, locale: nil, replacement: nil, **options); end
|
106
|
+
def with_locale(tmp_locale = nil); end
|
107
|
+
end
|
108
|
+
class I18n::Config
|
109
|
+
def available_locales; end
|
110
|
+
def available_locales=(locales); end
|
111
|
+
def available_locales_initialized?; end
|
112
|
+
def available_locales_set; end
|
113
|
+
def backend; end
|
114
|
+
def backend=(backend); end
|
115
|
+
def clear_available_locales_set; end
|
116
|
+
def default_locale; end
|
117
|
+
def default_locale=(locale); end
|
118
|
+
def default_separator; end
|
119
|
+
def default_separator=(separator); end
|
120
|
+
def enforce_available_locales; end
|
121
|
+
def enforce_available_locales=(enforce_available_locales); end
|
122
|
+
def exception_handler; end
|
123
|
+
def exception_handler=(exception_handler); end
|
124
|
+
def interpolation_patterns; end
|
125
|
+
def interpolation_patterns=(interpolation_patterns); end
|
126
|
+
def load_path; end
|
127
|
+
def load_path=(load_path); end
|
128
|
+
def locale; end
|
129
|
+
def locale=(locale); end
|
130
|
+
def missing_interpolation_argument_handler; end
|
131
|
+
def missing_interpolation_argument_handler=(exception_handler); end
|
132
|
+
end
|
133
|
+
module I18n::Backend
|
134
|
+
end
|
135
|
+
module I18n::HashRefinements
|
136
|
+
end
|
137
|
+
module I18n::Backend::Transliterator
|
138
|
+
def self.get(rule = nil); end
|
139
|
+
def transliterate(locale, string, replacement = nil); end
|
140
|
+
end
|
141
|
+
class I18n::Backend::Transliterator::ProcTransliterator
|
142
|
+
def initialize(rule); end
|
143
|
+
def transliterate(string, replacement = nil); end
|
144
|
+
end
|
145
|
+
class I18n::Backend::Transliterator::HashTransliterator
|
146
|
+
def add(hash); end
|
147
|
+
def add_default_approximations; end
|
148
|
+
def approximations; end
|
149
|
+
def initialize(rule = nil); end
|
150
|
+
def transliterate(string, replacement = nil); end
|
151
|
+
end
|
152
|
+
module I18n::Backend::Base
|
153
|
+
def available_locales; end
|
154
|
+
def deep_interpolate(locale, data, values = nil); end
|
155
|
+
def default(locale, object, subject, options = nil); end
|
156
|
+
def eager_load!; end
|
157
|
+
def eager_loaded?; end
|
158
|
+
def exists?(locale, key); end
|
159
|
+
def interpolate(locale, subject, values = nil); end
|
160
|
+
def load_file(filename); end
|
161
|
+
def load_json(filename); end
|
162
|
+
def load_rb(filename); end
|
163
|
+
def load_translations(*filenames); end
|
164
|
+
def load_yaml(filename); end
|
165
|
+
def load_yml(filename); end
|
166
|
+
def localize(locale, object, format = nil, options = nil); end
|
167
|
+
def lookup(locale, key, scope = nil, options = nil); end
|
168
|
+
def pluralization_key(entry, count); end
|
169
|
+
def pluralize(locale, entry, count); end
|
170
|
+
def reload!; end
|
171
|
+
def resolve(locale, object, subject, options = nil); end
|
172
|
+
def store_translations(locale, data, options = nil); end
|
173
|
+
def subtrees?; end
|
174
|
+
def translate(locale, key, options = nil); end
|
175
|
+
def translate_localization_format(locale, object, format, options); end
|
176
|
+
include I18n::Backend::Transliterator
|
177
|
+
end
|
178
|
+
class I18n::Backend::Simple
|
179
|
+
include I18n::Backend::Simple::Implementation
|
180
|
+
end
|
181
|
+
module I18n::Backend::Simple::Implementation
|
182
|
+
def available_locales; end
|
183
|
+
def eager_load!; end
|
184
|
+
def init_translations; end
|
185
|
+
def initialized?; end
|
186
|
+
def lookup(locale, key, scope = nil, options = nil); end
|
187
|
+
def reload!; end
|
188
|
+
def store_translations(locale, data, options = nil); end
|
189
|
+
def translations(do_init: nil); end
|
190
|
+
include I18n::Backend::Base
|
191
|
+
end
|