Skip to content

Commit

Permalink
Release version 2.0.0 and print upgrade notice.
Browse files Browse the repository at this point in the history
This new version drops built-in filtering of /assets, and leaves
all paths to be excluded from maintenance to be configured by
the user.
  • Loading branch information
tilsammans committed Sep 9, 2014
1 parent 128f504 commit b6174e5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

******** Rack::Maintenance 2.0.0 *********

Rack::Maintenance 2.0.0 has dropped the built-in filter for /assets.
This means that all your paths will now be blocked in maintenance
mode, unless you exclude them in the configuration.

To bring back pre-2.0.0 behaviour, configure the gem like so:

config.middleware.use 'Rack::Maintenance',
file: Rails.root.join("public", "maintenance.html"),
without: /\A\/assets/


2 changes: 1 addition & 1 deletion lib/rack/maintenance/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Rack
class Maintenance
VERSION = "1.2.0"
VERSION = "2.0.0"
end
end
1 change: 1 addition & 0 deletions rack-maintenance.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Gem::Specification.new do |s|
s.homepage = "http://github.com/tilsammans/rack-maintenance"
s.summary = "Detect and show a maintenance page"
s.description = "Detect and show a maintenance page"
s.post_install_message = File.read("UPGRADING")

s.files = Dir["{app,config,db,lib}/**/*"] + ["LICENSE", "Rakefile", "README.rdoc"]
s.test_files = Dir["spec/**/*"]
Expand Down

0 comments on commit b6174e5

Please sign in to comment.