This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
v0.6.0
Major changes
These major changes were to address the issue of routes being inherited, or in response to this fix
- Remove
ApplicationController
fromapp/controllers
directory to prevent routes being defined in it (since the main cause of route inheritance is from the fact that each controller subclassesApplicationController
) - Add
MainController
which now effectively works the same way as the oldapp/controllers/application_controller.rb
- it is rooted at/
- Add
MainHelper
which is the helper module forMainController
only.ApplicationHelper
still exists, and is still used for defining methods which should be available to all subclassing controllers - Change maintenance mode to use before filters to redirect to
MainController
's/maintenance
method. Additionally, maintenance mode and the maintenance route are now both configured inapp.rb
- Change asset pipeline setup to only define
/assets/*
at the root (MainController
) rather than relative to each controller - Prevent
app/controllers/main_controller.rb
from being deleted through the CLI
Other major changes
- Add
render_static
method as an abstraction forsend_file
, to avoid having to typesend_file File.join(settings.public_folder, file)
- Change ordering of require directives in
eucalypt/load.rb
- Move asset pipeline configuration into the library (to avoid cluttering the application)
Minor changes
- Add a default index page if
/
is not defined inMainController
- Change default logging configurations
Lumberjack::Severity::DEBUG
is now the default severity for the development environment- Remove unnecessary
Lumberjack::Severity::INFO
specification for the production environment, sinceset :logging
defaults to this severity anyway
- Delete unused
eucalypt/guard.rb
file - Change default specs to all be true
- Remove
bundle exec
fromProcfile
since theeucalypt launch
command already executesrackup
underbundle exec