Skip to content
Browse files

update changes (1.3.0)

  • Loading branch information...
1 parent 2e9534e commit 555040b58db4c3cd1ebfb1a597a9841a0d79c292 @rkh rkh committed
Showing with 39 additions and 8 deletions.
  1. +39 −8 CHANGES
View
47 CHANGES
@@ -1,5 +1,14 @@
= 1.3.0 / Not Yet Released
+ * Added `stream` helper method for easily creating streaming APIs, Server
+ Sent Events or even WebSockets. See README for more on that topic.
+ (Konstantin Haase)
+
+ * If a HTTP 1.1 client is redirected from a different verb than GET, use 303
+ instead of 302 by default. You may still pass 302 explicitly. Fixes AJAX
+ redirects in Internet Explorer 9 (to be fair, everyone else is doing it
+ wrong and IE is behaving correct). (Konstantin Haase)
+
* Added support for HTTP PATCH requests. (Konstantin Haase)
* Support for Creole templates, Creole is a standardized wiki markup,
@@ -14,9 +23,9 @@
version. This makes Sinatra confirm with RFC 2396 section 2.2 and RFC 2616
section 3.2.3 (escaped reserved characters should not be treated like the
unescaped version), meaning that "/:name" will also match `/foo%2Fbar`, but
- not `/foo/bar`. To avoid incompatibility, pattern matching has been adjusted.
- Moreover, since we do no longer need to keep an unescaped version of
- path_info around, we handle all changes to `env['PATH_INFO']` correctly.
+ not `/foo/bar`. To avoid incompatibility, pattern matching has been
+ adjusted. Moreover, since we do no longer need to keep an unescaped version
+ of path_info around, we handle all changes to `env['PATH_INFO']` correctly.
(Konstantin Haase)
* `settings.app_file` now defaults to the file subclassing `Sinatra::Base` in
@@ -42,14 +51,15 @@
`Delegator.target`. This was mainly introduced to ease testing. (Konstantin
Haase)
- * Error handlers defined for an error class will now also handle subclasses of
- that class, unless more specific error handlers exist. (Konstantin Haase)
+ * Error handlers defined for an error class will now also handle subclasses
+ of that class, unless more specific error handlers exist. (Konstantin
+ Haase)
* Error handling respects Exception#code, again. (Konstantin Haase)
* Changing a setting will merge hashes: `set(:x, :a => 1); set(:x :b => 2)`
- will result in `{:a => 1, :b => 2}`. Use `set(:x, {:a => 1}, true)` to avoid
- this behavior. (Konstantin Haase)
+ will result in `{:a => 1, :b => 2}`. Use `set(:x, {:a => 1}, true)` to
+ avoid this behavior. (Konstantin Haase)
* Added `request.accept?` and `request.preferred_type` to ease dealing with
`Accept` headers. (Konstantin Haase)
@@ -63,11 +73,23 @@
* Uses SecureRandom to generate default session secret. (Konstantin Haase)
- * `Sinatra.run!` now prints to stderr rather than stdout. (Andrew Armenia)
+ * The `attachment` helper will set Content-Type (if it hasn't been set yet)
+ depending on the supplied file name. (Vasiliy Ermolovich)
+
+ * Conditional requests on `etag` helper now work properly for unsafe HTTP
+ methods. (Matthew Schinckel, Konstantin Haase)
+
+ * `Sinatra::Base.run!` now prints to stderr rather than stdout. (Andrew
+ Armenia)
+
+ * `Sinatra::Base.run!` takes a block allowing access to the Rack handler.
+ (David Waite)
* Automatic `app_file` detection now works in directories containing brackets
(Konstantin Haase)
+ * Exception objects are now passed to error handlers. (Konstantin Haase)
+
* Improved documentation. (Emanuele Vicentini, Peter Higgins, Takanori
Ishikawa, Konstantin Haase)
@@ -77,6 +99,9 @@
allows you to run Sinatra with custom Rack handlers, like Kirk or Mongrel2.
Example: `ruby app.rb -s Mongrel2` (Konstantin Haase)
+ * Ignore `to_ary` on response bodies. Fixes compatibility to Rails 3.1.
+ (Konstantin Haase)
+
* Middleware setup is now distributed across multiple methods, allowing
Sinatra extensions to easily hook into the setup process. (Konstantin
Haase)
@@ -86,6 +111,12 @@
* Move Sinatra::VERSION to separate file, so it can be checked without
loading Sinatra. (Konstantin Haase)
+ * Command line options now complain if value passed to `-p` is not a valid
+ integer. (Konstantin Haase)
+
+ * Fix handling of broken query params when displaying exceptions. (Luke
+ Jahnke)
+
= 1.2.7 (backports release) / Not Yet Released
Custom changes:

0 comments on commit 555040b

Please sign in to comment.
Something went wrong with that request. Please try again.