sorbet-rails 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codecov.yml +4 -0
- data/.github/ISSUE_TEMPLATE/bug.md +26 -0
- data/.gitignore +5 -0
- data/.travis.yml +26 -7
- data/CONTRIBUTING.md +135 -0
- data/Gemfile +29 -11
- data/README.md +40 -7
- data/lib/sorbet-rails/custom_finder_methods.rb +1 -1
- data/lib/sorbet-rails/model_rbi_formatter.rb +72 -41
- data/lib/sorbet-rails/routes_rbi_formatter.rb +6 -14
- data/lib/sorbet-rails/tasks/rails_rbi.rake +13 -6
- data/rbi/activerecord.rbi +32 -7
- data/sorbet-rails.gemspec +2 -4
- data/spec/bin/install.sh +11 -0
- data/spec/bin/run_all_specs.sh +9 -5
- data/spec/bin/run_spec.sh +33 -0
- data/spec/bin/{reset_test_data.sh → update_test_data.sh} +2 -1
- data/spec/custom_finder_methods_spec.rb +75 -0
- data/spec/model_rbi_formatter_spec.rb +8 -6
- data/spec/rails_helper.rb +32 -5
- data/spec/rake_helper.rb +47 -0
- data/spec/rake_rails_rbi_models_spec.rb +64 -0
- data/spec/rake_rails_rbi_routes_spec.rb +15 -0
- data/spec/support/rails_shared/app/models/wizard.rb +4 -4
- data/spec/support/rails_shared/db/migrate/20190620001234_create_wizards.rb +1 -1
- data/spec/support/rails_shared/db/migrate/20190620003037_create_wands.rb +1 -1
- data/spec/support/rails_shared/db/migrate/20190620003739_create_spell_books.rb +1 -1
- data/spec/support/rails_shared/db/migrate/20190622000000_add_more_column_types_to_wands.rb +5 -3
- data/spec/support/rails_symlinks/app/controllers +1 -0
- data/spec/support/rails_symlinks/app/models +1 -0
- data/spec/support/rails_symlinks/config/routes.rb +5 -0
- data/spec/support/rails_symlinks/db/migrate +1 -0
- data/spec/support/v4.2/.gitignore +17 -0
- data/spec/support/v4.2/Gemfile +31 -0
- data/spec/support/v4.2/README.rdoc +28 -0
- data/spec/support/v4.2/Rakefile +6 -0
- data/spec/support/{5.1.7/lib/tasks → v4.2/app/assets/images}/.keep +0 -0
- data/spec/support/v4.2/app/assets/stylesheets/application.css +15 -0
- data/spec/support/v4.2/app/controllers/application_controller.rb +5 -0
- data/spec/support/{5.1.7/log → v4.2/app/controllers/concerns}/.keep +0 -0
- data/spec/support/v4.2/app/helpers/application_helper.rb +2 -0
- data/spec/support/{5.1.7/test/controllers → v4.2/app/mailers}/.keep +0 -0
- data/spec/support/v4.2/app/models +1 -0
- data/spec/support/v4.2/app/views/layouts/application.html.erb +13 -0
- data/spec/support/{5.1.7 → v4.2}/bin/bundle +0 -0
- data/spec/support/v4.2/bin/rails +4 -0
- data/spec/support/v4.2/bin/rake +4 -0
- data/spec/support/v4.2/bin/setup +29 -0
- data/spec/support/v4.2/config.ru +4 -0
- data/spec/support/v4.2/config/application.rb +35 -0
- data/spec/support/v4.2/config/boot.rb +3 -0
- data/spec/support/v4.2/config/database.yml +25 -0
- data/spec/support/v4.2/config/environment.rb +5 -0
- data/spec/support/v4.2/config/environments/development.rb +28 -0
- data/spec/support/v4.2/config/environments/production.rb +67 -0
- data/spec/support/v4.2/config/environments/test.rb +42 -0
- data/spec/support/{5.1.7 → v4.2}/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/support/v4.2/config/initializers/cookies_serializer.rb +3 -0
- data/spec/support/{5.1.7 → v4.2}/config/initializers/filter_parameter_logging.rb +0 -0
- data/spec/support/{5.1.7 → v4.2}/config/initializers/inflections.rb +0 -0
- data/spec/support/{5.1.7 → v4.2}/config/initializers/mime_types.rb +0 -0
- data/spec/support/v4.2/config/initializers/session_store.rb +3 -0
- data/spec/support/v4.2/config/initializers/to_time_preserves_timezone.rb +10 -0
- data/spec/support/v4.2/config/initializers/wrap_parameters.rb +14 -0
- data/spec/support/v4.2/config/locales/en.yml +23 -0
- data/spec/support/v4.2/config/routes.rb +5 -0
- data/spec/support/v4.2/config/secrets.yml +22 -0
- data/spec/support/v4.2/db/migrate/20190620001234_create_wizards.rb +12 -0
- data/spec/support/v4.2/db/migrate/20190620003037_create_wands.rb +11 -0
- data/spec/support/v4.2/db/migrate/20190620003739_create_spell_books.rb +8 -0
- data/spec/support/v4.2/db/migrate/20190622000000_add_more_column_types_to_wands.rb +10 -0
- data/spec/support/v4.2/db/schema.rb +44 -0
- data/spec/support/v4.2/db/seeds.rb +7 -0
- data/spec/support/{5.1.7/test/fixtures → v4.2/lib/assets}/.keep +0 -0
- data/spec/support/{5.1.7/test/fixtures/files → v4.2/lib/tasks}/.keep +0 -0
- data/spec/support/{5.1.7/test/integration → v4.2/log}/.keep +0 -0
- data/spec/support/v4.2/public/404.html +67 -0
- data/spec/support/v4.2/public/422.html +67 -0
- data/spec/support/v4.2/public/500.html +66 -0
- data/spec/support/{5.1.7/test/mailers/.keep → v4.2/public/favicon.ico} +0 -0
- data/spec/support/v4.2/public/robots.txt +5 -0
- data/spec/support/{5.1.7/test/models → v4.2/test/controllers}/.keep +0 -0
- data/spec/support/{5.1.7/tmp → v4.2/test/fixtures}/.keep +0 -0
- data/spec/support/{5.1.7/vendor → v4.2/test/helpers}/.keep +0 -0
- data/spec/support/{5.2.3/lib/tasks → v4.2/test/integration}/.keep +0 -0
- data/spec/support/{5.2.3/log → v4.2/test/mailers}/.keep +0 -0
- data/spec/support/{5.2.3/storage → v4.2/test/models}/.keep +0 -0
- data/spec/support/{5.1.7 → v4.2}/test/test_helper.rb +0 -0
- data/spec/support/{5.2.3/test/controllers → v4.2/vendor/assets/stylesheets}/.keep +0 -0
- data/spec/support/v5.0/.gitignore +21 -0
- data/spec/support/v5.0/Gemfile +37 -0
- data/spec/support/{5.1.7 → v5.0}/README.md +0 -0
- data/spec/support/{5.1.7 → v5.0}/Rakefile +0 -0
- data/spec/support/{5.1.7 → v5.0}/app/channels/application_cable/channel.rb +0 -0
- data/spec/support/{5.1.7 → v5.0}/app/channels/application_cable/connection.rb +0 -0
- data/spec/support/v5.0/app/controllers +1 -0
- data/spec/support/{5.1.7 → v5.0}/app/jobs/application_job.rb +0 -0
- data/spec/support/{5.1.7 → v5.0}/app/mailers/application_mailer.rb +0 -0
- data/spec/support/v5.0/app/models +1 -0
- data/spec/support/{5.1.7 → v5.0}/app/views/layouts/mailer.html.erb +0 -0
- data/spec/support/{5.1.7 → v5.0}/app/views/layouts/mailer.text.erb +0 -0
- data/spec/support/v5.0/bin/bundle +3 -0
- data/spec/support/v5.0/bin/rails +4 -0
- data/spec/support/v5.0/bin/rake +4 -0
- data/spec/support/v5.0/bin/setup +34 -0
- data/spec/support/{5.1.7 → v5.0}/bin/update +0 -0
- data/spec/support/{5.1.7 → v5.0}/config.ru +0 -0
- data/spec/support/v5.0/config/application.rb +30 -0
- data/spec/support/{5.1.7 → v5.0}/config/boot.rb +0 -0
- data/spec/support/v5.0/config/cable.yml +9 -0
- data/spec/support/v5.0/config/database.yml +25 -0
- data/spec/support/{5.1.7 → v5.0}/config/environment.rb +0 -0
- data/spec/support/v5.0/config/environments/development.rb +47 -0
- data/spec/support/v5.0/config/environments/production.rb +78 -0
- data/spec/support/v5.0/config/environments/test.rb +42 -0
- data/spec/support/{5.1.7 → v5.0}/config/initializers/application_controller_renderer.rb +0 -0
- data/spec/support/{5.2.3 → v5.0}/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/support/{5.1.7 → v5.0}/config/initializers/cors.rb +0 -0
- data/spec/support/{5.2.3 → v5.0}/config/initializers/filter_parameter_logging.rb +0 -0
- data/spec/support/{5.2.3 → v5.0}/config/initializers/inflections.rb +0 -0
- data/spec/support/{5.2.3 → v5.0}/config/initializers/mime_types.rb +0 -0
- data/spec/support/v5.0/config/initializers/new_framework_defaults.rb +18 -0
- data/spec/support/{5.1.7 → v5.0}/config/initializers/wrap_parameters.rb +0 -0
- data/spec/support/v5.0/config/locales/en.yml +23 -0
- data/spec/support/v5.0/config/puma.rb +47 -0
- data/spec/support/v5.0/config/routes.rb +5 -0
- data/spec/support/v5.0/config/secrets.yml +22 -0
- data/spec/support/v5.0/db/migrate +1 -0
- data/spec/support/v5.0/db/schema.rb +45 -0
- data/spec/support/{5.1.7 → v5.0}/db/seeds.rb +0 -0
- data/spec/support/{5.2.3/test/fixtures → v5.0/lib/tasks}/.keep +0 -0
- data/spec/support/{5.2.3/test/fixtures/files → v5.0/log}/.keep +0 -0
- data/spec/support/v5.0/public/robots.txt +5 -0
- data/spec/support/v5.0/rails_symlinks/app/controllers +1 -0
- data/spec/support/v5.0/rails_symlinks/app/models +1 -0
- data/spec/support/v5.0/rails_symlinks/config/routes.rb +5 -0
- data/spec/support/v5.0/rails_symlinks/db/migrate +1 -0
- data/spec/support/{5.2.3/test/integration → v5.0/test/controllers}/.keep +0 -0
- data/spec/support/{5.2.3/test/mailers → v5.0/test/fixtures}/.keep +0 -0
- data/spec/support/{5.2.3/test/models → v5.0/test/fixtures/files}/.keep +0 -0
- data/spec/support/{5.2.3/tmp → v5.0/test/integration}/.keep +0 -0
- data/spec/support/{5.2.3/vendor → v5.0/test/mailers}/.keep +0 -0
- data/spec/support/v5.0/test/models/.keep +0 -0
- data/spec/support/v5.0/test/test_helper.rb +10 -0
- data/spec/support/v5.0/tmp/.keep +0 -0
- data/spec/support/{5.1.7 → v5.1}/Gemfile +6 -6
- data/spec/support/{5.2.3 → v5.1}/README.md +0 -0
- data/spec/support/{5.2.3 → v5.1}/Rakefile +0 -0
- data/spec/support/{5.2.3 → v5.1}/app/channels/application_cable/channel.rb +0 -0
- data/spec/support/{5.2.3 → v5.1}/app/channels/application_cable/connection.rb +0 -0
- data/spec/support/v5.1/app/controllers +1 -0
- data/spec/support/{5.2.3 → v5.1}/app/jobs/application_job.rb +0 -0
- data/spec/support/{5.2.3 → v5.1}/app/mailers/application_mailer.rb +0 -0
- data/spec/support/v5.1/app/models +1 -0
- data/spec/support/{5.2.3 → v5.1}/app/views/layouts/mailer.html.erb +0 -0
- data/spec/support/{5.2.3 → v5.1}/app/views/layouts/mailer.text.erb +0 -0
- data/spec/support/v5.1/bin/bundle +3 -0
- data/spec/support/{5.1.7 → v5.1}/bin/rails +0 -0
- data/spec/support/{5.1.7 → v5.1}/bin/rake +0 -0
- data/spec/support/{5.1.7 → v5.1}/bin/setup +0 -0
- data/spec/support/{5.1.7 → v5.1}/bin/spring +0 -0
- data/spec/support/v5.1/bin/update +29 -0
- data/spec/support/{5.2.3 → v5.1}/config.ru +0 -0
- data/spec/support/{5.1.7 → v5.1}/config/application.rb +0 -0
- data/spec/support/{5.2.3 → v5.1}/config/boot.rb +0 -0
- data/spec/support/{5.1.7 → v5.1}/config/cable.yml +0 -0
- data/spec/support/{5.1.7 → v5.1}/config/database.yml +0 -0
- data/spec/support/{5.2.3 → v5.1}/config/environment.rb +0 -0
- data/spec/support/{5.1.7 → v5.1}/config/environments/development.rb +0 -0
- data/spec/support/{5.1.7 → v5.1}/config/environments/production.rb +0 -0
- data/spec/support/{5.1.7 → v5.1}/config/environments/test.rb +0 -0
- data/spec/support/{5.2.3 → v5.1}/config/initializers/application_controller_renderer.rb +0 -0
- data/spec/support/v5.1/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/support/{5.2.3 → v5.1}/config/initializers/cors.rb +0 -0
- data/spec/support/v5.1/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/support/v5.1/config/initializers/inflections.rb +16 -0
- data/spec/support/v5.1/config/initializers/mime_types.rb +4 -0
- data/spec/support/{5.2.3 → v5.1}/config/initializers/wrap_parameters.rb +0 -0
- data/spec/support/{5.1.7 → v5.1}/config/locales/en.yml +0 -0
- data/spec/support/{5.1.7 → v5.1}/config/puma.rb +0 -0
- data/spec/support/v5.1/config/routes.rb +1 -0
- data/spec/support/{5.1.7 → v5.1}/config/secrets.yml +0 -0
- data/spec/support/{5.1.7 → v5.1}/config/spring.rb +0 -0
- data/spec/support/v5.1/db/migrate +1 -0
- data/spec/support/{5.1.7 → v5.1}/db/schema.rb +0 -0
- data/spec/support/{5.2.3 → v5.1}/db/seeds.rb +0 -0
- data/spec/support/v5.1/lib/tasks/.keep +0 -0
- data/spec/support/v5.1/log/.keep +0 -0
- data/spec/support/{5.1.7 → v5.1}/public/robots.txt +0 -0
- data/spec/support/v5.1/test/controllers/.keep +0 -0
- data/spec/support/v5.1/test/fixtures/.keep +0 -0
- data/spec/support/v5.1/test/fixtures/files/.keep +0 -0
- data/spec/support/v5.1/test/integration/.keep +0 -0
- data/spec/support/v5.1/test/mailers/.keep +0 -0
- data/spec/support/v5.1/test/models/.keep +0 -0
- data/spec/support/v5.1/test/test_helper.rb +10 -0
- data/spec/support/v5.1/tmp/.keep +0 -0
- data/spec/support/v5.1/vendor/.keep +0 -0
- data/spec/support/{5.2.3 → v5.2}/Gemfile +4 -15
- data/spec/support/v5.2/README.md +24 -0
- data/spec/support/v5.2/Rakefile +6 -0
- data/spec/support/v5.2/app/channels/application_cable/channel.rb +4 -0
- data/spec/support/v5.2/app/channels/application_cable/connection.rb +4 -0
- data/spec/support/v5.2/app/controllers +1 -0
- data/spec/support/v5.2/app/jobs/application_job.rb +2 -0
- data/spec/support/v5.2/app/mailers/application_mailer.rb +4 -0
- data/spec/support/v5.2/app/models +1 -0
- data/spec/support/v5.2/app/views/layouts/mailer.html.erb +13 -0
- data/spec/support/v5.2/app/views/layouts/mailer.text.erb +1 -0
- data/spec/support/{5.2.3 → v5.2}/bin/bundle +0 -0
- data/spec/support/{5.2.3 → v5.2}/bin/rails +0 -0
- data/spec/support/{5.2.3 → v5.2}/bin/rake +0 -0
- data/spec/support/{5.2.3 → v5.2}/bin/setup +0 -0
- data/spec/support/{5.2.3 → v5.2}/bin/spring +0 -0
- data/spec/support/{5.2.3 → v5.2}/bin/update +0 -0
- data/spec/support/v5.2/config.ru +5 -0
- data/spec/support/{5.2.3 → v5.2}/config/application.rb +0 -0
- data/spec/support/v5.2/config/boot.rb +3 -0
- data/spec/support/{5.2.3 → v5.2}/config/cable.yml +0 -0
- data/spec/support/{5.2.3 → v5.2}/config/credentials.yml.enc +0 -0
- data/spec/support/{5.2.3 → v5.2}/config/database.yml +0 -0
- data/spec/support/v5.2/config/environment.rb +5 -0
- data/spec/support/{5.2.3 → v5.2}/config/environments/development.rb +1 -1
- data/spec/support/{5.2.3 → v5.2}/config/environments/production.rb +0 -0
- data/spec/support/{5.2.3 → v5.2}/config/environments/test.rb +0 -0
- data/spec/support/v5.2/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/support/v5.2/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/support/v5.2/config/initializers/cors.rb +16 -0
- data/spec/support/v5.2/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/support/v5.2/config/initializers/inflections.rb +16 -0
- data/spec/support/v5.2/config/initializers/mime_types.rb +4 -0
- data/spec/support/v5.2/config/initializers/wrap_parameters.rb +14 -0
- data/spec/support/{5.2.3 → v5.2}/config/locales/en.yml +0 -0
- data/spec/support/{5.2.3 → v5.2}/config/puma.rb +0 -0
- data/spec/support/v5.2/config/routes.rb +1 -0
- data/spec/support/{5.2.3 → v5.2}/config/spring.rb +0 -0
- data/spec/support/{5.2.3 → v5.2}/config/storage.yml +0 -0
- data/spec/support/v5.2/db/migrate +1 -0
- data/spec/support/{5.2.3 → v5.2}/db/schema.rb +4 -4
- data/spec/support/v5.2/db/seeds.rb +7 -0
- data/spec/support/v5.2/lib/tasks/.keep +0 -0
- data/spec/support/v5.2/log/.keep +0 -0
- data/spec/support/{5.2.3 → v5.2}/public/robots.txt +0 -0
- data/spec/support/v5.2/sorbet/.keep +0 -0
- data/spec/support/v5.2/sorbet/config +2 -0
- data/spec/support/v5.2/sorbet/rbi/gems/actioncable.rbi +309 -0
- data/spec/support/v5.2/sorbet/rbi/gems/actionmailer.rbi +439 -0
- data/spec/support/v5.2/sorbet/rbi/gems/actionpack.rbi +3245 -0
- data/spec/support/v5.2/sorbet/rbi/gems/actionview.rbi +1129 -0
- data/spec/support/v5.2/sorbet/rbi/gems/activejob.rbi +281 -0
- data/spec/support/v5.2/sorbet/rbi/gems/activemodel.rbi +740 -0
- data/spec/support/v5.2/sorbet/rbi/gems/activerecord.rbi +3996 -0
- data/spec/support/v5.2/sorbet/rbi/gems/activestorage.rbi +173 -0
- data/spec/support/v5.2/sorbet/rbi/gems/activesupport.rbi +2309 -0
- data/spec/support/v5.2/sorbet/rbi/gems/arel.rbi +1248 -0
- data/spec/support/v5.2/sorbet/rbi/gems/byebug.rbi +1039 -0
- data/spec/support/v5.2/sorbet/rbi/gems/concurrent-ruby.rbi +1583 -0
- data/spec/support/v5.2/sorbet/rbi/gems/crass.rbi +92 -0
- data/spec/support/v5.2/sorbet/rbi/gems/erubi.rbi +26 -0
- data/spec/support/v5.2/sorbet/rbi/gems/globalid.rbi +98 -0
- data/spec/support/v5.2/sorbet/rbi/gems/i18n.rbi +191 -0
- data/spec/support/v5.2/sorbet/rbi/gems/loofah.rbi +129 -0
- data/spec/support/v5.2/sorbet/rbi/gems/mail.rbi +1091 -0
- data/spec/support/v5.2/sorbet/rbi/gems/marcel.rbi +12 -0
- data/spec/support/v5.2/sorbet/rbi/gems/method_source.rbi +63 -0
- data/spec/support/v5.2/sorbet/rbi/gems/mini_mime.rbi +45 -0
- data/spec/support/v5.2/sorbet/rbi/gems/minitest.rbi +276 -0
- data/spec/support/v5.2/sorbet/rbi/gems/nokogiri.rbi +1006 -0
- data/spec/support/v5.2/sorbet/rbi/gems/puma.rbi +570 -0
- data/spec/support/v5.2/sorbet/rbi/gems/rack-test.rbi +161 -0
- data/spec/support/v5.2/sorbet/rbi/gems/rack.rbi +534 -0
- data/spec/support/v5.2/sorbet/rbi/gems/rails-dom-testing.rbi +67 -0
- data/spec/support/v5.2/sorbet/rbi/gems/rails-html-sanitizer.rbi +90 -0
- data/spec/support/v5.2/sorbet/rbi/gems/railties.rbi +722 -0
- data/spec/support/v5.2/sorbet/rbi/gems/rake.rbi +251 -0
- data/spec/support/v5.2/sorbet/rbi/gems/sqlite3.rbi +353 -0
- data/spec/support/v5.2/sorbet/rbi/gems/thor.rbi +449 -0
- data/spec/support/v5.2/sorbet/rbi/gems/thread_safe.rbi +81 -0
- data/spec/support/v5.2/sorbet/rbi/gems/tzinfo.rbi +407 -0
- data/spec/support/v5.2/sorbet/rbi/hidden-definitions/errors.txt +10040 -0
- data/spec/support/v5.2/sorbet/rbi/hidden-definitions/hidden.rbi +24386 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +13 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +51 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/~>5.2/activerecord.rbi +10 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +107 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8547 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +22 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/spec/support/v5.2/sorbet/rbi/todo.rbi +11 -0
- data/spec/support/v5.2/storage/.keep +0 -0
- data/spec/support/v5.2/test/controllers/.keep +0 -0
- data/spec/support/v5.2/test/fixtures/.keep +0 -0
- data/spec/support/v5.2/test/fixtures/files/.keep +0 -0
- data/spec/support/v5.2/test/integration/.keep +0 -0
- data/spec/support/v5.2/test/mailers/.keep +0 -0
- data/spec/support/v5.2/test/models/.keep +0 -0
- data/spec/support/{5.2.3 → v5.2}/test/test_helper.rb +0 -0
- data/spec/support/v5.2/tmp/.keep +0 -0
- data/spec/support/v5.2/vendor/.keep +0 -0
- data/spec/support/v6.0/.gitignore +26 -0
- data/spec/support/v6.0/Gemfile +35 -0
- data/spec/support/v6.0/README.md +24 -0
- data/spec/support/v6.0/Rakefile +6 -0
- data/spec/support/v6.0/app/channels/application_cable/channel.rb +4 -0
- data/spec/support/v6.0/app/channels/application_cable/connection.rb +4 -0
- data/spec/support/v6.0/app/controllers +1 -0
- data/spec/support/v6.0/app/jobs/application_job.rb +7 -0
- data/spec/support/v6.0/app/mailers/application_mailer.rb +4 -0
- data/spec/support/v6.0/app/models +1 -0
- data/spec/support/v6.0/app/views/layouts/mailer.html.erb +13 -0
- data/spec/support/v6.0/app/views/layouts/mailer.text.erb +1 -0
- data/spec/support/v6.0/bin/bundle +105 -0
- data/spec/support/v6.0/bin/rails +4 -0
- data/spec/support/v6.0/bin/rake +4 -0
- data/spec/support/v6.0/bin/setup +33 -0
- data/spec/support/v6.0/config.ru +5 -0
- data/spec/support/v6.0/config/application.rb +37 -0
- data/spec/support/v6.0/config/boot.rb +3 -0
- data/spec/support/v6.0/config/cable.yml +10 -0
- data/spec/support/v6.0/config/credentials.yml.enc +1 -0
- data/spec/support/v6.0/config/database.yml +25 -0
- data/spec/support/v6.0/config/environment.rb +5 -0
- data/spec/support/v6.0/config/environments/development.rb +52 -0
- data/spec/support/v6.0/config/environments/production.rb +105 -0
- data/spec/support/v6.0/config/environments/test.rb +48 -0
- data/spec/support/v6.0/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/support/v6.0/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/support/v6.0/config/initializers/cors.rb +16 -0
- data/spec/support/v6.0/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/support/v6.0/config/initializers/inflections.rb +16 -0
- data/spec/support/v6.0/config/initializers/mime_types.rb +4 -0
- data/spec/support/v6.0/config/initializers/wrap_parameters.rb +14 -0
- data/spec/support/v6.0/config/locales/en.yml +33 -0
- data/spec/support/v6.0/config/puma.rb +35 -0
- data/spec/support/v6.0/config/routes.rb +5 -0
- data/spec/support/v6.0/config/storage.yml +34 -0
- data/spec/support/v6.0/db/migrate +1 -0
- data/spec/support/v6.0/db/schema.rb +47 -0
- data/spec/support/v6.0/db/seeds.rb +7 -0
- data/spec/support/v6.0/lib/tasks/.keep +0 -0
- data/spec/support/v6.0/log/.keep +0 -0
- data/spec/support/v6.0/public/robots.txt +1 -0
- data/spec/support/v6.0/storage/.keep +0 -0
- data/spec/support/v6.0/test/channels/application_cable/connection_test.rb +11 -0
- data/spec/support/v6.0/test/controllers/.keep +0 -0
- data/spec/support/v6.0/test/fixtures/.keep +0 -0
- data/spec/support/v6.0/test/fixtures/files/.keep +0 -0
- data/spec/support/v6.0/test/integration/.keep +0 -0
- data/spec/support/v6.0/test/mailers/.keep +0 -0
- data/spec/support/v6.0/test/models/.keep +0 -0
- data/spec/support/v6.0/test/test_helper.rb +13 -0
- data/spec/support/v6.0/tmp/.keep +0 -0
- data/spec/support/v6.0/vendor/.keep +0 -0
- data/spec/test_data/{5.2.3 → v4.2}/expected_no_routes.rbi +1 -1
- data/spec/test_data/v4.2/expected_potion.rbi +113 -0
- data/spec/test_data/{5.1.7 → v4.2}/expected_routes.rbi +0 -0
- data/spec/test_data/v4.2/expected_spell_book.rbi +146 -0
- data/spec/test_data/v4.2/expected_wand.rbi +278 -0
- data/spec/test_data/v4.2/expected_wizard.rbi +239 -0
- data/spec/test_data/v4.2/expected_wizard_wo_spellbook.rbi +239 -0
- data/spec/test_data/{5.1.7 → v5.0}/expected_no_routes.rbi +1 -1
- data/spec/test_data/{5.2.3 → v5.0}/expected_potion.rbi +58 -62
- data/spec/test_data/v5.0/expected_routes.rbi +13 -0
- data/spec/test_data/v5.0/expected_spell_book.rbi +155 -0
- data/spec/test_data/{5.1.7 → v5.0}/expected_wand.rbi +125 -72
- data/spec/test_data/v5.0/expected_wizard.rbi +248 -0
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +248 -0
- data/spec/test_data/v5.1/expected_no_routes.rbi +11 -0
- data/spec/test_data/{5.1.7 → v5.1}/expected_potion.rbi +62 -60
- data/spec/test_data/v5.1/expected_routes.rbi +13 -0
- data/spec/test_data/v5.1/expected_spell_book.rbi +161 -0
- data/spec/test_data/v5.1/expected_wand.rbi +293 -0
- data/spec/test_data/v5.1/expected_wizard.rbi +254 -0
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +254 -0
- data/spec/test_data/v5.2/expected_no_routes.rbi +11 -0
- data/spec/test_data/v5.2/expected_potion.rbi +128 -0
- data/spec/test_data/{5.2.3 → v5.2}/expected_routes.rbi +0 -0
- data/spec/test_data/v5.2/expected_spell_book.rbi +161 -0
- data/spec/test_data/{5.2.3 → v5.2}/expected_wand.rbi +135 -70
- data/spec/test_data/v5.2/expected_wizard.rbi +254 -0
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +254 -0
- data/spec/test_data/v6.0/expected_no_routes.rbi +11 -0
- data/spec/test_data/v6.0/expected_potion.rbi +140 -0
- data/spec/test_data/v6.0/expected_routes.rbi +91 -0
- data/spec/test_data/v6.0/expected_spell_book.rbi +173 -0
- data/spec/test_data/v6.0/expected_wand.rbi +335 -0
- data/spec/test_data/v6.0/expected_wizard.rbi +278 -0
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +278 -0
- metadata +752 -281
- data/spec/support/5.1.7/app/controllers +0 -1
- data/spec/support/5.1.7/app/models +0 -1
- data/spec/support/5.1.7/config/routes.rb +0 -1
- data/spec/support/5.1.7/db/migrate +0 -1
- data/spec/support/5.2.3/app/controllers +0 -1
- data/spec/support/5.2.3/app/models +0 -1
- data/spec/support/5.2.3/config/routes.rb +0 -1
- data/spec/support/5.2.3/db/migrate +0 -1
- data/spec/test_data/5.1.7/expected_wizard.rbi +0 -207
- data/spec/test_data/5.1.7/expected_wizard_wo_spellbook.rbi +0 -207
- data/spec/test_data/5.2.3/expected_wizard.rbi +0 -207
- data/spec/test_data/5.2.3/expected_wizard_wo_spellbook.rbi +0 -207
@@ -0,0 +1,281 @@
|
|
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/activejob/all/activejob.rbi
|
9
|
+
#
|
10
|
+
# activejob-5.2.3
|
11
|
+
module ActiveJob
|
12
|
+
def self.gem_version; end
|
13
|
+
def self.version; end
|
14
|
+
extend ActiveSupport::Autoload
|
15
|
+
end
|
16
|
+
module ActiveJob::VERSION
|
17
|
+
end
|
18
|
+
class ActiveJob::Railtie < Rails::Railtie
|
19
|
+
end
|
20
|
+
module ActiveJob::Core
|
21
|
+
def arguments_serialized?; end
|
22
|
+
def deserialize(job_data); end
|
23
|
+
def deserialize_arguments(serialized_args); end
|
24
|
+
def deserialize_arguments_if_needed; end
|
25
|
+
def initialize(*arguments); end
|
26
|
+
def serialize; end
|
27
|
+
def serialize_arguments(arguments); end
|
28
|
+
def serialize_arguments_if_needed(arguments); end
|
29
|
+
extend ActiveSupport::Concern
|
30
|
+
end
|
31
|
+
module ActiveJob::Core::ClassMethods
|
32
|
+
def deserialize(job_data); end
|
33
|
+
def set(options = nil); end
|
34
|
+
end
|
35
|
+
module ActiveJob::QueueAdapter
|
36
|
+
extend ActiveSupport::Concern
|
37
|
+
end
|
38
|
+
module ActiveJob::QueueAdapter::ClassMethods
|
39
|
+
def assign_adapter(adapter_name, queue_adapter); end
|
40
|
+
def queue_adapter; end
|
41
|
+
def queue_adapter=(name_or_adapter); end
|
42
|
+
def queue_adapter?(object); end
|
43
|
+
def queue_adapter_name; end
|
44
|
+
end
|
45
|
+
module ActiveJob::QueueName
|
46
|
+
def queue_name; end
|
47
|
+
extend ActiveSupport::Concern
|
48
|
+
end
|
49
|
+
module ActiveJob::QueueName::ClassMethods
|
50
|
+
def default_queue_name; end
|
51
|
+
def default_queue_name=(obj); end
|
52
|
+
def queue_as(part_name = nil, &block); end
|
53
|
+
def queue_name_from_part(part_name); end
|
54
|
+
def queue_name_prefix; end
|
55
|
+
def queue_name_prefix=(obj); end
|
56
|
+
def self.default_queue_name; end
|
57
|
+
def self.default_queue_name=(obj); end
|
58
|
+
def self.queue_name_prefix; end
|
59
|
+
def self.queue_name_prefix=(obj); end
|
60
|
+
end
|
61
|
+
module ActiveJob::QueuePriority
|
62
|
+
def priority; end
|
63
|
+
extend ActiveSupport::Concern
|
64
|
+
end
|
65
|
+
module ActiveJob::QueuePriority::ClassMethods
|
66
|
+
def default_priority; end
|
67
|
+
def default_priority=(obj); end
|
68
|
+
def queue_with_priority(priority = nil, &block); end
|
69
|
+
def self.default_priority; end
|
70
|
+
def self.default_priority=(obj); end
|
71
|
+
end
|
72
|
+
class ActiveJob::DeserializationError < StandardError
|
73
|
+
def initialize; end
|
74
|
+
end
|
75
|
+
class ActiveJob::SerializationError < ArgumentError
|
76
|
+
end
|
77
|
+
module ActiveJob::Arguments
|
78
|
+
def convert_to_global_id_hash(argument); end
|
79
|
+
def deserialize(arguments); end
|
80
|
+
def deserialize_argument(argument); end
|
81
|
+
def deserialize_global_id(hash); end
|
82
|
+
def deserialize_hash(serialized_hash); end
|
83
|
+
def serialize(arguments); end
|
84
|
+
def serialize_argument(argument); end
|
85
|
+
def serialize_hash(argument); end
|
86
|
+
def serialize_hash_key(key); end
|
87
|
+
def serialize_indifferent_hash(indifferent_hash); end
|
88
|
+
def serialized_global_id?(hash); end
|
89
|
+
def transform_symbol_keys(hash, symbol_keys); end
|
90
|
+
extend ActiveJob::Arguments
|
91
|
+
end
|
92
|
+
module ActiveJob::Enqueuing
|
93
|
+
def enqueue(options = nil); end
|
94
|
+
extend ActiveSupport::Concern
|
95
|
+
end
|
96
|
+
module ActiveJob::Enqueuing::ClassMethods
|
97
|
+
def job_or_instantiate(*args); end
|
98
|
+
def perform_later(*args); end
|
99
|
+
end
|
100
|
+
module ActiveJob::Execution
|
101
|
+
def perform(*arg0); end
|
102
|
+
def perform_now; end
|
103
|
+
extend ActiveSupport::Concern
|
104
|
+
include ActiveSupport::Rescuable
|
105
|
+
end
|
106
|
+
module ActiveJob::Execution::ClassMethods
|
107
|
+
def execute(job_data); end
|
108
|
+
def perform_now(*args); end
|
109
|
+
end
|
110
|
+
module ActiveJob::Callbacks
|
111
|
+
def self.__callbacks; end
|
112
|
+
def self.__callbacks?; end
|
113
|
+
def self._execute_callbacks; end
|
114
|
+
def self._run_execute_callbacks(&block); end
|
115
|
+
extend ActiveSupport::Concern
|
116
|
+
include ActiveSupport::Callbacks
|
117
|
+
end
|
118
|
+
module ActiveJob::Callbacks::ClassMethods
|
119
|
+
def after_enqueue(*filters, &blk); end
|
120
|
+
def after_perform(*filters, &blk); end
|
121
|
+
def around_enqueue(*filters, &blk); end
|
122
|
+
def around_perform(*filters, &blk); end
|
123
|
+
def before_enqueue(*filters, &blk); end
|
124
|
+
def before_perform(*filters, &blk); end
|
125
|
+
end
|
126
|
+
module ActiveJob::Exceptions
|
127
|
+
def determine_delay(seconds_or_duration_or_algorithm); end
|
128
|
+
def retry_job(options = nil); end
|
129
|
+
extend ActiveSupport::Concern
|
130
|
+
end
|
131
|
+
module ActiveJob::Exceptions::ClassMethods
|
132
|
+
def discard_on(exception); end
|
133
|
+
def retry_on(exception, wait: nil, attempts: nil, queue: nil, priority: nil); end
|
134
|
+
end
|
135
|
+
module ActiveJob::Logging
|
136
|
+
def logger_tagged_by_active_job?; end
|
137
|
+
def tag_logger(*tags); end
|
138
|
+
extend ActiveSupport::Concern
|
139
|
+
end
|
140
|
+
class ActiveJob::Logging::LogSubscriber < ActiveSupport::LogSubscriber
|
141
|
+
end
|
142
|
+
module ActiveJob::Translation
|
143
|
+
extend ActiveSupport::Concern
|
144
|
+
end
|
145
|
+
module ActiveJob::QueueAdapters
|
146
|
+
def self.lookup(name); end
|
147
|
+
extend ActiveSupport::Autoload
|
148
|
+
end
|
149
|
+
class ActiveJob::QueueAdapters::AsyncAdapter
|
150
|
+
def enqueue(job); end
|
151
|
+
def enqueue_at(job, timestamp); end
|
152
|
+
def immediate=(immediate); end
|
153
|
+
def initialize(**executor_options); end
|
154
|
+
def shutdown(wait: nil); end
|
155
|
+
end
|
156
|
+
class ActiveJob::QueueAdapters::AsyncAdapter::JobWrapper
|
157
|
+
def initialize(job); end
|
158
|
+
def perform; end
|
159
|
+
end
|
160
|
+
class ActiveJob::QueueAdapters::AsyncAdapter::Scheduler
|
161
|
+
def enqueue(job, queue_name:); end
|
162
|
+
def enqueue_at(job, timestamp, queue_name:); end
|
163
|
+
def executor; end
|
164
|
+
def immediate; end
|
165
|
+
def immediate=(arg0); end
|
166
|
+
def initialize(**options); end
|
167
|
+
def shutdown(wait: nil); end
|
168
|
+
end
|
169
|
+
class ActiveJob::Base
|
170
|
+
def __callbacks; end
|
171
|
+
def __callbacks?; end
|
172
|
+
def _enqueue_callbacks; end
|
173
|
+
def _perform_callbacks; end
|
174
|
+
def _run_enqueue_callbacks(&block); end
|
175
|
+
def _run_perform_callbacks(&block); end
|
176
|
+
def arguments; end
|
177
|
+
def arguments=(arg0); end
|
178
|
+
def executions; end
|
179
|
+
def executions=(arg0); end
|
180
|
+
def job_id; end
|
181
|
+
def job_id=(arg0); end
|
182
|
+
def locale; end
|
183
|
+
def locale=(arg0); end
|
184
|
+
def logger; end
|
185
|
+
def logger=(obj); end
|
186
|
+
def priority=(arg0); end
|
187
|
+
def provider_job_id; end
|
188
|
+
def provider_job_id=(arg0); end
|
189
|
+
def queue_name=(arg0); end
|
190
|
+
def rescue_handlers; end
|
191
|
+
def rescue_handlers=(val); end
|
192
|
+
def rescue_handlers?; end
|
193
|
+
def scheduled_at; end
|
194
|
+
def scheduled_at=(arg0); end
|
195
|
+
def self.__callbacks; end
|
196
|
+
def self.__callbacks=(val); end
|
197
|
+
def self.__callbacks?; end
|
198
|
+
def self._enqueue_callbacks; end
|
199
|
+
def self._enqueue_callbacks=(value); end
|
200
|
+
def self._perform_callbacks; end
|
201
|
+
def self._perform_callbacks=(value); end
|
202
|
+
def self._queue_adapter; end
|
203
|
+
def self._queue_adapter=(val); end
|
204
|
+
def self._queue_adapter_name; end
|
205
|
+
def self._queue_adapter_name=(val); end
|
206
|
+
def self._test_adapter; end
|
207
|
+
def self._test_adapter=(val); end
|
208
|
+
def self.logger; end
|
209
|
+
def self.logger=(obj); end
|
210
|
+
def self.priority; end
|
211
|
+
def self.priority=(val); end
|
212
|
+
def self.priority?; end
|
213
|
+
def self.queue_name; end
|
214
|
+
def self.queue_name=(val); end
|
215
|
+
def self.queue_name?; end
|
216
|
+
def self.queue_name_delimiter; end
|
217
|
+
def self.queue_name_delimiter=(val); end
|
218
|
+
def self.queue_name_delimiter?; end
|
219
|
+
def self.rescue_handlers; end
|
220
|
+
def self.rescue_handlers=(val); end
|
221
|
+
def self.rescue_handlers?; end
|
222
|
+
def serialized_arguments=(arg0); end
|
223
|
+
extend ActiveJob::Callbacks::ClassMethods
|
224
|
+
extend ActiveJob::Core::ClassMethods
|
225
|
+
extend ActiveJob::Enqueuing::ClassMethods
|
226
|
+
extend ActiveJob::Exceptions::ClassMethods
|
227
|
+
extend ActiveJob::Execution::ClassMethods
|
228
|
+
extend ActiveJob::QueueAdapter::ClassMethods
|
229
|
+
extend ActiveJob::QueueName::ClassMethods
|
230
|
+
extend ActiveJob::QueuePriority::ClassMethods
|
231
|
+
extend ActiveJob::TestHelper::TestQueueAdapter::ClassMethods
|
232
|
+
extend ActiveSupport::Callbacks::ClassMethods
|
233
|
+
extend ActiveSupport::DescendantsTracker
|
234
|
+
extend ActiveSupport::Rescuable::ClassMethods
|
235
|
+
include ActiveJob::Callbacks
|
236
|
+
include ActiveJob::Core
|
237
|
+
include ActiveJob::Enqueuing
|
238
|
+
include ActiveJob::Exceptions
|
239
|
+
include ActiveJob::Execution
|
240
|
+
include ActiveJob::Logging
|
241
|
+
include ActiveJob::QueueAdapter
|
242
|
+
include ActiveJob::QueueName
|
243
|
+
include ActiveJob::QueuePriority
|
244
|
+
include ActiveJob::TestHelper::TestQueueAdapter
|
245
|
+
include ActiveJob::Translation
|
246
|
+
include ActiveSupport::Callbacks
|
247
|
+
include ActiveSupport::Rescuable
|
248
|
+
end
|
249
|
+
module ActiveJob::TestHelper
|
250
|
+
def after_teardown; end
|
251
|
+
def assert_enqueued_jobs(number, only: nil, except: nil, queue: nil); end
|
252
|
+
def assert_enqueued_with(job: nil, args: nil, at: nil, queue: nil); end
|
253
|
+
def assert_no_enqueued_jobs(only: nil, except: nil, &block); end
|
254
|
+
def assert_no_performed_jobs(only: nil, except: nil, &block); end
|
255
|
+
def assert_performed_jobs(number, only: nil, except: nil); end
|
256
|
+
def assert_performed_with(job: nil, args: nil, at: nil, queue: nil); end
|
257
|
+
def before_setup; end
|
258
|
+
def clear_enqueued_jobs; end
|
259
|
+
def clear_performed_jobs; end
|
260
|
+
def deserialize_args_for_assertion(job); end
|
261
|
+
def enqueued_jobs(*args, &block); end
|
262
|
+
def enqueued_jobs=(arg); end
|
263
|
+
def enqueued_jobs_size(only: nil, except: nil, queue: nil); end
|
264
|
+
def instantiate_job(payload); end
|
265
|
+
def perform_enqueued_jobs(only: nil, except: nil); end
|
266
|
+
def performed_jobs(*args, &block); end
|
267
|
+
def performed_jobs=(arg); end
|
268
|
+
def prepare_args_for_assertion(args); end
|
269
|
+
def queue_adapter; end
|
270
|
+
def queue_adapter_changed_jobs; end
|
271
|
+
def queue_adapter_for_test; end
|
272
|
+
def validate_option(only: nil, except: nil); end
|
273
|
+
end
|
274
|
+
module ActiveJob::TestHelper::TestQueueAdapter
|
275
|
+
extend ActiveSupport::Concern
|
276
|
+
end
|
277
|
+
module ActiveJob::TestHelper::TestQueueAdapter::ClassMethods
|
278
|
+
def disable_test_adapter; end
|
279
|
+
def enable_test_adapter(test_adapter); end
|
280
|
+
def queue_adapter; end
|
281
|
+
end
|
@@ -0,0 +1,740 @@
|
|
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/activemodel/all/activemodel.rbi
|
9
|
+
#
|
10
|
+
# activemodel-5.2.3
|
11
|
+
module ActiveModel
|
12
|
+
def self.eager_load!; end
|
13
|
+
def self.gem_version; end
|
14
|
+
def self.version; end
|
15
|
+
extend ActiveSupport::Autoload
|
16
|
+
end
|
17
|
+
module ActiveModel::VERSION
|
18
|
+
end
|
19
|
+
module ActiveModel::Serializers
|
20
|
+
extend ActiveSupport::Autoload
|
21
|
+
end
|
22
|
+
class ActiveModel::Railtie < Rails::Railtie
|
23
|
+
end
|
24
|
+
class ActiveModel::Attribute
|
25
|
+
def ==(other); end
|
26
|
+
def _original_value_for_database; end
|
27
|
+
def assigned?; end
|
28
|
+
def came_from_user?; end
|
29
|
+
def changed?; end
|
30
|
+
def changed_from_assignment?; end
|
31
|
+
def changed_in_place?; end
|
32
|
+
def encode_with(coder); end
|
33
|
+
def eql?(other); end
|
34
|
+
def forgetting_assignment; end
|
35
|
+
def has_been_read?; end
|
36
|
+
def hash; end
|
37
|
+
def init_with(coder); end
|
38
|
+
def initialize(name, value_before_type_cast, type, original_attribute = nil); end
|
39
|
+
def initialize_dup(other); end
|
40
|
+
def initialized?; end
|
41
|
+
def name; end
|
42
|
+
def original_attribute; end
|
43
|
+
def original_value; end
|
44
|
+
def original_value_for_database; end
|
45
|
+
def self.from_database(name, value, type); end
|
46
|
+
def self.from_user(name, value, type, original_attribute = nil); end
|
47
|
+
def self.null(name); end
|
48
|
+
def self.uninitialized(name, type); end
|
49
|
+
def self.with_cast_value(name, value, type); end
|
50
|
+
def type; end
|
51
|
+
def type_cast(*arg0); end
|
52
|
+
def value; end
|
53
|
+
def value_before_type_cast; end
|
54
|
+
def value_for_database; end
|
55
|
+
def with_cast_value(value); end
|
56
|
+
def with_type(type); end
|
57
|
+
def with_value_from_database(value); end
|
58
|
+
def with_value_from_user(value); end
|
59
|
+
end
|
60
|
+
class ActiveModel::Attribute::FromDatabase < ActiveModel::Attribute
|
61
|
+
def _original_value_for_database; end
|
62
|
+
def type_cast(value); end
|
63
|
+
end
|
64
|
+
class ActiveModel::Attribute::FromUser < ActiveModel::Attribute
|
65
|
+
def came_from_user?; end
|
66
|
+
def type_cast(value); end
|
67
|
+
end
|
68
|
+
class ActiveModel::Attribute::WithCastValue < ActiveModel::Attribute
|
69
|
+
def changed_in_place?; end
|
70
|
+
def type_cast(value); end
|
71
|
+
end
|
72
|
+
class ActiveModel::Attribute::Null < ActiveModel::Attribute
|
73
|
+
def initialize(name); end
|
74
|
+
def type_cast(*arg0); end
|
75
|
+
def with_cast_value(value); end
|
76
|
+
def with_type(type); end
|
77
|
+
def with_value_from_database(value); end
|
78
|
+
def with_value_from_user(value); end
|
79
|
+
end
|
80
|
+
class ActiveModel::Attribute::Uninitialized < ActiveModel::Attribute
|
81
|
+
def forgetting_assignment; end
|
82
|
+
def initialize(name, type); end
|
83
|
+
def initialized?; end
|
84
|
+
def original_value; end
|
85
|
+
def value; end
|
86
|
+
def value_for_database; end
|
87
|
+
def with_type(type); end
|
88
|
+
end
|
89
|
+
class ActiveModel::AttributeSet
|
90
|
+
def ==(other); end
|
91
|
+
def [](name); end
|
92
|
+
def []=(name, value); end
|
93
|
+
def accessed; end
|
94
|
+
def attributes; end
|
95
|
+
def deep_dup; end
|
96
|
+
def each_value(*args, &block); end
|
97
|
+
def except(*args, &block); end
|
98
|
+
def fetch(*args, &block); end
|
99
|
+
def fetch_value(name); end
|
100
|
+
def freeze; end
|
101
|
+
def initialize(attributes); end
|
102
|
+
def initialize_clone(_); end
|
103
|
+
def initialize_dup(_); end
|
104
|
+
def initialized_attributes; end
|
105
|
+
def key?(name); end
|
106
|
+
def keys; end
|
107
|
+
def map(&block); end
|
108
|
+
def reset(key); end
|
109
|
+
def to_h; end
|
110
|
+
def to_hash; end
|
111
|
+
def values_before_type_cast; end
|
112
|
+
def write_cast_value(name, value); end
|
113
|
+
def write_from_database(name, value); end
|
114
|
+
def write_from_user(name, value); end
|
115
|
+
end
|
116
|
+
class ActiveModel::AttributeSet::Builder
|
117
|
+
def build_from_database(values = nil, additional_types = nil); end
|
118
|
+
def default_attributes; end
|
119
|
+
def initialize(types, default_attributes = nil); end
|
120
|
+
def types; end
|
121
|
+
end
|
122
|
+
class ActiveModel::LazyAttributeHash
|
123
|
+
def ==(other); end
|
124
|
+
def [](key); end
|
125
|
+
def []=(key, value); end
|
126
|
+
def additional_types; end
|
127
|
+
def assign_default_value(name); end
|
128
|
+
def deep_dup; end
|
129
|
+
def default_attributes; end
|
130
|
+
def delegate_hash; end
|
131
|
+
def each_key(*args, &block); end
|
132
|
+
def each_value(*args, &block); end
|
133
|
+
def except(*args, &block); end
|
134
|
+
def fetch(*args, &block); end
|
135
|
+
def initialize(types, values, additional_types, default_attributes, delegate_hash = nil); end
|
136
|
+
def initialize_dup(_); end
|
137
|
+
def key?(key); end
|
138
|
+
def marshal_dump; end
|
139
|
+
def marshal_load(values); end
|
140
|
+
def materialize; end
|
141
|
+
def select; end
|
142
|
+
def transform_values(*args, &block); end
|
143
|
+
def types; end
|
144
|
+
def values; end
|
145
|
+
end
|
146
|
+
class ActiveModel::AttributeSet::YAMLEncoder
|
147
|
+
def decode(coder); end
|
148
|
+
def default_types; end
|
149
|
+
def encode(attribute_set, coder); end
|
150
|
+
def initialize(default_types); end
|
151
|
+
end
|
152
|
+
class ActiveModel::MissingAttributeError < NoMethodError
|
153
|
+
end
|
154
|
+
module ActiveModel::AttributeMethods
|
155
|
+
def _read_attribute(attr); end
|
156
|
+
def attribute_method?(attr_name); end
|
157
|
+
def attribute_missing(match, *args, &block); end
|
158
|
+
def matched_attribute_method(method_name); end
|
159
|
+
def method_missing(method, *args, &block); end
|
160
|
+
def missing_attribute(attr_name, stack); end
|
161
|
+
def respond_to?(method, include_private_methods = nil); end
|
162
|
+
def respond_to_without_attributes?(*arg0); end
|
163
|
+
extend ActiveSupport::Concern
|
164
|
+
end
|
165
|
+
module ActiveModel::AttributeMethods::ClassMethods
|
166
|
+
def alias_attribute(new_name, old_name); end
|
167
|
+
def attribute_alias(name); end
|
168
|
+
def attribute_alias?(new_name); end
|
169
|
+
def attribute_method_affix(*affixes); end
|
170
|
+
def attribute_method_matchers_cache; end
|
171
|
+
def attribute_method_matchers_matching(method_name); end
|
172
|
+
def attribute_method_prefix(*prefixes); end
|
173
|
+
def attribute_method_suffix(*suffixes); end
|
174
|
+
def define_attribute_method(attr_name); end
|
175
|
+
def define_attribute_methods(*attr_names); end
|
176
|
+
def define_proxy_call(include_private, mod, name, send, *extra); end
|
177
|
+
def generated_attribute_methods; end
|
178
|
+
def instance_method_already_implemented?(method_name); end
|
179
|
+
def undefine_attribute_methods; end
|
180
|
+
end
|
181
|
+
class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher
|
182
|
+
def initialize(options = nil); end
|
183
|
+
def match(method_name); end
|
184
|
+
def method_missing_target; end
|
185
|
+
def method_name(attr_name); end
|
186
|
+
def plain?; end
|
187
|
+
def prefix; end
|
188
|
+
def suffix; end
|
189
|
+
end
|
190
|
+
class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher::AttributeMethodMatch < Struct
|
191
|
+
def attr_name; end
|
192
|
+
def attr_name=(_); end
|
193
|
+
def method_name; end
|
194
|
+
def method_name=(_); end
|
195
|
+
def self.[](*arg0); end
|
196
|
+
def self.members; end
|
197
|
+
def self.new(*arg0); end
|
198
|
+
def target; end
|
199
|
+
def target=(_); end
|
200
|
+
end
|
201
|
+
class ActiveModel::Errors
|
202
|
+
def [](attribute); end
|
203
|
+
def add(attribute, message = nil, options = nil); end
|
204
|
+
def added?(attribute, message = nil, options = nil); end
|
205
|
+
def apply_default_array(hash); end
|
206
|
+
def as_json(options = nil); end
|
207
|
+
def blank?; end
|
208
|
+
def clear; end
|
209
|
+
def copy!(other); end
|
210
|
+
def count; end
|
211
|
+
def delete(key); end
|
212
|
+
def details; end
|
213
|
+
def each; end
|
214
|
+
def empty?; end
|
215
|
+
def full_message(attribute, message); end
|
216
|
+
def full_messages; end
|
217
|
+
def full_messages_for(attribute); end
|
218
|
+
def generate_message(attribute, type = nil, options = nil); end
|
219
|
+
def has_key?(attribute); end
|
220
|
+
def include?(attribute); end
|
221
|
+
def init_with(coder); end
|
222
|
+
def initialize(base); end
|
223
|
+
def initialize_dup(other); end
|
224
|
+
def key?(attribute); end
|
225
|
+
def keys; end
|
226
|
+
def marshal_dump; end
|
227
|
+
def marshal_load(array); end
|
228
|
+
def merge!(other); end
|
229
|
+
def messages; end
|
230
|
+
def normalize_detail(message, options); end
|
231
|
+
def normalize_message(attribute, message, options); end
|
232
|
+
def size; end
|
233
|
+
def to_a; end
|
234
|
+
def to_hash(full_messages = nil); end
|
235
|
+
def to_xml(options = nil); end
|
236
|
+
def values; end
|
237
|
+
def without_default_proc(hash); end
|
238
|
+
include Enumerable
|
239
|
+
end
|
240
|
+
class ActiveModel::StrictValidationFailed < StandardError
|
241
|
+
end
|
242
|
+
class ActiveModel::RangeError < RangeError
|
243
|
+
end
|
244
|
+
class ActiveModel::UnknownAttributeError < NoMethodError
|
245
|
+
def attribute; end
|
246
|
+
def initialize(record, attribute); end
|
247
|
+
def record; end
|
248
|
+
end
|
249
|
+
module ActiveModel::SecurePassword
|
250
|
+
def self.min_cost; end
|
251
|
+
def self.min_cost=(arg0); end
|
252
|
+
extend ActiveSupport::Concern
|
253
|
+
end
|
254
|
+
module ActiveModel::SecurePassword::ClassMethods
|
255
|
+
def has_secure_password(options = nil); end
|
256
|
+
end
|
257
|
+
module ActiveModel::SecurePassword::InstanceMethodsOnActivation
|
258
|
+
def authenticate(unencrypted_password); end
|
259
|
+
def password; end
|
260
|
+
def password=(unencrypted_password); end
|
261
|
+
def password_confirmation=(unencrypted_password); end
|
262
|
+
end
|
263
|
+
module ActiveModel::Callbacks
|
264
|
+
def _define_after_model_callback(klass, callback); end
|
265
|
+
def _define_around_model_callback(klass, callback); end
|
266
|
+
def _define_before_model_callback(klass, callback); end
|
267
|
+
def define_model_callbacks(*callbacks); end
|
268
|
+
def self.extended(base); end
|
269
|
+
end
|
270
|
+
class ActiveModel::Attribute::UserProvidedDefault < ActiveModel::Attribute::FromUser
|
271
|
+
def initialize(name, value, type, database_default); end
|
272
|
+
def marshal_dump; end
|
273
|
+
def marshal_load(values); end
|
274
|
+
def user_provided_value; end
|
275
|
+
def value_before_type_cast; end
|
276
|
+
def with_type(type); end
|
277
|
+
end
|
278
|
+
class ActiveModel::Name
|
279
|
+
def !~(*args, &block); end
|
280
|
+
def <=>(*args, &block); end
|
281
|
+
def ==(arg); end
|
282
|
+
def ===(arg); end
|
283
|
+
def =~(*args, &block); end
|
284
|
+
def _singularize(string); end
|
285
|
+
def as_json(*args, &block); end
|
286
|
+
def cache_key; end
|
287
|
+
def collection; end
|
288
|
+
def element; end
|
289
|
+
def eql?(*args, &block); end
|
290
|
+
def human(options = nil); end
|
291
|
+
def i18n_key; end
|
292
|
+
def initialize(klass, namespace = nil, name = nil); end
|
293
|
+
def name; end
|
294
|
+
def param_key; end
|
295
|
+
def plural; end
|
296
|
+
def route_key; end
|
297
|
+
def singular; end
|
298
|
+
def singular_route_key; end
|
299
|
+
def to_s(*args, &block); end
|
300
|
+
def to_str(*args, &block); end
|
301
|
+
include Comparable
|
302
|
+
end
|
303
|
+
module ActiveModel::Naming
|
304
|
+
def model_name; end
|
305
|
+
def self.extended(base); end
|
306
|
+
def self.model_name_from_record_or_class(record_or_class); end
|
307
|
+
def self.param_key(record_or_class); end
|
308
|
+
def self.plural(record_or_class); end
|
309
|
+
def self.route_key(record_or_class); end
|
310
|
+
def self.singular(record_or_class); end
|
311
|
+
def self.singular_route_key(record_or_class); end
|
312
|
+
def self.uncountable?(record_or_class); end
|
313
|
+
end
|
314
|
+
module ActiveModel::Translation
|
315
|
+
def human_attribute_name(attribute, options = nil); end
|
316
|
+
def i18n_scope; end
|
317
|
+
def lookup_ancestors; end
|
318
|
+
include ActiveModel::Naming
|
319
|
+
end
|
320
|
+
module ActiveModel::Type
|
321
|
+
def self.default_value; end
|
322
|
+
def self.lookup(*args, **kwargs); end
|
323
|
+
def self.register(type_name, klass = nil, **options, &block); end
|
324
|
+
def self.registry; end
|
325
|
+
def self.registry=(arg0); end
|
326
|
+
end
|
327
|
+
module ActiveModel::Type::Helpers
|
328
|
+
end
|
329
|
+
class ActiveModel::Type::Helpers::AcceptsMultiparameterTime < Module
|
330
|
+
def initialize(defaults: nil); end
|
331
|
+
end
|
332
|
+
module ActiveModel::Type::Helpers::Numeric
|
333
|
+
def cast(value); end
|
334
|
+
def changed?(old_value, _new_value, new_value_before_type_cast); end
|
335
|
+
def non_numeric_string?(value); end
|
336
|
+
def number_to_non_number?(old_value, new_value_before_type_cast); end
|
337
|
+
end
|
338
|
+
module ActiveModel::Type::Helpers::Mutable
|
339
|
+
def cast(value); end
|
340
|
+
def changed_in_place?(raw_old_value, new_value); end
|
341
|
+
end
|
342
|
+
module ActiveModel::Type::Helpers::TimeValue
|
343
|
+
def apply_seconds_precision(value); end
|
344
|
+
def fast_string_to_time(string); end
|
345
|
+
def new_time(year, mon, mday, hour, min, sec, microsec, offset = nil); end
|
346
|
+
def serialize(value); end
|
347
|
+
def type_cast_for_schema(value); end
|
348
|
+
def user_input_in_time_zone(value); end
|
349
|
+
end
|
350
|
+
module ActiveModel::Type::Helpers::Timezone
|
351
|
+
def default_timezone; end
|
352
|
+
def is_utc?; end
|
353
|
+
end
|
354
|
+
class ActiveModel::Type::Value
|
355
|
+
def ==(other); end
|
356
|
+
def assert_valid_value(*arg0); end
|
357
|
+
def binary?; end
|
358
|
+
def cast(value); end
|
359
|
+
def cast_value(value); end
|
360
|
+
def changed?(old_value, new_value, _new_value_before_type_cast); end
|
361
|
+
def changed_in_place?(raw_old_value, new_value); end
|
362
|
+
def deserialize(value); end
|
363
|
+
def eql?(other); end
|
364
|
+
def force_equality?(_value); end
|
365
|
+
def hash; end
|
366
|
+
def initialize(precision: nil, limit: nil, scale: nil); end
|
367
|
+
def limit; end
|
368
|
+
def map(value); end
|
369
|
+
def precision; end
|
370
|
+
def scale; end
|
371
|
+
def serialize(value); end
|
372
|
+
def type; end
|
373
|
+
def type_cast_for_schema(value); end
|
374
|
+
def value_constructed_by_mass_assignment?(_value); end
|
375
|
+
end
|
376
|
+
class ActiveModel::Type::Integer < ActiveModel::Type::Value
|
377
|
+
def _limit; end
|
378
|
+
def cast_value(value); end
|
379
|
+
def deserialize(value); end
|
380
|
+
def ensure_in_range(value); end
|
381
|
+
def initialize(*arg0); end
|
382
|
+
def max_value; end
|
383
|
+
def min_value; end
|
384
|
+
def range; end
|
385
|
+
def serialize(value); end
|
386
|
+
def type; end
|
387
|
+
include ActiveModel::Type::Helpers::Numeric
|
388
|
+
end
|
389
|
+
class ActiveModel::Type::BigInteger < ActiveModel::Type::Integer
|
390
|
+
def max_value; end
|
391
|
+
end
|
392
|
+
class ActiveModel::Type::Binary < ActiveModel::Type::Value
|
393
|
+
def binary?; end
|
394
|
+
def cast(value); end
|
395
|
+
def changed_in_place?(raw_old_value, value); end
|
396
|
+
def serialize(value); end
|
397
|
+
def type; end
|
398
|
+
end
|
399
|
+
class ActiveModel::Type::Binary::Data
|
400
|
+
def ==(other); end
|
401
|
+
def hex; end
|
402
|
+
def initialize(value); end
|
403
|
+
def to_s; end
|
404
|
+
def to_str; end
|
405
|
+
end
|
406
|
+
class ActiveModel::Type::Boolean < ActiveModel::Type::Value
|
407
|
+
def cast_value(value); end
|
408
|
+
def serialize(value); end
|
409
|
+
def type; end
|
410
|
+
end
|
411
|
+
class ActiveModel::Type::Date < ActiveModel::Type::Value
|
412
|
+
def cast_value(value); end
|
413
|
+
def fallback_string_to_date(string); end
|
414
|
+
def fast_string_to_date(string); end
|
415
|
+
def new_date(year, mon, mday); end
|
416
|
+
def serialize(value); end
|
417
|
+
def type; end
|
418
|
+
def type_cast_for_schema(value); end
|
419
|
+
def value_from_multiparameter_assignment(*arg0); end
|
420
|
+
include ActiveModel::Type::Helpers::Timezone
|
421
|
+
include Anonymous_ActiveModel_Type_Helpers_AcceptsMultiparameterTime_5
|
422
|
+
end
|
423
|
+
module Anonymous_ActiveModel_Type_Helpers_AcceptsMultiparameterTime_5
|
424
|
+
def assert_valid_value(value); end
|
425
|
+
def cast(value); end
|
426
|
+
def value_constructed_by_mass_assignment?(value); end
|
427
|
+
def value_from_multiparameter_assignment(values_hash); end
|
428
|
+
end
|
429
|
+
class ActiveModel::Type::DateTime < ActiveModel::Type::Value
|
430
|
+
def cast_value(value); end
|
431
|
+
def fallback_string_to_time(string); end
|
432
|
+
def microseconds(time); end
|
433
|
+
def serialize(value); end
|
434
|
+
def type; end
|
435
|
+
def value_from_multiparameter_assignment(values_hash); end
|
436
|
+
include ActiveModel::Type::Helpers::TimeValue
|
437
|
+
include ActiveModel::Type::Helpers::Timezone
|
438
|
+
include Anonymous_ActiveModel_Type_Helpers_AcceptsMultiparameterTime_6
|
439
|
+
end
|
440
|
+
module Anonymous_ActiveModel_Type_Helpers_AcceptsMultiparameterTime_6
|
441
|
+
def assert_valid_value(value); end
|
442
|
+
def cast(value); end
|
443
|
+
def value_constructed_by_mass_assignment?(value); end
|
444
|
+
def value_from_multiparameter_assignment(values_hash); end
|
445
|
+
end
|
446
|
+
class ActiveModel::Type::Decimal < ActiveModel::Type::Value
|
447
|
+
def apply_scale(value); end
|
448
|
+
def cast_value(value); end
|
449
|
+
def convert_float_to_big_decimal(value); end
|
450
|
+
def float_precision; end
|
451
|
+
def type; end
|
452
|
+
def type_cast_for_schema(value); end
|
453
|
+
include ActiveModel::Type::Helpers::Numeric
|
454
|
+
end
|
455
|
+
class ActiveModel::Type::Float < ActiveModel::Type::Value
|
456
|
+
def cast_value(value); end
|
457
|
+
def serialize(value); end
|
458
|
+
def type; end
|
459
|
+
def type_cast_for_schema(value); end
|
460
|
+
include ActiveModel::Type::Helpers::Numeric
|
461
|
+
end
|
462
|
+
class ActiveModel::Type::ImmutableString < ActiveModel::Type::Value
|
463
|
+
def cast_value(value); end
|
464
|
+
def serialize(value); end
|
465
|
+
def type; end
|
466
|
+
end
|
467
|
+
class ActiveModel::Type::String < ActiveModel::Type::ImmutableString
|
468
|
+
def cast_value(value); end
|
469
|
+
def changed_in_place?(raw_old_value, new_value); end
|
470
|
+
end
|
471
|
+
class ActiveModel::Type::Time < ActiveModel::Type::Value
|
472
|
+
def cast_value(value); end
|
473
|
+
def serialize(value); end
|
474
|
+
def type; end
|
475
|
+
def user_input_in_time_zone(value); end
|
476
|
+
include ActiveModel::Type::Helpers::TimeValue
|
477
|
+
include ActiveModel::Type::Helpers::Timezone
|
478
|
+
include Anonymous_ActiveModel_Type_Helpers_AcceptsMultiparameterTime_7
|
479
|
+
end
|
480
|
+
module Anonymous_ActiveModel_Type_Helpers_AcceptsMultiparameterTime_7
|
481
|
+
def assert_valid_value(value); end
|
482
|
+
def cast(value); end
|
483
|
+
def value_constructed_by_mass_assignment?(value); end
|
484
|
+
def value_from_multiparameter_assignment(values_hash); end
|
485
|
+
end
|
486
|
+
class ActiveModel::Type::Registry
|
487
|
+
def find_registration(symbol, *args); end
|
488
|
+
def initialize; end
|
489
|
+
def lookup(symbol, *args); end
|
490
|
+
def register(type_name, klass = nil, **options, &block); end
|
491
|
+
def registration_klass; end
|
492
|
+
def registrations; end
|
493
|
+
end
|
494
|
+
class ActiveModel::Type::Registration
|
495
|
+
def block; end
|
496
|
+
def call(_registry, *args, **kwargs); end
|
497
|
+
def initialize(name, block, **arg2); end
|
498
|
+
def matches?(type_name, *args, **kwargs); end
|
499
|
+
def name; end
|
500
|
+
end
|
501
|
+
class ActiveModel::ForbiddenAttributesError < StandardError
|
502
|
+
end
|
503
|
+
module ActiveModel::ForbiddenAttributesProtection
|
504
|
+
def sanitize_for_mass_assignment(attributes); end
|
505
|
+
def sanitize_forbidden_attributes(attributes); end
|
506
|
+
end
|
507
|
+
module ActiveModel::AttributeAssignment
|
508
|
+
def _assign_attribute(k, v); end
|
509
|
+
def _assign_attributes(attributes); end
|
510
|
+
def assign_attributes(new_attributes); end
|
511
|
+
def attributes=(new_attributes); end
|
512
|
+
include ActiveModel::ForbiddenAttributesProtection
|
513
|
+
end
|
514
|
+
module ActiveModel::Conversion
|
515
|
+
def to_key; end
|
516
|
+
def to_model; end
|
517
|
+
def to_param; end
|
518
|
+
def to_partial_path; end
|
519
|
+
extend ActiveSupport::Concern
|
520
|
+
end
|
521
|
+
module ActiveModel::Conversion::ClassMethods
|
522
|
+
def _to_partial_path; end
|
523
|
+
end
|
524
|
+
module ActiveModel::Validations
|
525
|
+
def errors; end
|
526
|
+
def initialize_dup(other); end
|
527
|
+
def invalid?(context = nil); end
|
528
|
+
def raise_validation_error; end
|
529
|
+
def read_attribute_for_validation(*arg0); end
|
530
|
+
def run_validations!; end
|
531
|
+
def valid?(context = nil); end
|
532
|
+
def validate!(context = nil); end
|
533
|
+
def validate(context = nil); end
|
534
|
+
def validates_with(*args, &block); end
|
535
|
+
extend ActiveSupport::Concern
|
536
|
+
end
|
537
|
+
module ActiveModel::Validations::HelperMethods
|
538
|
+
def _merge_attributes(attr_names); end
|
539
|
+
def validates_absence_of(*attr_names); end
|
540
|
+
def validates_acceptance_of(*attr_names); end
|
541
|
+
def validates_confirmation_of(*attr_names); end
|
542
|
+
def validates_exclusion_of(*attr_names); end
|
543
|
+
def validates_format_of(*attr_names); end
|
544
|
+
def validates_inclusion_of(*attr_names); end
|
545
|
+
def validates_length_of(*attr_names); end
|
546
|
+
def validates_numericality_of(*attr_names); end
|
547
|
+
def validates_presence_of(*attr_names); end
|
548
|
+
def validates_size_of(*attr_names); end
|
549
|
+
end
|
550
|
+
module ActiveModel::Validations::Callbacks
|
551
|
+
def run_validations!; end
|
552
|
+
extend ActiveSupport::Concern
|
553
|
+
end
|
554
|
+
module ActiveModel::Validations::Callbacks::ClassMethods
|
555
|
+
def after_validation(*args, &block); end
|
556
|
+
def before_validation(*args, &block); end
|
557
|
+
end
|
558
|
+
module ActiveModel::Validations::Clusivity
|
559
|
+
def check_validity!; end
|
560
|
+
def delimiter; end
|
561
|
+
def include?(record, value); end
|
562
|
+
def inclusion_method(enumerable); end
|
563
|
+
end
|
564
|
+
class ActiveModel::Validator
|
565
|
+
def initialize(options = nil); end
|
566
|
+
def kind; end
|
567
|
+
def options; end
|
568
|
+
def self.kind; end
|
569
|
+
def validate(record); end
|
570
|
+
end
|
571
|
+
class ActiveModel::EachValidator < ActiveModel::Validator
|
572
|
+
def attributes; end
|
573
|
+
def check_validity!; end
|
574
|
+
def initialize(options); end
|
575
|
+
def validate(record); end
|
576
|
+
def validate_each(record, attribute, value); end
|
577
|
+
end
|
578
|
+
class ActiveModel::BlockValidator < ActiveModel::EachValidator
|
579
|
+
def initialize(options, &block); end
|
580
|
+
def validate_each(record, attribute, value); end
|
581
|
+
end
|
582
|
+
class ActiveModel::Validations::ExclusionValidator < ActiveModel::EachValidator
|
583
|
+
def validate_each(record, attribute, value); end
|
584
|
+
include ActiveModel::Validations::Clusivity
|
585
|
+
end
|
586
|
+
class ActiveModel::Validations::AcceptanceValidator < ActiveModel::EachValidator
|
587
|
+
def acceptable_option?(value); end
|
588
|
+
def initialize(options); end
|
589
|
+
def setup!(klass); end
|
590
|
+
def validate_each(record, attribute, value); end
|
591
|
+
end
|
592
|
+
class ActiveModel::Validations::AcceptanceValidator::LazilyDefineAttributes < Module
|
593
|
+
def initialize(attribute_definition); end
|
594
|
+
end
|
595
|
+
class ActiveModel::Validations::AcceptanceValidator::AttributeDefinition
|
596
|
+
def attributes; end
|
597
|
+
def convert_to_reader_name(method_name); end
|
598
|
+
def define_on(klass); end
|
599
|
+
def initialize(attributes); end
|
600
|
+
def matches?(method_name); end
|
601
|
+
end
|
602
|
+
class ActiveModel::Validations::WithValidator < ActiveModel::EachValidator
|
603
|
+
def validate_each(record, attr, val); end
|
604
|
+
end
|
605
|
+
module ActiveModel::Validations::ClassMethods
|
606
|
+
def _parse_validates_options(options); end
|
607
|
+
def _validates_default_keys; end
|
608
|
+
def attribute_method?(attribute); end
|
609
|
+
def clear_validators!; end
|
610
|
+
def inherited(base); end
|
611
|
+
def validate(*args, &block); end
|
612
|
+
def validates!(*attributes); end
|
613
|
+
def validates(*attributes); end
|
614
|
+
def validates_each(*attr_names, &block); end
|
615
|
+
def validates_with(*args, &block); end
|
616
|
+
def validators; end
|
617
|
+
def validators_on(*attributes); end
|
618
|
+
end
|
619
|
+
class ActiveModel::Validations::LengthValidator < ActiveModel::EachValidator
|
620
|
+
def check_validity!; end
|
621
|
+
def initialize(options); end
|
622
|
+
def skip_nil_check?(key); end
|
623
|
+
def validate_each(record, attribute, value); end
|
624
|
+
end
|
625
|
+
class ActiveModel::Validations::ConfirmationValidator < ActiveModel::EachValidator
|
626
|
+
def confirmation_value_equal?(record, attribute, value, confirmed); end
|
627
|
+
def initialize(options); end
|
628
|
+
def setup!(klass); end
|
629
|
+
def validate_each(record, attribute, value); end
|
630
|
+
end
|
631
|
+
class ActiveModel::Validations::AbsenceValidator < ActiveModel::EachValidator
|
632
|
+
def validate_each(record, attr_name, value); end
|
633
|
+
end
|
634
|
+
class ActiveModel::Validations::InclusionValidator < ActiveModel::EachValidator
|
635
|
+
def validate_each(record, attribute, value); end
|
636
|
+
include ActiveModel::Validations::Clusivity
|
637
|
+
end
|
638
|
+
class ActiveModel::Validations::FormatValidator < ActiveModel::EachValidator
|
639
|
+
def check_options_validity(name); end
|
640
|
+
def check_validity!; end
|
641
|
+
def option_call(record, name); end
|
642
|
+
def record_error(record, attribute, name, value); end
|
643
|
+
def regexp_using_multiline_anchors?(regexp); end
|
644
|
+
def validate_each(record, attribute, value); end
|
645
|
+
end
|
646
|
+
class ActiveModel::Validations::PresenceValidator < ActiveModel::EachValidator
|
647
|
+
def validate_each(record, attr_name, value); end
|
648
|
+
end
|
649
|
+
class ActiveModel::Validations::NumericalityValidator < ActiveModel::EachValidator
|
650
|
+
def allow_only_integer?(record); end
|
651
|
+
def check_validity!; end
|
652
|
+
def filtered_options(value); end
|
653
|
+
def is_hexadecimal_literal?(raw_value); end
|
654
|
+
def is_integer?(raw_value); end
|
655
|
+
def is_number?(raw_value); end
|
656
|
+
def parse_as_number(raw_value); end
|
657
|
+
def record_attribute_changed_in_place?(record, attr_name); end
|
658
|
+
def validate_each(record, attr_name, value); end
|
659
|
+
end
|
660
|
+
class ActiveModel::ValidationError < StandardError
|
661
|
+
def initialize(model); end
|
662
|
+
def model; end
|
663
|
+
end
|
664
|
+
class ActiveModel::AttributeMutationTracker
|
665
|
+
def any_changes?; end
|
666
|
+
def attr_names; end
|
667
|
+
def attributes; end
|
668
|
+
def change_to_attribute(attr_name); end
|
669
|
+
def changed?(attr_name, from: nil, to: nil); end
|
670
|
+
def changed_attribute_names; end
|
671
|
+
def changed_in_place?(attr_name); end
|
672
|
+
def changed_values; end
|
673
|
+
def changes; end
|
674
|
+
def force_change(attr_name); end
|
675
|
+
def forced_changes; end
|
676
|
+
def forget_change(attr_name); end
|
677
|
+
def initialize(attributes); end
|
678
|
+
def original_value(attr_name); end
|
679
|
+
end
|
680
|
+
class ActiveModel::NullMutationTracker
|
681
|
+
def any_changes?(*arg0); end
|
682
|
+
def change_to_attribute(attr_name); end
|
683
|
+
def changed?(*arg0); end
|
684
|
+
def changed_attribute_names(*arg0); end
|
685
|
+
def changed_in_place?(*arg0); end
|
686
|
+
def changed_values(*arg0); end
|
687
|
+
def changes(*arg0); end
|
688
|
+
def force_change(*arg0); end
|
689
|
+
def forget_change(*arg0); end
|
690
|
+
def original_value(*arg0); end
|
691
|
+
def self.allocate; end
|
692
|
+
def self.instance; end
|
693
|
+
def self.new(*arg0); end
|
694
|
+
extend Singleton::SingletonClassMethods
|
695
|
+
include Singleton
|
696
|
+
end
|
697
|
+
module ActiveModel::Dirty
|
698
|
+
def attribute_change(attr); end
|
699
|
+
def attribute_changed?(attr, from: nil, to: nil); end
|
700
|
+
def attribute_changed_by_setter?(attr_name); end
|
701
|
+
def attribute_changed_in_place?(attr_name); end
|
702
|
+
def attribute_previous_change(attr); end
|
703
|
+
def attribute_previously_changed?(attr); end
|
704
|
+
def attribute_was(attr); end
|
705
|
+
def attribute_will_change!(attr); end
|
706
|
+
def attributes_changed_by_setter; end
|
707
|
+
def cache_changed_attributes; end
|
708
|
+
def changed; end
|
709
|
+
def changed?; end
|
710
|
+
def changed_attributes; end
|
711
|
+
def changes; end
|
712
|
+
def changes_applied; end
|
713
|
+
def changes_include?(attr_name); end
|
714
|
+
def clear_attribute_change(attr_name); end
|
715
|
+
def clear_attribute_changes(attr_names); end
|
716
|
+
def clear_changed_attributes_cache; end
|
717
|
+
def clear_changes_information; end
|
718
|
+
def forget_attribute_assignments; end
|
719
|
+
def initialize_dup(other); end
|
720
|
+
def mutations_before_last_save; end
|
721
|
+
def mutations_from_database; end
|
722
|
+
def previous_changes; end
|
723
|
+
def previous_changes_include?(attr_name); end
|
724
|
+
def restore_attribute!(attr); end
|
725
|
+
def restore_attributes(attributes = nil); end
|
726
|
+
def set_attribute_was(attr, old_value); end
|
727
|
+
extend ActiveSupport::Concern
|
728
|
+
include ActiveModel::AttributeMethods
|
729
|
+
end
|
730
|
+
module ActiveModel::Serialization
|
731
|
+
def read_attribute_for_serialization(*arg0); end
|
732
|
+
def serializable_add_includes(options = nil); end
|
733
|
+
def serializable_hash(options = nil); end
|
734
|
+
end
|
735
|
+
module ActiveModel::Serializers::JSON
|
736
|
+
def as_json(options = nil); end
|
737
|
+
def from_json(json, include_root = nil); end
|
738
|
+
extend ActiveSupport::Concern
|
739
|
+
include ActiveModel::Serialization
|
740
|
+
end
|