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