Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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