Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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