1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

update changes

This commit is contained in:
Konstantin Haase 2011-06-16 15:35:04 +02:00
parent 2c5403aa6a
commit bf6c876c19

36
CHANGES
View file

@ -26,16 +26,21 @@
was enabled or not. Also, expose that logger with the `logger` helper was enabled or not. Also, expose that logger with the `logger` helper
method. (Konstantin Haase) method. (Konstantin Haase)
* The sessions setting now may be an options hash. (Konstantin Haase) * The sessions setting may be an options hash now. (Konstantin Haase)
* Important: 1.8.6 support has been dropped. This version also depends on at * Important: Ruby 1.8.6 support has been dropped. This version also depends
least Rack 1.3.0. This means that it is incompatible to Rails prior to 3.1.0. on at least Rack 1.3.0. This means that it is incompatible to Rails prior
Please use 1.2.x if you require an earlier version for Ruby or Rack, which we to 3.1.0. Please use 1.2.x if you require an earlier version of Ruby or
will continue to supply with bug fixes. (Konstantin Haase) Rack, which we will continue to supply with bug fixes. (Konstantin Haase)
* It is now possible to use a different target class for the top level DSL (aka * Renamed `:public` to `:public_folder` to avoid overriding Ruby's built-in
classic style) than `Sinatra::Application` by setting `Delegator.target`. `public` method/keyword. `set(:public, ...)` is still possible but shows a
This was mainly introduced to ease testing. (Konstantin Haase) warning. (Konstantin Haase)
* It is now possible to use a different target class for the top level DSL
(aka classic style) than `Sinatra::Application` by setting
`Delegator.target`. This was mainly introduced to ease testing. (Konstantin
Haase)
* Error handlers defined for an error class will now also handle subclasses of * Error handlers defined for an error class will now also handle subclasses of
that class, unless more specific error handlers exist. (Konstantin Haase) that class, unless more specific error handlers exist. (Konstantin Haase)
@ -49,6 +54,13 @@
* Added `request.accept?` and `request.preferred_type` to ease dealing with * Added `request.accept?` and `request.preferred_type` to ease dealing with
`Accept` headers. (Konstantin Haase) `Accept` headers. (Konstantin Haase)
* Added `:static_cache_control` setting to automatically set cache control
headers to static files. (Kenichi Nakamura)
* Added `informal?`, `success?`, `redirect?`, `client_error?`,
`server_error?` and `not_found?` helper methods to ease dealing with status
codes. (Konstantin Haase)
* Uses SecureRandom to generate default session secret. (Konstantin Haase) * Uses SecureRandom to generate default session secret. (Konstantin Haase)
* `Sinatra.run!` now prints to stderr rather than stdout. (Andrew Armenia) * `Sinatra.run!` now prints to stderr rather than stdout. (Andrew Armenia)
@ -65,11 +77,15 @@
allows you to run Sinatra with custom Rack handlers, like Kirk or Mongrel2. allows you to run Sinatra with custom Rack handlers, like Kirk or Mongrel2.
Example: `ruby app.rb -s Mongrel2` (Konstantin Haase) Example: `ruby app.rb -s Mongrel2` (Konstantin Haase)
* Middleware setup is now distributed across multiple methods, allowing Sinatra * Middleware setup is now distributed across multiple methods, allowing
extensions to easily hook into the setup process. (Konstantin Haase) Sinatra extensions to easily hook into the setup process. (Konstantin
Haase)
* Internal refactoring and minor performance improvements. (Konstantin Haase) * Internal refactoring and minor performance improvements. (Konstantin Haase)
* Move Sinatra::VERSION to separate file, so it can be checked without
loading Sinatra. (Konstantin Haase)
= 1.2.7 (backports release) / Not Yet Released = 1.2.7 (backports release) / Not Yet Released
Custom changes: Custom changes: