Skip to content

HTTPS clone URL

Subversion checkout URL

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