Skip to content
Newer
Older
100644 168 lines (107 sloc) 5.82 KB
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored Jan 6, 2009
1 = 0.9.0 (unreleased)
2
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored Jan 11, 2009
3 * Works with and requires Rack >= 0.9.1
4
5 * Multiple Sinatra applications can now co-exist peacefully within a
6 single process. The new "Sinatra::Base" class can be subclassed to
7 establish a blank-slate Rack application or middleware component.
8 Documentation on using these features is forth-coming; the following
9 provides the basic gist: http://gist.github.com/38605
10
11 * Regular expressions may now be used in route pattens; captures are
12 available at "params[:captures]".
b5faa57 @rtomayko Dump backtrace to rack.errors on unhandled exception
rtomayko authored Jan 9, 2009
13
38778ed @cypher Add filtering support for Accept HTTP header.
cypher authored Jan 7, 2009
14 * New ":provides" route condition takes an array of mime types and
15 matches only when an Accept request header is present with a
16 corresponding type. [cypher]
17
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored Jan 11, 2009
18 * New request-level "pass" method; immediately exits the current block
19 and passes control to the next matching route.
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored Jan 7, 2009
20
21 * The request-level "body" method now takes a block; evaluation is
22 deferred until an attempt is made to read the body. The block must
23 return a String or Array.
24
25 * New "route conditions" system for attaching rules for when a route
26 matches. The :agent and :host route options now use this system.
27
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored Jan 11, 2009
28 * New "dump_errors" option controls whether the backtrace is dumped to
29 rack.errors when an exception is raised from a route. The option is
30 enabled by default for top-level apps.
31
32 * Better default "app_file", "root", "public", and "views" location
33 detection; changes to "root" and "app_file" automatically cascade to
34 other options that depend on them.
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored Jan 7, 2009
35
36 * Error mappings are now split into two distinct layers: exception
37 mappings and custom error pages. Exception mappings are registered
38 with "error(Exception)" and are run only when the app raises an
39 exception. Custom error pages are registered with "error(status_code)",
40 where "status_code" is an integer, and are run any time the response
41 has the status code specified. It's also possible to register an error
42 page for a range of status codes: "error(500..599)".
43
44 * Deprecated "set_option" and "set_options"; use "set" instead.
45
46 * Deprecated the "env" option ("options.env"); use "environment" instead.
47
48 * Deprecated the request level "stop" method; use "halt" instead.
49
50 * Deprecated the request level "entity_tag" method; use "etag" instead.
51 Both "entity_tag" and "etag" were previously supported.
52
53 * Deprecated the request level "headers" method (HTTP response headers);
54 use "response['Header-Name']" instead.
55
56 * Deprecated "Sinatra.application"; use "Sinatra::Application" instead.
57
58 * Deprecated setting Sinatra.application = nil to reset an application.
59 This should no longer be necessary.
60
61 * Deprecated "Sinatra.default_options"; use
62 "Sinatra::Default.set(key, value)" instead.
63
64 * Deprecated the "ServerError" exception. All Exceptions are now
65 treated as internal server errors and result in a 500 response
66 status.
67
68 * Removed Event and EventContext classes. Applications are defined in a
69 subclass of Sinatra::Base; each request is processed within an
70 instance.
71
72 = 0.3.3 / 2009-01-06
73
74 * Pin to Rack 0.4.0 (this is the last release on Rack 0.4)
75
76 * Log unhandled exception backtraces to rack.errors.
77
78 * Use RACK_ENV environment variable to establish Sinatra
79 environment when given. Thin sets this when started with
80 the -e argument.
81
82 * BUG: raising Sinatra::NotFound resulted in a 500 response
83 code instead of 404.
84
85 * BUG: use_in_file_templates! fails with CR/LF (#45)
86
87 * BUG: Sinatra detects the app file and root path when run under
88 thin/passenger.
89
90 = 0.3.2
91
92 * BUG: Static and send_file read entire file into String before
93 sending. Updated to stream with 8K chunks instead.
94
95 * Rake tasks and assets for building basic documentation website.
96 See http://sinatra.rubyforge.org
97
98 * Various minor doc fixes.
99
100 = 0.3.1
101
102 * Unbreak optional path parameters [jeremyevans]
103
104 = 0.3.0
105
106 * Add sinatra.gemspec w/ support for github gem builds. Forks can now
107 enable the build gem option in github to get free username-sinatra.gem
108 builds: gem install username-sinatra.gem --source=http://gems.github.com/
109
110 * Require rack-0.4 gem; removes frozen rack dir.
111
112 * Basic RSpec support; require 'sinatra/test/rspec' instead of
113 'sinatra/test/spec' to use. [avdi]
114
115 * before filters can modify request environment vars used for
116 routing (e.g., PATH_INFO, REQUEST_METHOD, etc.) for URL rewriting
117 type functionality.
118
119 * In-file templates now uses @@ instead of ## as template separator.
120
121 * Top-level environment test predicates: development?, test?, production?
122
123 * Top-level "set", "enable", and "disable" methods for tweaking
124 app options. [rtomayko]
125
126 * Top-level "use" method for building Rack middleware pipelines
127 leading to app. See README for usage. [rtomayko]
128
129 * New "reload" option - set false to disable reloading in development.
130
131 * New "host" option - host/ip to bind to [cschneid]
132
133 * New "app_file" option - override the file to reload in development
134 mode [cschneid]
135
136 * Development error/not_found page cleanup [sr, adamwiggins]
137
138 * Remove a bunch of core extensions (String#to_param, String#from_param,
139 Hash#from_params, Hash#to_params, Hash#symbolize_keys, Hash#pass)
140
141 * Various grammar and formatting fixes to README; additions on
142 community and contributing [cypher]
143
144 * Build RDoc using Hanna template: http://sinatrarb.rubyforge.org/api
145
146 * Specs, documentation and fixes for splat'n routes [vic]
147
148 * Fix whitespace errors across all source files. [rtomayko]
149
150 * Fix streaming issues with Mongrel (body not closed). [bmizerany]
151
152 * Fix various issues with environment not being set properly (configure
153 blocks not running, error pages not registering, etc.) [cypher]
154
155 * Fix to allow locals to be passed to ERB templates [cschneid]
156
157 * Fix locking issues causing random errors during reload in development.
158
159 * Fix for escaped paths not resolving static files [Matthew Walker]
160
161 = 0.2.1
162
163 * File upload fix and minor tweaks.
164
165 = 0.2.0
166
167 * Initial gem release of 0.2 codebase.
Something went wrong with that request. Please try again.