Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 378 lines (265 sloc) 14.913 kb
f75bee5 @rtomayko Cleanup and refactoring after inheritance changes
rtomayko authored
1 = 1.0 / unreleased
2
3 * Route handlers, before filters, templates, error mappings, and
4 middleware are now resolved dynamically up the inheritance hierarchy
5 when needed instead of duplicating the superclass's version when
6 a new Sinatra::Base subclass is created. This should fix a variety
7 of issues with extensions that need to add any of these things
8 to the base class.
9
3d2988c @rtomayko Forgot to add release date for 0.9.2 in CHANGES
rtomayko authored
10 = 0.9.2 / 2009-05-18
13fc79d @rtomayko Remove support for source file reloading [#166]
rtomayko authored
11
5d6ac2a @rtomayko update CHANGES for 0.9.2 (perhaps 1.0) release
rtomayko authored
12 * This version is compatible with Rack 1.0. [Rein Henrichs]
13
14 * The development-mode unhandled exception / error page has been
15 greatly enhanced, functionally and aesthetically. The error
16 page is used when the :show_exceptions option is enabled and an
17 exception propagates outside of a route handler or before filter.
18 [Simon Rozet / Matte Noble / Ryan Tomayko]
19
20 * Backtraces that move through templates now include filenames and
21 line numbers where possible. [#51 / S. Brent Faulkner]
22
23 * All templates now have an app-level option for setting default
24 template options (:haml, :sass, :erb, :builder). The app-level
25 option value must be a Hash if set and is merged with the
26 template options specified to the render method (Base#haml,
27 Base#erb, Base#builder). [S. Brent Faulkner, Ryan Tomayko]
28
29 * The method signature for all template rendering methods has
30 been unified: "def engine(template, options={}, locals={})".
31 The options Hash now takes the generic :views, :layout, and
32 :locals options but also any template-specific options. The
33 generic options are removed before calling the template specific
34 render method. Locals may be specified using either the
35 :locals key in the options hash or a second Hash option to the
36 rendering method. [#191 / Ryan Tomayko]
37
38 * The receiver is now passed to "configure" blocks. This
39 allows for the following idiom in top-level apps:
40 configure { |app| set :foo, app.root + '/foo' }
41 [TJ Holowaychuck / Ryan Tomayko]
42
43 * The "sinatra/test" lib is deprecated and will be removed in
44 Sinatra 1.0. This includes the Sinatra::Test module and
45 Sinatra::TestHarness class in addition to all the framework
46 test helpers that were deprecated in 0.9.1. The Rack::Test
47 lib should be used instead: http://gitrdoc.com/brynary/rack-test
48 [#176 / Simon Rozet]
49
13fc79d @rtomayko Remove support for source file reloading [#166]
rtomayko authored
50 * Development mode source file reloading has been removed. The
51 "shotgun" (http://rtomayko.github.com/shotgun/) program can be
52 used to achieve the same basic functionality in most situations.
53 Passenger users should use the "tmp/always_restart.txt"
5d6ac2a @rtomayko update CHANGES for 0.9.2 (perhaps 1.0) release
rtomayko authored
54 file (http://tinyurl.com/c67o4h). [#166 / Ryan Tomayko]
55
b48ed22 @rtomayko Add note about auto-require deprecation to CHANGES
rtomayko authored
56 * Auto-requiring template libs in the erb, builder, haml, and
57 sass methods is deprecated due to thread-safety issues. You must
58 require the template libs explicitly in your app file. [Simon Rozet]
59
5d6ac2a @rtomayko update CHANGES for 0.9.2 (perhaps 1.0) release
rtomayko authored
60 * A new Sinatra::Base#route_missing method was added. route_missing
61 is sent when no route matches the request or all route handlers
62 pass. The default implementation forwards the request to the
63 downstream app when running as middleware (i.e., "@app" is
64 non-nil), or raises a NotFound exception when no downstream app
65 is defined. Subclasses can override this method to perform custom
66 route miss logic. [Jon Crosby]
67
68 * A new Sinatra::Base#route_eval method was added. The method
69 yields to the block and throws :halt with the result. Subclasses
70 can override this method to tap into the route execution logic.
71 [TJ Holowaychuck]
72
73 * Fix the "-x" (enable request mutex / locking) command line
74 argument. Passing -x now properly sets the :lock option.
75 [S. Brent Faulkner, Ryan Tomayko]
76
77 * Fix writer ("foo=") and predicate ("foo?") methods in extension
78 modules not being added to the registering class.
79 [#172 / Pat Nakajima]
80
81 * Fix in-file templates when running alongside activesupport and
82 fatal errors when requiring activesupport before sinatra
83 [#178 / Brian Candler]
84
85 * Fix various issues running on Google AppEngine.
86 [Samuel Goebert, Simon Rozet]
87
88 * Fix in-file templates __END__ detection when __END__ exists with
89 other stuff on a line [Yoji Shidara]
13fc79d @rtomayko Remove support for source file reloading [#166]
rtomayko authored
90
0f02baf @rtomayko 0.9.1.1 security release
rtomayko authored
91 = 0.9.1.1 / 2009-03-09
92
93 * Fix directory traversal vulnerability in default static files
94 route. See [#177] for more info.
95
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
96 = 0.9.1 / 2009-03-01
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
97
98 * Sinatra now runs under Ruby 1.9.1 [#61]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
99
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
100 * Route patterns (splats, :named, or Regexp captures) are now
101 passed as arguments to the block. [#140]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
102
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
103 * The "helpers" method now takes a variable number of modules
104 along with the normal block syntax. [#133]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
105
cf32f2e @rtomayko Middleware enhancements: automatic and explicit forward to downstream [#...
rtomayko authored
106 * New request-level #forward method for middleware components: passes
107 the env to the downstream app and merges the response status, headers,
0e1fd22 @rtomayko Misc additions to the CHANGES file
rtomayko authored
108 and body into the current context. [#126]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
109
cf32f2e @rtomayko Middleware enhancements: automatic and explicit forward to downstream [#...
rtomayko authored
110 * Requests are now automatically forwarded to the downstream app when
111 running as middleware and no matching route is found or all routes
112 pass.
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
113
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
114 * New simple API for extensions/plugins to add DSL-level and
115 request-level methods. Use Sinatra.register(mixin) to extend
116 the DSL with all public methods defined in the mixin module;
117 use Sinatra.helpers(mixin) to make all public methods defined
118 in the mixin module available at the request level. [#138]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
119 See http://www.sinatrarb.com/extensions.html for details.
120
121 * Named parameters in routes now capture the "." character. This makes
122 routes like "/:path/:filename" match against requests like
123 "/foo/bar.txt"; in this case, "params[:filename]" is "bar.txt".
124 Previously, the route would not match at all.
125
126 * Added request-level "redirect back" to redirect to the referring
127 URL.
128
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
129 * Added a new "clean_trace" option that causes backtraces dumped
130 to rack.errors and displayed on the development error page to
131 omit framework and core library backtrace lines. The option is
132 enabled by default. [#77]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
133
090c4d7 @rtomayko Fix weirdness with partials in ERB [#158]
rtomayko authored
134 * The ERB output buffer is now available to helpers via the @_out_buf
135 instance variable.
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
136
137 * It's now much easier to test sessions in unit tests by passing a
138 ":session" option to any of the mock request methods. e.g.,
139 get '/', {}, :session => { 'foo' => 'bar' }
140
2f377e2 @rtomayko Trim down Testing section in the README; link to doc site instead
rtomayko authored
141 * The testing framework specific files ('sinatra/test/spec',
142 'sinatra/test/bacon', 'sinatra/test/rspec', etc.) have been deprecated.
143 See http://sinatrarb.com/testing.html for instructions on setting up
144 a testing environment with these frameworks.
145
a9e9f00 @rtomayko Add send_data back in but deprecate [#143]
rtomayko authored
146 * The request-level #send_data method from Sinatra 0.3.3 has been added
147 for compatibility but is deprecated.
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
148
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
149 * Fix :provides causing crash on any request when request has no
150 Accept header [#139]
151
152 * Fix that ERB templates were evaluated twice per "erb" call.
153
154 * Fix app-level middleware not being run when the Sinatra application is
155 run as middleware.
156
157 * Fixed some issues with running under Rack's CGI handler caused by
158 writing informational stuff to stdout.
159
0e1fd22 @rtomayko Misc additions to the CHANGES file
rtomayko authored
160 * Fixed that reloading was sometimes enabled when starting from a
161 rackup file [#110]
162
163 * Fixed that "." in route patterns erroneously matched any character
164 instead of a literal ".". [#124]
165
f99015d @rtomayko Bring in CHANGES additions from 0.9.0.x branch
rtomayko authored
166 = 0.9.0.4 / 2009-01-25
167
168 * Using halt with more than 1 args causes ArgumentError [#131]
169 * using halt in a before filter doesn't modify response [#127]
170 * Add deprecated Sinatra::EventContext to unbreak plugins [#130]
171 * Give access to GET/POST params in filters [#129]
172 * Preserve non-nested params in nested params hash [#117]
173 * Fix backtrace dump with Rack::Lint [#116]
174
175 = 0.9.0.3 / 2009-01-21
176
177 * Fall back on mongrel then webrick when thin not found. [#75]
178 * Use :environment instead of :env in test helpers to
179 fix deprecation warnings coming from framework.
180 * Make sinatra/test/rspec work again [#113]
181 * Fix app_file detection on windows [#118]
182 * Fix static files with Rack::Lint in pipeline [#121]
183
184 = 0.9.0.2 / 2009-01-18
185
186 * Halting a before block should stop processing of routes [#85]
187 * Fix redirect/halt in before filters [#85]
188
968194d @rtomayko 0.9.0 release
rtomayko authored
189 = 0.9.0 / 2009-01-18
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
190
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
191 * Works with and requires Rack >= 0.9.1
192
193 * Multiple Sinatra applications can now co-exist peacefully within a
194 single process. The new "Sinatra::Base" class can be subclassed to
195 establish a blank-slate Rack application or middleware component.
196 Documentation on using these features is forth-coming; the following
197 provides the basic gist: http://gist.github.com/38605
198
1fa9807 @foca Nested params (e.g., "post[title]=Hello") [#70]
foca authored
199 * Parameters with subscripts are now parsed into a nested/recursive
200 Hash structure. e.g., "post[title]=Hello&post[body]=World" yields
201 params: {'post' => {'title' => 'Hello', 'body' => 'World'}}.
202
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
203 * Regular expressions may now be used in route pattens; captures are
204 available at "params[:captures]".
b5faa57 @rtomayko Dump backtrace to rack.errors on unhandled exception
rtomayko authored
205
38778ed @cypher Add filtering support for Accept HTTP header.
cypher authored
206 * New ":provides" route condition takes an array of mime types and
207 matches only when an Accept request header is present with a
208 corresponding type. [cypher]
209
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
210 * New request-level "pass" method; immediately exits the current block
211 and passes control to the next matching route.
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
212
213 * The request-level "body" method now takes a block; evaluation is
214 deferred until an attempt is made to read the body. The block must
215 return a String or Array.
216
217 * New "route conditions" system for attaching rules for when a route
218 matches. The :agent and :host route options now use this system.
219
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
220 * New "dump_errors" option controls whether the backtrace is dumped to
221 rack.errors when an exception is raised from a route. The option is
222 enabled by default for top-level apps.
223
224 * Better default "app_file", "root", "public", and "views" location
225 detection; changes to "root" and "app_file" automatically cascade to
226 other options that depend on them.
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
227
228 * Error mappings are now split into two distinct layers: exception
229 mappings and custom error pages. Exception mappings are registered
230 with "error(Exception)" and are run only when the app raises an
231 exception. Custom error pages are registered with "error(status_code)",
232 where "status_code" is an integer, and are run any time the response
233 has the status code specified. It's also possible to register an error
234 page for a range of status codes: "error(500..599)".
235
968194d @rtomayko 0.9.0 release
rtomayko authored
236 * In-file templates are now automatically imported from the file that
237 requires 'sinatra'. The use_in_file_templates! method is still available
238 for loading templates from other files.
239
c2849ff @rtomayko Note sinatra/test modifications in CHANGES file
rtomayko authored
240 * Sinatra's testing support is no longer dependent on Test::Unit. Requiring
241 'sinatra/test' adds the Sinatra::Test module and Sinatra::TestHarness
242 class, which can be used with any test framework. The 'sinatra/test/unit',
243 'sinatra/test/spec', 'sinatra/test/rspec', or 'sinatra/test/bacon' files
244 can be required to setup a framework-specific testing environment. See the
245 README for more information.
246
1fb5b99 @dylanegan Bacon support
dylanegan authored
247 * Added support for Bacon (test framework). The 'sinatra/test/bacon' file
248 can be required to setup Sinatra test helpers on Bacon::Context.
249
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
250 * Deprecated "set_option" and "set_options"; use "set" instead.
251
252 * Deprecated the "env" option ("options.env"); use "environment" instead.
253
254 * Deprecated the request level "stop" method; use "halt" instead.
255
256 * Deprecated the request level "entity_tag" method; use "etag" instead.
257 Both "entity_tag" and "etag" were previously supported.
258
259 * Deprecated the request level "headers" method (HTTP response headers);
260 use "response['Header-Name']" instead.
261
262 * Deprecated "Sinatra.application"; use "Sinatra::Application" instead.
263
264 * Deprecated setting Sinatra.application = nil to reset an application.
265 This should no longer be necessary.
266
267 * Deprecated "Sinatra.default_options"; use
268 "Sinatra::Default.set(key, value)" instead.
269
270 * Deprecated the "ServerError" exception. All Exceptions are now
271 treated as internal server errors and result in a 500 response
272 status.
273
91922b7 @rtomayko Deprecate get_it, post_it, etc. test helpers with warnings
rtomayko authored
274 * Deprecated the "get_it", "post_it", "put_it", "delete_it", and "head_it"
275 test helper methods. Use "get", "post", "put", "delete", and "head",
276 respectively, instead.
277
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
278 * Removed Event and EventContext classes. Applications are defined in a
279 subclass of Sinatra::Base; each request is processed within an
280 instance.
281
282 = 0.3.3 / 2009-01-06
283
284 * Pin to Rack 0.4.0 (this is the last release on Rack 0.4)
285
286 * Log unhandled exception backtraces to rack.errors.
287
288 * Use RACK_ENV environment variable to establish Sinatra
289 environment when given. Thin sets this when started with
290 the -e argument.
291
292 * BUG: raising Sinatra::NotFound resulted in a 500 response
293 code instead of 404.
294
295 * BUG: use_in_file_templates! fails with CR/LF (#45)
296
297 * BUG: Sinatra detects the app file and root path when run under
298 thin/passenger.
299
300 = 0.3.2
301
302 * BUG: Static and send_file read entire file into String before
303 sending. Updated to stream with 8K chunks instead.
304
305 * Rake tasks and assets for building basic documentation website.
306 See http://sinatra.rubyforge.org
307
308 * Various minor doc fixes.
309
310 = 0.3.1
311
312 * Unbreak optional path parameters [jeremyevans]
313
314 = 0.3.0
315
316 * Add sinatra.gemspec w/ support for github gem builds. Forks can now
317 enable the build gem option in github to get free username-sinatra.gem
318 builds: gem install username-sinatra.gem --source=http://gems.github.com/
319
320 * Require rack-0.4 gem; removes frozen rack dir.
321
322 * Basic RSpec support; require 'sinatra/test/rspec' instead of
323 'sinatra/test/spec' to use. [avdi]
324
325 * before filters can modify request environment vars used for
326 routing (e.g., PATH_INFO, REQUEST_METHOD, etc.) for URL rewriting
327 type functionality.
328
329 * In-file templates now uses @@ instead of ## as template separator.
330
331 * Top-level environment test predicates: development?, test?, production?
332
333 * Top-level "set", "enable", and "disable" methods for tweaking
334 app options. [rtomayko]
335
336 * Top-level "use" method for building Rack middleware pipelines
337 leading to app. See README for usage. [rtomayko]
338
339 * New "reload" option - set false to disable reloading in development.
340
341 * New "host" option - host/ip to bind to [cschneid]
342
343 * New "app_file" option - override the file to reload in development
344 mode [cschneid]
345
346 * Development error/not_found page cleanup [sr, adamwiggins]
347
348 * Remove a bunch of core extensions (String#to_param, String#from_param,
349 Hash#from_params, Hash#to_params, Hash#symbolize_keys, Hash#pass)
350
351 * Various grammar and formatting fixes to README; additions on
352 community and contributing [cypher]
353
354 * Build RDoc using Hanna template: http://sinatrarb.rubyforge.org/api
355
356 * Specs, documentation and fixes for splat'n routes [vic]
357
358 * Fix whitespace errors across all source files. [rtomayko]
359
360 * Fix streaming issues with Mongrel (body not closed). [bmizerany]
361
362 * Fix various issues with environment not being set properly (configure
363 blocks not running, error pages not registering, etc.) [cypher]
364
365 * Fix to allow locals to be passed to ERB templates [cschneid]
366
367 * Fix locking issues causing random errors during reload in development.
368
369 * Fix for escaped paths not resolving static files [Matthew Walker]
370
371 = 0.2.1
372
373 * File upload fix and minor tweaks.
374
375 = 0.2.0
376
377 * Initial gem release of 0.2 codebase.
Something went wrong with that request. Please try again.