aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/zeitwerk_integration_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* let autoloaded? support modules with overridden names [closes #36757]Xavier Noria2019-07-251-0/+9
|
* upgrades Zeitwerk to 2.1.4Xavier Noria2019-04-231-51/+21
| | | | | | This commit more or less undoes 9b5401f, restores autoloaded? not to touch the descendants tracker, and autoloaded_constants because it is documented in the guide.
* improves the reloading disabled error messageXavier Noria2019-04-111-0/+9
| | | | | | | | The original message from Zeitwerk is "can't reload, please call loader.enable_reloading before setup (Zeitwerk::Error)", which is not very informative for Rails programmers. Rails should err with a message worded in terms of its interface.
* cleanup up constant in test suiteXavier Noria2019-04-091-0/+1
|
* depend on Zeitwerk 2.1.0Xavier Noria2019-04-091-9/+61
|
* depend on Zeitwerk 2Xavier Noria2019-04-071-0/+14
|
* Auto-correct rubocop offencesRyuta Kamizono2019-04-031-2/+2
|
* [ci skip] Fix typo directores -> directoriesAbhay Nikam2019-03-301-1/+1
|
* optimizes eager loading in :zeitwerk modeXavier Noria2019-03-301-0/+14
| | | | | | | | | | | During initialization, the eager load paths of engines are unshifted into AS::Dependencies.autoload_paths. After that, the collection is frozen. (See the initializers in railties/lib/rails/engine.rb.) Hence, there is no eager load path that is not an autoload path too, and so the array difference in the deleted code is always an empty array. Just do nothing.
* fixes eager loading edge case in :zeitwerk modeXavier Noria2019-03-301-0/+28
|
* Engines are reloaded in Zeitwerk mode [closes #35618]Xavier Noria2019-03-151-14/+19
|
* Make this test strongerXavier Noria2019-02-231-0/+7
| | | | | We test the inflections for both autoloaders, but we can also autoload the constant as a sort of integration test.
* Let Zeitwerk autoloaders inflect with Active SupportXavier Noria2019-02-231-0/+18
| | | | [Harry Brundage & Xavier Noria]
* simplifies Rails.autoloaders.logger=Xavier Noria2019-02-211-2/+2
| | | | Possible thanks to Zeitwerk 1.3.0.
* simplify AS::Dependencies.verbose=Xavier Noria2019-02-211-4/+4
| | | | Possible thanks to Zeitwerk 1.3.0.
* Define Rails.autoloaders.logger=Xavier Noria2019-02-211-0/+23
|
* let Zeitwerk integration unhook AS::DependenciesXavier Noria2019-02-191-0/+7
|
* Implement AS::Dependencies.verbose= compatibility for :zeitwerk modeXavier Noria2019-02-151-0/+36
|
* Replace autoloader accessors with Rails.autoloaders.{main,once}Xavier Noria2019-02-141-13/+15
| | | | | | | | | | | | | | | | Rails.autoloader and Rails.once_autoloader was just tentative API good enough for a first patch. Rails.autoloader is singular and does not convey in its name that there is another autoloader. That might be confusing, for example if you set a logger and miss traces. On the other hand, the name `once_autoloader` is very close to being horrible. Rails.autoloaders.main and Rails.autoloaders.once read better for my taste, and have a nice symmetry. Also, both "main" and "once" are four letters long, short and same length. They are tagged as "rails.main" and "rails.once", respectively. References #35235.
* styleXavier Noria2019-02-121-3/+3
|
* Zeitwerk integrationXavier Noria2019-02-121-0/+164