Skip to content
This repository
Newer
Older
100644 619 lines (439 sloc) 25.594 kb
4cab214c »
2010-09-01 Changelog for 1.1
1 = 1.1 / Not Yet Released
2
fa15c4d4 »
2010-09-10 Readjust latest changelog entries.
3 * Before and after filters now support pattern matching, including the
4 ability to use captures: "before('/user/:name') { |name| ... }". This
5 avoids manual path checking. No performance loss if patterns are avoided.
6 (Konstantin Haase)
4cab214c »
2010-09-01 Changelog for 1.1
7
fa15c4d4 »
2010-09-10 Readjust latest changelog entries.
8 * It is now possible to render SCSS files with the `scss` method, which
9 behaves exactly like `sass` except for the different file extension and
10 assuming the SCSS syntax. (Pedro Menezes, Konstantin Haase)
4cab214c »
2010-09-01 Changelog for 1.1
11
7149810b »
2010-10-11 Add recent changes to CHANGES.
12 * Added `liquid`, `markdown`, `nokogiri`, `textile`, `rdoc`, `radius`,
13 `markaby`, and `coffee` rendering methods for rendering Liquid, Markdown,
14 Nokogiri, Textile, RDoc, Radius, Markaby and CoffeeScript templates.
15 (Konstantin Haase)
16
eafe40d2 »
2010-10-19 reorder changes
17 * Now supports byte-range requests (the HTTP_RANGE header) for static files.
18 Multi-range requests are not supported, however. (Jens Alfke)
19
da346eb1 »
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
20 * You can now use #settings method from class and top level for convenience.
4cab214c »
2010-09-01 Changelog for 1.1
21 (Konstantin Haase)
22
da346eb1 »
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
23 * Setting multiple values now no longer relies on #to_hash and therefore
24 accepts any Enumerable as parameter. (Simon Rozet)
4cab214c »
2010-09-01 Changelog for 1.1
25
7149810b »
2010-10-11 Add recent changes to CHANGES.
26 * Nested templates default the `layout` option to `false` rather than `true`.
27 This eases the use of partials. If you wanted to render one haml template
28 embedded in another, you had to call `haml :partial, {}, :layout => false`.
29 As you almost never want the partial to be wrapped in the standard layout
30 in this situation, you now only have to call `haml :partial`. Passing in
31 `layout` explicitly is still possible. (Konstantin Haase)
32
33 * If a the return value of one of the render functions is used as a response
34 body and the content type has not been set explicitly, Sinatra chooses a
35 content type corresponding to the rendering engine rather than just using
36 "text/html". (Konstantin Haase)
37
da346eb1 »
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
38 * README is now available in French (Mickael Riga), German (Bernhard Essl,
e4af1233 »
2010-10-13 Add Hungarian translation to CHANGES.
39 Konstantin Haase, burningTyger), Hungarian (Janos Hardi) and Spanish
95a5bab8 »
2010-10-14 Add Kouhei Yanagita to CHANGES.
40 (Gabriel Andretta). The extremely outdated Japanese README has been updated
41 (Kouhei Yanagita).
4cab214c »
2010-09-01 Changelog for 1.1
42
da346eb1 »
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
43 * It is now possible to access Sinatra's template_cache from the outside.
44 (Nick Sutterer)
4cab214c »
2010-09-01 Changelog for 1.1
45
da346eb1 »
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
46 * The `last_modified` method now also accepts DateTime instances and makes
47 sure the header will always be set to a string. (Konstantin Haase)
4cab214c »
2010-09-01 Changelog for 1.1
48
da346eb1 »
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
49 * 599 now is a legal status code. (Steve Shreeve)
4cab214c »
2010-09-01 Changelog for 1.1
50
51 * This release is compatible with Ruby 1.9.2. Sinatra was trying to read
8a3aea14 »
2010-09-02 add Shota Fukumori to the change log
52 none existent files Ruby added to the call stack. (Shota Fukumori,
53 Konstantin Haase)
4cab214c »
2010-09-01 Changelog for 1.1
54
da346eb1 »
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
55 * Prevents a memory leak on 1.8.6 is production mode. Note, however, that
56 this is due to a bug in 1.8.6 and request will have the additional overhead
57 of parsing templates again on that version. It is recommended to use at
58 least Ruby 1.8.7. (Konstantin Haase)
59
1a6bea57 »
2010-10-09 Mention last_modified changes in README.
60 * Compares last modified date correctly. `last_modified` was halting only
61 when the 'If-Modified-Since' header date was equal to the time specified.
62 Now, it halts when is equal or later than the time specified (Gabriel
63 Andretta).
64
da346eb1 »
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
65 * Sinatra is now usable in combination with Rails 3. When mounting a Sinatra
66 application under a subpath in Rails 3, the PATH_INFO is not prefixed with
67 a slash and no routes did match. (José Valim)
68
f96c6ef7 »
2010-09-19 Add latest changes to changelog.
69 * Better handling of encodings in 1.9, defaults params encoding to UTF-8 and
e51bb77b »
2010-09-10 Update CHANGES.
70 respects Encoding.default_internal and Encoding.default_external.
71 (Konstantin Haase)
72
3ae524e4 »
2010-10-13 Update CHANGES: show_exception behavior changed and we no longer chec…
73 * `show_exeptions` handling is now triggered after custom error handlers, if
74 it is set to `:after_handlers`, thus not disabling those handler in
75 development mode. (pangel, Konstantin Haase)
7149810b »
2010-10-11 Add recent changes to CHANGES.
76
da346eb1 »
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
77 * Added ability to handle weighted HTTP_ACCEPT headers. (Davide D'Agostino)
78
79 * `send_file` now always respects the `:type` option if set. Previously it
80 was discarded if no matching mime type was found, which made it impossible
81 to directly pass a mime type. (Konstantin Haase)
82
83 * `redirect` always redirects to an absolute URI, even if a relative URI was
84 passed. Ensures compatibility with RFC 2616 section 14.30. (Jean-Philippe
85 Garcia Ballester, Anthony Williams)
86
87 * Broken examples for using Erubis, Haml and Test::Unit in README have been
88 fixed. (Nick Sutterer, Doug Ireton, Jason Stewart, Eric Marden)
89
4cab214c »
2010-09-01 Changelog for 1.1
90 * Sinatra now handles SIGTERM correctly. (Patrick Collison)
91
92 * Fixes an issue with inline templates in modular applications that manually
93 call `run!`. (Konstantin Haase)
94
f96c6ef7 »
2010-09-19 Add latest changes to changelog.
95 * Spaces after inline template names are now ignored (Konstantin Haase)
96
4cab214c »
2010-09-01 Changelog for 1.1
97 * It's now possible to use Sinatra with different package management
98 systems defining a custom require. (Konstantin Haase)
99
100 * Lighthouse has been dropped in favor of GitHub issues.
101
f96c6ef7 »
2010-09-19 Add latest changes to changelog.
102 * Tilt is now a dependency and therefore no longer ships bundled with
103 Sinatra. (Ryan Tomayko, Konstantin Haase)
104
7149810b »
2010-10-11 Add recent changes to CHANGES.
105 * Sinatra now depends on Rack 1.1 or higher. Rack 1.0 is no longer supported.
106 (Konstantin Haase)
107
37eb3a76 »
2010-04-02 correct release date in CHANGES file
108 = 1.0 / 2010-03-23
f75bee5a »
2009-03-26 Cleanup and refactoring after inheritance changes
109
e14c700b »
2009-12-13 Update CHANGES with new features and obsoletions
110 * It's now possible to register blocks to run after each request using
111 after filters. After filters run at the end of each request, after
45ba561f »
2010-01-29 attribute people in CHANGES
112 routes and error handlers. (Jimmy Schementi)
e14c700b »
2009-12-13 Update CHANGES with new features and obsoletions
113
e3a9f9e3 »
2009-10-11 update CHANGES file with recent changes
114 * Sinatra now uses Tilt <http://github.com/rtomayko/tilt> for rendering
115 templates. This adds support for template caching, consistent
116 template backtraces, and support for new template engines, like
45ba561f »
2010-01-29 attribute people in CHANGES
117 mustache and liquid. (Ryan Tomayko)
118
f5efc370 »
2010-03-07 add a note about template compilation to CHANGES
119 * ERB, Erubis, and Haml templates are now compiled the first time
120 they're rendered instead of being string eval'd on each invocation.
121 Benchmarks show a 5x-10x improvement in render time. This also
122 reduces the number of objects created, decreasing pressure on Ruby's
123 GC. (Ryan Tomayko)
124
45ba561f »
2010-01-29 attribute people in CHANGES
125 * New 'settings' method gives access to options in both class and request
126 scopes. This replaces the 'options' method. (Chris Wanstrath)
e14c700b »
2009-12-13 Update CHANGES with new features and obsoletions
127
f889c75c »
2010-01-28 reload_templates setting; on by default in :development [#321]
128 * New boolean 'reload_templates' setting controls whether template files
129 are reread from disk and recompiled on each request. Template read/compile
45ba561f »
2010-01-29 attribute people in CHANGES
130 is cached by default in all environments except development. (Ryan Tomayko)
f889c75c »
2010-01-28 reload_templates setting; on by default in :development [#321]
131
45ba561f »
2010-01-29 attribute people in CHANGES
132 * New 'erubis' helper method for rendering ERB template with Erubis. The
133 erubis gem is required. (Dylan Egan)
e3a9f9e3 »
2009-10-11 update CHANGES file with recent changes
134
135 * New 'cache_control' helper method provides a convenient way of
136 setting the Cache-Control response header. Takes a variable number
137 of boolean directives followed by a hash of value directives, like
45ba561f »
2010-01-29 attribute people in CHANGES
138 this: cache_control :public, :must_revalidate, :max_age => 60
139 (Ryan Tomayko)
e3a9f9e3 »
2009-10-11 update CHANGES file with recent changes
140
ce3a8a89 »
2010-01-28 rearrange a couple of bullets in CHANGES for easier reading
141 * New 'expires' helper method is like cache_control but takes an
142 integer number of seconds or Time object:
45ba561f »
2010-01-29 attribute people in CHANGES
143 expires 300, :public, :must_revalidate
144 (Ryan Tomayko)
145
146 * New request.secure? method for checking for an SSL connection.
147 (Adam Wiggins)
ce3a8a89 »
2010-01-28 rearrange a couple of bullets in CHANGES for easier reading
148
4d616071 »
2010-03-01 update README/CHANGES re. -o
149 * Sinatra apps can now be run with a `-o <addr>` argument to specify
1b8fda82 »
2010-01-29 attribute to the right person
150 the address to bind to. (Ryan Tomayko)
e14c700b »
2009-12-13 Update CHANGES with new features and obsoletions
151
e3a9f9e3 »
2009-10-11 update CHANGES file with recent changes
152 * Rack::Session::Cookie is now added to the middleware pipeline when
153 running in test environments if the :sessions option is set.
45ba561f »
2010-01-29 attribute people in CHANGES
154 (Simon Rozet)
e3a9f9e3 »
2009-10-11 update CHANGES file with recent changes
155
f75bee5a »
2009-03-26 Cleanup and refactoring after inheritance changes
156 * Route handlers, before filters, templates, error mappings, and
157 middleware are now resolved dynamically up the inheritance hierarchy
158 when needed instead of duplicating the superclass's version when
159 a new Sinatra::Base subclass is created. This should fix a variety
160 of issues with extensions that need to add any of these things
45ba561f »
2010-01-29 attribute people in CHANGES
161 to the base class. (Ryan Tomayko)
f75bee5a »
2009-03-26 Cleanup and refactoring after inheritance changes
162
4e719595 »
2010-03-04 error handlers always override raise_errors option
163 * Exception error handlers always override the raise_errors option now.
164 Previously, all exceptions would be raised outside of the application
165 when the raise_errors option was enabled, even if an error handler was
166 defined for that exception. The raise_errors option now controls
167 whether unhandled exceptions are raised (enabled) or if a generic 500
168 error is returned (disabled). (Ryan Tomayko)
169
45ba561f »
2010-01-29 attribute people in CHANGES
170 * The X-Cascade response header is set to 'pass' when no matching route
171 is found or all routes pass. (Josh Peek)
e14c700b »
2009-12-13 Update CHANGES with new features and obsoletions
172
f6fc751c »
2010-03-01 update CHANGES re. filters and static files
173 * Filters do not run when serving static files anymore. (Ryan Tomayko)
174
8a7dd92e »
2010-03-10 mention pass blocks in CHANGES
175 * pass takes an optional block to be used as the route handler if no
176 subsequent route matches the request. (Blake Mizerany)
177
79a99939 »
2010-01-29 note that Sinatra::Default is obsolete in CHANGES
178 The following Sinatra features have been obsoleted (removed entirely) in
179 the 1.0 release:
180
181 * The `sinatra/test` library is obsolete. This includes the `Sinatra::Test`
182 module, the `Sinatra::TestHarness` class, and the `get_it`, `post_it`,
183 `put_it`, `delete_it`, and `head_it` helper methods. The
e14c700b »
2009-12-13 Update CHANGES with new features and obsoletions
184 [`Rack::Test` library](http://gitrdoc.com/brynary/rack-test) should
185 be used instead.
186
187 * Test framework specific libraries (`sinatra/test/spec`,
79a99939 »
2010-01-29 note that Sinatra::Default is obsolete in CHANGES
188 `sinatra/test/bacon`,`sinatra/test/rspec`, etc.) are obsolete. See
189 http://www.sinatrarb.com/testing.html for instructions on setting up a
190 testing environment under each of these frameworks.
191
192 * `Sinatra::Default` is obsolete; use `Sinatra::Base` instead.
193 `Sinatra::Base` acts more like `Sinatra::Default` in development mode.
194 For example, static file serving and sexy development error pages are
195 enabled by default.
e14c700b »
2009-12-13 Update CHANGES with new features and obsoletions
196
197 * Auto-requiring template libraries in the `erb`, `builder`, `haml`,
198 and `sass` methods is obsolete due to thread-safety issues. You must
199 require the template libraries explicitly in your app.
200
201 * The `:views_directory` option to rendering methods is obsolete; use
202 `:views` instead.
203
204 * The `:haml` and `:sass` options to rendering methods are obsolete.
205 Template engine options should be passed in the second Hash argument
206 instead.
207
f942ad76 »
2010-01-29 add inline_templates to CHANGES
208 * The `use_in_file_templates` method is obsolete. Use
209 `enable :inline_templates` or `set :inline_templates, 'path/to/file'`
210
e14c700b »
2009-12-13 Update CHANGES with new features and obsoletions
211 * The 'media_type' helper method is obsolete. Use 'mime_type' instead.
212
79a99939 »
2010-01-29 note that Sinatra::Default is obsolete in CHANGES
213 * The 'mime' main and class method is obsolete. Use 'mime_type' instead.
214
e14c700b »
2009-12-13 Update CHANGES with new features and obsoletions
215 * The request-level `send_data` method is no longer supported.
216
217 * The `Sinatra::Event` and `Sinatra::EventContext` classes are no longer
218 supported. This may effect extensions written for versions prior to 0.9.2.
219 See [Writing Sinatra Extensions](http://www.sinatrarb.com/extensions.html)
220 for the officially supported extensions API.
221
222 * The `set_option` and `set_options` methods are obsolete; use `set`
223 instead.
224
225 * The `:env` setting (`settings.env`) is obsolete; use `:environment`
226 instead.
227
228 * The request level `stop` method is obsolete; use `halt` instead.
229
230 * The request level `entity_tag` method is obsolete; use `etag`
231 instead.
232
233 * The request level `headers` method (HTTP response headers) is obsolete;
234 use `response['Header-Name']` instead.
235
236 * `Sinatra.application` is obsolete; use `Sinatra::Application` instead.
237
238 * Using `Sinatra.application = nil` to reset an application is obsolete.
239 This should no longer be necessary.
240
241 * Using `Sinatra.default_options` to set base configuration items is
242 obsolete; use `Sinatra::Base.set(key, value)` instead.
243
244 * The `Sinatra::ServerError` exception is obsolete. All exceptions raised
245 within a request are now treated as internal server errors and result in
246 a 500 response status.
247
3cfd06ad »
2010-02-04 add :methodoverride => :method_override to CHANGES
248 * The `:methodoverride' option to enable/disable the POST _method hack is
249 obsolete; use `:method_override` instead.
250
3d2988c6 »
2009-05-18 Forgot to add release date for 0.9.2 in CHANGES
251 = 0.9.2 / 2009-05-18
13fc79d3 »
2009-03-24 Remove support for source file reloading [#166]
252
5d6ac2a0 »
2009-04-26 update CHANGES for 0.9.2 (perhaps 1.0) release
253 * This version is compatible with Rack 1.0. [Rein Henrichs]
254
255 * The development-mode unhandled exception / error page has been
256 greatly enhanced, functionally and aesthetically. The error
257 page is used when the :show_exceptions option is enabled and an
258 exception propagates outside of a route handler or before filter.
259 [Simon Rozet / Matte Noble / Ryan Tomayko]
260
261 * Backtraces that move through templates now include filenames and
262 line numbers where possible. [#51 / S. Brent Faulkner]
263
264 * All templates now have an app-level option for setting default
265 template options (:haml, :sass, :erb, :builder). The app-level
266 option value must be a Hash if set and is merged with the
267 template options specified to the render method (Base#haml,
268 Base#erb, Base#builder). [S. Brent Faulkner, Ryan Tomayko]
269
270 * The method signature for all template rendering methods has
271 been unified: "def engine(template, options={}, locals={})".
272 The options Hash now takes the generic :views, :layout, and
273 :locals options but also any template-specific options. The
274 generic options are removed before calling the template specific
275 render method. Locals may be specified using either the
276 :locals key in the options hash or a second Hash option to the
277 rendering method. [#191 / Ryan Tomayko]
278
279 * The receiver is now passed to "configure" blocks. This
280 allows for the following idiom in top-level apps:
281 configure { |app| set :foo, app.root + '/foo' }
282 [TJ Holowaychuck / Ryan Tomayko]
283
284 * The "sinatra/test" lib is deprecated and will be removed in
285 Sinatra 1.0. This includes the Sinatra::Test module and
286 Sinatra::TestHarness class in addition to all the framework
287 test helpers that were deprecated in 0.9.1. The Rack::Test
288 lib should be used instead: http://gitrdoc.com/brynary/rack-test
289 [#176 / Simon Rozet]
290
13fc79d3 »
2009-03-24 Remove support for source file reloading [#166]
291 * Development mode source file reloading has been removed. The
292 "shotgun" (http://rtomayko.github.com/shotgun/) program can be
293 used to achieve the same basic functionality in most situations.
294 Passenger users should use the "tmp/always_restart.txt"
5d6ac2a0 »
2009-04-26 update CHANGES for 0.9.2 (perhaps 1.0) release
295 file (http://tinyurl.com/c67o4h). [#166 / Ryan Tomayko]
296
b48ed22b »
2009-05-18 Add note about auto-require deprecation to CHANGES
297 * Auto-requiring template libs in the erb, builder, haml, and
298 sass methods is deprecated due to thread-safety issues. You must
299 require the template libs explicitly in your app file. [Simon Rozet]
300
5d6ac2a0 »
2009-04-26 update CHANGES for 0.9.2 (perhaps 1.0) release
301 * A new Sinatra::Base#route_missing method was added. route_missing
302 is sent when no route matches the request or all route handlers
303 pass. The default implementation forwards the request to the
304 downstream app when running as middleware (i.e., "@app" is
305 non-nil), or raises a NotFound exception when no downstream app
306 is defined. Subclasses can override this method to perform custom
307 route miss logic. [Jon Crosby]
308
309 * A new Sinatra::Base#route_eval method was added. The method
310 yields to the block and throws :halt with the result. Subclasses
311 can override this method to tap into the route execution logic.
312 [TJ Holowaychuck]
313
314 * Fix the "-x" (enable request mutex / locking) command line
315 argument. Passing -x now properly sets the :lock option.
316 [S. Brent Faulkner, Ryan Tomayko]
317
318 * Fix writer ("foo=") and predicate ("foo?") methods in extension
319 modules not being added to the registering class.
320 [#172 / Pat Nakajima]
321
322 * Fix in-file templates when running alongside activesupport and
323 fatal errors when requiring activesupport before sinatra
324 [#178 / Brian Candler]
325
326 * Fix various issues running on Google AppEngine.
327 [Samuel Goebert, Simon Rozet]
328
329 * Fix in-file templates __END__ detection when __END__ exists with
330 other stuff on a line [Yoji Shidara]
13fc79d3 »
2009-03-24 Remove support for source file reloading [#166]
331
0f02bafe »
2009-03-09 0.9.1.1 security release
332 = 0.9.1.1 / 2009-03-09
333
334 * Fix directory traversal vulnerability in default static files
335 route. See [#177] for more info.
336
987d622a »
2009-02-27 Bump version to 0.9.1 and update CHANGES file
337 = 0.9.1 / 2009-03-01
41c8aeb3 »
2009-02-02 Bring CHANGES file up to date with last week of stuff
338
339 * Sinatra now runs under Ruby 1.9.1 [#61]
987d622a »
2009-02-27 Bump version to 0.9.1 and update CHANGES file
340
41c8aeb3 »
2009-02-02 Bring CHANGES file up to date with last week of stuff
341 * Route patterns (splats, :named, or Regexp captures) are now
342 passed as arguments to the block. [#140]
987d622a »
2009-02-27 Bump version to 0.9.1 and update CHANGES file
343
41c8aeb3 »
2009-02-02 Bring CHANGES file up to date with last week of stuff
344 * The "helpers" method now takes a variable number of modules
345 along with the normal block syntax. [#133]
987d622a »
2009-02-27 Bump version to 0.9.1 and update CHANGES file
346
cf32f2e6 »
2009-02-22 Middleware enhancements: automatic and explicit forward to downstream [
347 * New request-level #forward method for middleware components: passes
348 the env to the downstream app and merges the response status, headers,
0e1fd227 »
2009-03-01 Misc additions to the CHANGES file
349 and body into the current context. [#126]
987d622a »
2009-02-27 Bump version to 0.9.1 and update CHANGES file
350
cf32f2e6 »
2009-02-22 Middleware enhancements: automatic and explicit forward to downstream [
351 * Requests are now automatically forwarded to the downstream app when
352 running as middleware and no matching route is found or all routes
353 pass.
987d622a »
2009-02-27 Bump version to 0.9.1 and update CHANGES file
354
41c8aeb3 »
2009-02-02 Bring CHANGES file up to date with last week of stuff
355 * New simple API for extensions/plugins to add DSL-level and
356 request-level methods. Use Sinatra.register(mixin) to extend
357 the DSL with all public methods defined in the mixin module;
358 use Sinatra.helpers(mixin) to make all public methods defined
359 in the mixin module available at the request level. [#138]
987d622a »
2009-02-27 Bump version to 0.9.1 and update CHANGES file
360 See http://www.sinatrarb.com/extensions.html for details.
361
362 * Named parameters in routes now capture the "." character. This makes
363 routes like "/:path/:filename" match against requests like
364 "/foo/bar.txt"; in this case, "params[:filename]" is "bar.txt".
365 Previously, the route would not match at all.
366
367 * Added request-level "redirect back" to redirect to the referring
368 URL.
369
41c8aeb3 »
2009-02-02 Bring CHANGES file up to date with last week of stuff
370 * Added a new "clean_trace" option that causes backtraces dumped
371 to rack.errors and displayed on the development error page to
372 omit framework and core library backtrace lines. The option is
373 enabled by default. [#77]
987d622a »
2009-02-27 Bump version to 0.9.1 and update CHANGES file
374
090c4d79 »
2009-02-21 Fix weirdness with partials in ERB [#158]
375 * The ERB output buffer is now available to helpers via the @_out_buf
376 instance variable.
987d622a »
2009-02-27 Bump version to 0.9.1 and update CHANGES file
377
378 * It's now much easier to test sessions in unit tests by passing a
379 ":session" option to any of the mock request methods. e.g.,
380 get '/', {}, :session => { 'foo' => 'bar' }
381
2f377e26 »
2009-03-01 Trim down Testing section in the README; link to doc site instead
382 * The testing framework specific files ('sinatra/test/spec',
383 'sinatra/test/bacon', 'sinatra/test/rspec', etc.) have been deprecated.
384 See http://sinatrarb.com/testing.html for instructions on setting up
385 a testing environment with these frameworks.
386
a9e9f002 »
2009-02-21 Add send_data back in but deprecate [#143]
387 * The request-level #send_data method from Sinatra 0.3.3 has been added
388 for compatibility but is deprecated.
41c8aeb3 »
2009-02-02 Bring CHANGES file up to date with last week of stuff
389
987d622a »
2009-02-27 Bump version to 0.9.1 and update CHANGES file
390 * Fix :provides causing crash on any request when request has no
391 Accept header [#139]
392
393 * Fix that ERB templates were evaluated twice per "erb" call.
394
395 * Fix app-level middleware not being run when the Sinatra application is
396 run as middleware.
397
398 * Fixed some issues with running under Rack's CGI handler caused by
399 writing informational stuff to stdout.
400
0e1fd227 »
2009-03-01 Misc additions to the CHANGES file
401 * Fixed that reloading was sometimes enabled when starting from a
402 rackup file [#110]
403
404 * Fixed that "." in route patterns erroneously matched any character
405 instead of a literal ".". [#124]
406
f99015db »
2009-01-28 Bring in CHANGES additions from 0.9.0.x branch
407 = 0.9.0.4 / 2009-01-25
408
409 * Using halt with more than 1 args causes ArgumentError [#131]
410 * using halt in a before filter doesn't modify response [#127]
411 * Add deprecated Sinatra::EventContext to unbreak plugins [#130]
412 * Give access to GET/POST params in filters [#129]
413 * Preserve non-nested params in nested params hash [#117]
414 * Fix backtrace dump with Rack::Lint [#116]
415
416 = 0.9.0.3 / 2009-01-21
417
418 * Fall back on mongrel then webrick when thin not found. [#75]
419 * Use :environment instead of :env in test helpers to
420 fix deprecation warnings coming from framework.
421 * Make sinatra/test/rspec work again [#113]
422 * Fix app_file detection on windows [#118]
423 * Fix static files with Rack::Lint in pipeline [#121]
424
425 = 0.9.0.2 / 2009-01-18
426
427 * Halting a before block should stop processing of routes [#85]
428 * Fix redirect/halt in before filters [#85]
429
968194db »
2009-01-18 0.9.0 release
430 = 0.9.0 / 2009-01-18
ccb653fa »
2009-01-06 Update CHANGES file with hoboken notes
431
17cb177e »
2009-01-11 README and CHANGES tweaks for 0.9.0 release (#63)
432 * Works with and requires Rack >= 0.9.1
433
434 * Multiple Sinatra applications can now co-exist peacefully within a
435 single process. The new "Sinatra::Base" class can be subclassed to
436 establish a blank-slate Rack application or middleware component.
437 Documentation on using these features is forth-coming; the following
438 provides the basic gist: http://gist.github.com/38605
439
1fa9807f »
2009-01-15 Nested params (e.g., "post[title]=Hello") [#70]
440 * Parameters with subscripts are now parsed into a nested/recursive
441 Hash structure. e.g., "post[title]=Hello&post[body]=World" yields
442 params: {'post' => {'title' => 'Hello', 'body' => 'World'}}.
443
17cb177e »
2009-01-11 README and CHANGES tweaks for 0.9.0 release (#63)
444 * Regular expressions may now be used in route pattens; captures are
445 available at "params[:captures]".
b5faa571 »
2009-01-09 Dump backtrace to rack.errors on unhandled exception
446
38778edd »
2009-01-07 Add filtering support for Accept HTTP header.
447 * New ":provides" route condition takes an array of mime types and
448 matches only when an Accept request header is present with a
449 corresponding type. [cypher]
450
17cb177e »
2009-01-11 README and CHANGES tweaks for 0.9.0 release (#63)
451 * New request-level "pass" method; immediately exits the current block
452 and passes control to the next matching route.
ccb653fa »
2009-01-06 Update CHANGES file with hoboken notes
453
454 * The request-level "body" method now takes a block; evaluation is
455 deferred until an attempt is made to read the body. The block must
456 return a String or Array.
457
458 * New "route conditions" system for attaching rules for when a route
459 matches. The :agent and :host route options now use this system.
460
17cb177e »
2009-01-11 README and CHANGES tweaks for 0.9.0 release (#63)
461 * New "dump_errors" option controls whether the backtrace is dumped to
462 rack.errors when an exception is raised from a route. The option is
463 enabled by default for top-level apps.
464
465 * Better default "app_file", "root", "public", and "views" location
466 detection; changes to "root" and "app_file" automatically cascade to
467 other options that depend on them.
ccb653fa »
2009-01-06 Update CHANGES file with hoboken notes
468
469 * Error mappings are now split into two distinct layers: exception
470 mappings and custom error pages. Exception mappings are registered
471 with "error(Exception)" and are run only when the app raises an
472 exception. Custom error pages are registered with "error(status_code)",
473 where "status_code" is an integer, and are run any time the response
474 has the status code specified. It's also possible to register an error
475 page for a range of status codes: "error(500..599)".
476
968194db »
2009-01-18 0.9.0 release
477 * In-file templates are now automatically imported from the file that
478 requires 'sinatra'. The use_in_file_templates! method is still available
479 for loading templates from other files.
480
c2849ff5 »
2009-01-15 Note sinatra/test modifications in CHANGES file
481 * Sinatra's testing support is no longer dependent on Test::Unit. Requiring
482 'sinatra/test' adds the Sinatra::Test module and Sinatra::TestHarness
483 class, which can be used with any test framework. The 'sinatra/test/unit',
484 'sinatra/test/spec', 'sinatra/test/rspec', or 'sinatra/test/bacon' files
485 can be required to setup a framework-specific testing environment. See the
486 README for more information.
487
1fb5b99d »
2009-01-09 Bacon support
488 * Added support for Bacon (test framework). The 'sinatra/test/bacon' file
489 can be required to setup Sinatra test helpers on Bacon::Context.
490
ccb653fa »
2009-01-06 Update CHANGES file with hoboken notes
491 * Deprecated "set_option" and "set_options"; use "set" instead.
492
493 * Deprecated the "env" option ("options.env"); use "environment" instead.
494
495 * Deprecated the request level "stop" method; use "halt" instead.
496
497 * Deprecated the request level "entity_tag" method; use "etag" instead.
498 Both "entity_tag" and "etag" were previously supported.
499
500 * Deprecated the request level "headers" method (HTTP response headers);
501 use "response['Header-Name']" instead.
502
503 * Deprecated "Sinatra.application"; use "Sinatra::Application" instead.
504
505 * Deprecated setting Sinatra.application = nil to reset an application.
506 This should no longer be necessary.
507
508 * Deprecated "Sinatra.default_options"; use
509 "Sinatra::Default.set(key, value)" instead.
510
511 * Deprecated the "ServerError" exception. All Exceptions are now
512 treated as internal server errors and result in a 500 response
513 status.
514
91922b78 »
2009-01-13 Deprecate get_it, post_it, etc. test helpers with warnings
515 * Deprecated the "get_it", "post_it", "put_it", "delete_it", and "head_it"
516 test helper methods. Use "get", "post", "put", "delete", and "head",
517 respectively, instead.
518
ccb653fa »
2009-01-06 Update CHANGES file with hoboken notes
519 * Removed Event and EventContext classes. Applications are defined in a
520 subclass of Sinatra::Base; each request is processed within an
521 instance.
522
523 = 0.3.3 / 2009-01-06
524
525 * Pin to Rack 0.4.0 (this is the last release on Rack 0.4)
526
527 * Log unhandled exception backtraces to rack.errors.
528
529 * Use RACK_ENV environment variable to establish Sinatra
530 environment when given. Thin sets this when started with
531 the -e argument.
532
533 * BUG: raising Sinatra::NotFound resulted in a 500 response
534 code instead of 404.
535
536 * BUG: use_in_file_templates! fails with CR/LF (#45)
537
538 * BUG: Sinatra detects the app file and root path when run under
539 thin/passenger.
540
541 = 0.3.2
542
543 * BUG: Static and send_file read entire file into String before
544 sending. Updated to stream with 8K chunks instead.
545
546 * Rake tasks and assets for building basic documentation website.
547 See http://sinatra.rubyforge.org
548
549 * Various minor doc fixes.
550
551 = 0.3.1
552
553 * Unbreak optional path parameters [jeremyevans]
554
555 = 0.3.0
556
557 * Add sinatra.gemspec w/ support for github gem builds. Forks can now
558 enable the build gem option in github to get free username-sinatra.gem
559 builds: gem install username-sinatra.gem --source=http://gems.github.com/
560
561 * Require rack-0.4 gem; removes frozen rack dir.
562
563 * Basic RSpec support; require 'sinatra/test/rspec' instead of
564 'sinatra/test/spec' to use. [avdi]
565
566 * before filters can modify request environment vars used for
567 routing (e.g., PATH_INFO, REQUEST_METHOD, etc.) for URL rewriting
568 type functionality.
569
570 * In-file templates now uses @@ instead of ## as template separator.
571
572 * Top-level environment test predicates: development?, test?, production?
573
574 * Top-level "set", "enable", and "disable" methods for tweaking
575 app options. [rtomayko]
576
577 * Top-level "use" method for building Rack middleware pipelines
578 leading to app. See README for usage. [rtomayko]
579
580 * New "reload" option - set false to disable reloading in development.
581
582 * New "host" option - host/ip to bind to [cschneid]
583
584 * New "app_file" option - override the file to reload in development
585 mode [cschneid]
586
587 * Development error/not_found page cleanup [sr, adamwiggins]
588
589 * Remove a bunch of core extensions (String#to_param, String#from_param,
590 Hash#from_params, Hash#to_params, Hash#symbolize_keys, Hash#pass)
591
592 * Various grammar and formatting fixes to README; additions on
593 community and contributing [cypher]
594
595 * Build RDoc using Hanna template: http://sinatrarb.rubyforge.org/api
596
597 * Specs, documentation and fixes for splat'n routes [vic]
598
599 * Fix whitespace errors across all source files. [rtomayko]
600
601 * Fix streaming issues with Mongrel (body not closed). [bmizerany]
602
603 * Fix various issues with environment not being set properly (configure
604 blocks not running, error pages not registering, etc.) [cypher]
605
606 * Fix to allow locals to be passed to ERB templates [cschneid]
607
608 * Fix locking issues causing random errors during reload in development.
609
610 * Fix for escaped paths not resolving static files [Matthew Walker]
611
612 = 0.2.1
613
614 * File upload fix and minor tweaks.
615
616 = 0.2.0
617
618 * Initial gem release of 0.2 codebase.
Something went wrong with that request. Please try again.