Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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