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