Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 283 lines (191 sloc) 10.703 kb
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
1 = 0.9.1 / 2009-03-01
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
2
3 * Sinatra now runs under Ruby 1.9.1 [#61]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
4
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
5 * Route patterns (splats, :named, or Regexp captures) are now
6 passed as arguments to the block. [#140]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
7
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
8 * The "helpers" method now takes a variable number of modules
9 along with the normal block syntax. [#133]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
10
cf32f2e @rtomayko Middleware enhancements: automatic and explicit forward to downstream [#...
rtomayko authored
11 * New request-level #forward method for middleware components: passes
12 the env to the downstream app and merges the response status, headers,
0e1fd22 @rtomayko Misc additions to the CHANGES file
rtomayko authored
13 and body into the current context. [#126]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
14
cf32f2e @rtomayko Middleware enhancements: automatic and explicit forward to downstream [#...
rtomayko authored
15 * Requests are now automatically forwarded to the downstream app when
16 running as middleware and no matching route is found or all routes
17 pass.
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
18
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
19 * New simple API for extensions/plugins to add DSL-level and
20 request-level methods. Use Sinatra.register(mixin) to extend
21 the DSL with all public methods defined in the mixin module;
22 use Sinatra.helpers(mixin) to make all public methods defined
23 in the mixin module available at the request level. [#138]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
24 See http://www.sinatrarb.com/extensions.html for details.
25
26 * Named parameters in routes now capture the "." character. This makes
27 routes like "/:path/:filename" match against requests like
28 "/foo/bar.txt"; in this case, "params[:filename]" is "bar.txt".
29 Previously, the route would not match at all.
30
31 * Added request-level "redirect back" to redirect to the referring
32 URL.
33
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
34 * Added a new "clean_trace" option that causes backtraces dumped
35 to rack.errors and displayed on the development error page to
36 omit framework and core library backtrace lines. The option is
37 enabled by default. [#77]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
38
090c4d7 @rtomayko Fix weirdness with partials in ERB [#158]
rtomayko authored
39 * The ERB output buffer is now available to helpers via the @_out_buf
40 instance variable.
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
41
42 * It's now much easier to test sessions in unit tests by passing a
43 ":session" option to any of the mock request methods. e.g.,
44 get '/', {}, :session => { 'foo' => 'bar' }
45
2f377e2 @rtomayko Trim down Testing section in the README; link to doc site instead
rtomayko authored
46 * The testing framework specific files ('sinatra/test/spec',
47 'sinatra/test/bacon', 'sinatra/test/rspec', etc.) have been deprecated.
48 See http://sinatrarb.com/testing.html for instructions on setting up
49 a testing environment with these frameworks.
50
a9e9f00 @rtomayko Add send_data back in but deprecate [#143]
rtomayko authored
51 * The request-level #send_data method from Sinatra 0.3.3 has been added
52 for compatibility but is deprecated.
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
53
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
54 * Fix :provides causing crash on any request when request has no
55 Accept header [#139]
56
57 * Fix that ERB templates were evaluated twice per "erb" call.
58
59 * Fix app-level middleware not being run when the Sinatra application is
60 run as middleware.
61
62 * Fixed some issues with running under Rack's CGI handler caused by
63 writing informational stuff to stdout.
64
0e1fd22 @rtomayko Misc additions to the CHANGES file
rtomayko authored
65 * Fixed that reloading was sometimes enabled when starting from a
66 rackup file [#110]
67
68 * Fixed that "." in route patterns erroneously matched any character
69 instead of a literal ".". [#124]
70
f99015d @rtomayko Bring in CHANGES additions from 0.9.0.x branch
rtomayko authored
71 = 0.9.0.4 / 2009-01-25
72
73 * Using halt with more than 1 args causes ArgumentError [#131]
74 * using halt in a before filter doesn't modify response [#127]
75 * Add deprecated Sinatra::EventContext to unbreak plugins [#130]
76 * Give access to GET/POST params in filters [#129]
77 * Preserve non-nested params in nested params hash [#117]
78 * Fix backtrace dump with Rack::Lint [#116]
79
80 = 0.9.0.3 / 2009-01-21
81
82 * Fall back on mongrel then webrick when thin not found. [#75]
83 * Use :environment instead of :env in test helpers to
84 fix deprecation warnings coming from framework.
85 * Make sinatra/test/rspec work again [#113]
86 * Fix app_file detection on windows [#118]
87 * Fix static files with Rack::Lint in pipeline [#121]
88
89 = 0.9.0.2 / 2009-01-18
90
91 * Halting a before block should stop processing of routes [#85]
92 * Fix redirect/halt in before filters [#85]
93
968194d @rtomayko 0.9.0 release
rtomayko authored
94 = 0.9.0 / 2009-01-18
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
95
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
96 * Works with and requires Rack >= 0.9.1
97
98 * Multiple Sinatra applications can now co-exist peacefully within a
99 single process. The new "Sinatra::Base" class can be subclassed to
100 establish a blank-slate Rack application or middleware component.
101 Documentation on using these features is forth-coming; the following
102 provides the basic gist: http://gist.github.com/38605
103
1fa9807 @foca Nested params (e.g., "post[title]=Hello") [#70]
foca authored
104 * Parameters with subscripts are now parsed into a nested/recursive
105 Hash structure. e.g., "post[title]=Hello&post[body]=World" yields
106 params: {'post' => {'title' => 'Hello', 'body' => 'World'}}.
107
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
108 * Regular expressions may now be used in route pattens; captures are
109 available at "params[:captures]".
b5faa57 @rtomayko Dump backtrace to rack.errors on unhandled exception
rtomayko authored
110
38778ed @cypher Add filtering support for Accept HTTP header.
cypher authored
111 * New ":provides" route condition takes an array of mime types and
112 matches only when an Accept request header is present with a
113 corresponding type. [cypher]
114
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
115 * New request-level "pass" method; immediately exits the current block
116 and passes control to the next matching route.
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
117
118 * The request-level "body" method now takes a block; evaluation is
119 deferred until an attempt is made to read the body. The block must
120 return a String or Array.
121
122 * New "route conditions" system for attaching rules for when a route
123 matches. The :agent and :host route options now use this system.
124
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
125 * New "dump_errors" option controls whether the backtrace is dumped to
126 rack.errors when an exception is raised from a route. The option is
127 enabled by default for top-level apps.
128
129 * Better default "app_file", "root", "public", and "views" location
130 detection; changes to "root" and "app_file" automatically cascade to
131 other options that depend on them.
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
132
133 * Error mappings are now split into two distinct layers: exception
134 mappings and custom error pages. Exception mappings are registered
135 with "error(Exception)" and are run only when the app raises an
136 exception. Custom error pages are registered with "error(status_code)",
137 where "status_code" is an integer, and are run any time the response
138 has the status code specified. It's also possible to register an error
139 page for a range of status codes: "error(500..599)".
140
968194d @rtomayko 0.9.0 release
rtomayko authored
141 * In-file templates are now automatically imported from the file that
142 requires 'sinatra'. The use_in_file_templates! method is still available
143 for loading templates from other files.
144
c2849ff @rtomayko Note sinatra/test modifications in CHANGES file
rtomayko authored
145 * Sinatra's testing support is no longer dependent on Test::Unit. Requiring
146 'sinatra/test' adds the Sinatra::Test module and Sinatra::TestHarness
147 class, which can be used with any test framework. The 'sinatra/test/unit',
148 'sinatra/test/spec', 'sinatra/test/rspec', or 'sinatra/test/bacon' files
149 can be required to setup a framework-specific testing environment. See the
150 README for more information.
151
1fb5b99 @dylanegan Bacon support
dylanegan authored
152 * Added support for Bacon (test framework). The 'sinatra/test/bacon' file
153 can be required to setup Sinatra test helpers on Bacon::Context.
154
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
155 * Deprecated "set_option" and "set_options"; use "set" instead.
156
157 * Deprecated the "env" option ("options.env"); use "environment" instead.
158
159 * Deprecated the request level "stop" method; use "halt" instead.
160
161 * Deprecated the request level "entity_tag" method; use "etag" instead.
162 Both "entity_tag" and "etag" were previously supported.
163
164 * Deprecated the request level "headers" method (HTTP response headers);
165 use "response['Header-Name']" instead.
166
167 * Deprecated "Sinatra.application"; use "Sinatra::Application" instead.
168
169 * Deprecated setting Sinatra.application = nil to reset an application.
170 This should no longer be necessary.
171
172 * Deprecated "Sinatra.default_options"; use
173 "Sinatra::Default.set(key, value)" instead.
174
175 * Deprecated the "ServerError" exception. All Exceptions are now
176 treated as internal server errors and result in a 500 response
177 status.
178
91922b7 @rtomayko Deprecate get_it, post_it, etc. test helpers with warnings
rtomayko authored
179 * Deprecated the "get_it", "post_it", "put_it", "delete_it", and "head_it"
180 test helper methods. Use "get", "post", "put", "delete", and "head",
181 respectively, instead.
182
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
183 * Removed Event and EventContext classes. Applications are defined in a
184 subclass of Sinatra::Base; each request is processed within an
185 instance.
186
187 = 0.3.3 / 2009-01-06
188
189 * Pin to Rack 0.4.0 (this is the last release on Rack 0.4)
190
191 * Log unhandled exception backtraces to rack.errors.
192
193 * Use RACK_ENV environment variable to establish Sinatra
194 environment when given. Thin sets this when started with
195 the -e argument.
196
197 * BUG: raising Sinatra::NotFound resulted in a 500 response
198 code instead of 404.
199
200 * BUG: use_in_file_templates! fails with CR/LF (#45)
201
202 * BUG: Sinatra detects the app file and root path when run under
203 thin/passenger.
204
205 = 0.3.2
206
207 * BUG: Static and send_file read entire file into String before
208 sending. Updated to stream with 8K chunks instead.
209
210 * Rake tasks and assets for building basic documentation website.
211 See http://sinatra.rubyforge.org
212
213 * Various minor doc fixes.
214
215 = 0.3.1
216
217 * Unbreak optional path parameters [jeremyevans]
218
219 = 0.3.0
220
221 * Add sinatra.gemspec w/ support for github gem builds. Forks can now
222 enable the build gem option in github to get free username-sinatra.gem
223 builds: gem install username-sinatra.gem --source=http://gems.github.com/
224
225 * Require rack-0.4 gem; removes frozen rack dir.
226
227 * Basic RSpec support; require 'sinatra/test/rspec' instead of
228 'sinatra/test/spec' to use. [avdi]
229
230 * before filters can modify request environment vars used for
231 routing (e.g., PATH_INFO, REQUEST_METHOD, etc.) for URL rewriting
232 type functionality.
233
234 * In-file templates now uses @@ instead of ## as template separator.
235
236 * Top-level environment test predicates: development?, test?, production?
237
238 * Top-level "set", "enable", and "disable" methods for tweaking
239 app options. [rtomayko]
240
241 * Top-level "use" method for building Rack middleware pipelines
242 leading to app. See README for usage. [rtomayko]
243
244 * New "reload" option - set false to disable reloading in development.
245
246 * New "host" option - host/ip to bind to [cschneid]
247
248 * New "app_file" option - override the file to reload in development
249 mode [cschneid]
250
251 * Development error/not_found page cleanup [sr, adamwiggins]
252
253 * Remove a bunch of core extensions (String#to_param, String#from_param,
254 Hash#from_params, Hash#to_params, Hash#symbolize_keys, Hash#pass)
255
256 * Various grammar and formatting fixes to README; additions on
257 community and contributing [cypher]
258
259 * Build RDoc using Hanna template: http://sinatrarb.rubyforge.org/api
260
261 * Specs, documentation and fixes for splat'n routes [vic]
262
263 * Fix whitespace errors across all source files. [rtomayko]
264
265 * Fix streaming issues with Mongrel (body not closed). [bmizerany]
266
267 * Fix various issues with environment not being set properly (configure
268 blocks not running, error pages not registering, etc.) [cypher]
269
270 * Fix to allow locals to be passed to ERB templates [cschneid]
271
272 * Fix locking issues causing random errors during reload in development.
273
274 * Fix for escaped paths not resolving static files [Matthew Walker]
275
276 = 0.2.1
277
278 * File upload fix and minor tweaks.
279
280 = 0.2.0
281
282 * Initial gem release of 0.2 codebase.
Something went wrong with that request. Please try again.