Skip to content

HTTPS clone URL

Subversion checkout URL

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