This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
v0.5.0
Major changes
-
Introduce IP whitelisting with the
Eucalypt::Whitelist
class, and IP-protected routes with theip_check
helper method -
Rework maintenance mode to be defined with a special route in the
ApplicationController
:maintenance do static '/maintenance.html' end
This redirects every route to this one. This special route is enabled or disabled through the
:maintenance
setting inapp.rb
.
Minor changes
- Introduce
static
controller class method for redirecting to, or rendering static HTML files stored in theapp/static
directory (this is essentially just an alias forredirect
) - Move
Eucalypt.require
directives toeucalypt/load.rb
within the library rather than in the application - Remove unnecessary
root
andserver
settings fromapp.rb
- Rename
config/asset_pipeline.rb
toconfig/assets.rb