Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 386 lines (268 sloc) 15.001 kb
e0ee682 Ryan Tomayko 0.9.4 release
rtomayko authored
1 = 0.9.4 / 2009-07-26
2
3 * The app_file and run options should be properly detected
4 on Debian when installed from apt package.
798ca32 Ryan Tomayko 0.9.3 release
rtomayko authored
5
6 * The :show_exceptions option now defaults to false in all
7 cases for subclasses of Sinatra::Base.
4101cce Ryan Tomayko get the CHANGES file going for the 0.9.3 release
rtomayko authored
8
9 * Fix webrick server handler not found errors when starting
10 from the command line without mongrel or thin [#231].
11
798ca32 Ryan Tomayko 0.9.3 release
rtomayko authored
12 * Fix locals not being passed to layouts.
13
14 * Fix 'Illegal Seek' errors running under Apache/CGI.
4101cce Ryan Tomayko get the CHANGES file going for the 0.9.3 release
rtomayko authored
15
e0ee682 Ryan Tomayko 0.9.4 release
rtomayko authored
16 = 0.9.3 / unreleased
17
3d2988c Ryan Tomayko Forgot to add release date for 0.9.2 in CHANGES
rtomayko authored
18 = 0.9.2 / 2009-05-18
13fc79d Ryan Tomayko Remove support for source file reloading [#166]
rtomayko authored
19
5d6ac2a Ryan Tomayko update CHANGES for 0.9.2 (perhaps 1.0) release
rtomayko authored
20 * This version is compatible with Rack 1.0. [Rein Henrichs]
21
22 * The development-mode unhandled exception / error page has been
23 greatly enhanced, functionally and aesthetically. The error
24 page is used when the :show_exceptions option is enabled and an
25 exception propagates outside of a route handler or before filter.
26 [Simon Rozet / Matte Noble / Ryan Tomayko]
27
28 * Backtraces that move through templates now include filenames and
29 line numbers where possible. [#51 / S. Brent Faulkner]
30
31 * All templates now have an app-level option for setting default
32 template options (:haml, :sass, :erb, :builder). The app-level
33 option value must be a Hash if set and is merged with the
34 template options specified to the render method (Base#haml,
35 Base#erb, Base#builder). [S. Brent Faulkner, Ryan Tomayko]
36
37 * The method signature for all template rendering methods has
38 been unified: "def engine(template, options={}, locals={})".
39 The options Hash now takes the generic :views, :layout, and
40 :locals options but also any template-specific options. The
41 generic options are removed before calling the template specific
42 render method. Locals may be specified using either the
43 :locals key in the options hash or a second Hash option to the
44 rendering method. [#191 / Ryan Tomayko]
45
46 * The receiver is now passed to "configure" blocks. This
47 allows for the following idiom in top-level apps:
48 configure { |app| set :foo, app.root + '/foo' }
49 [TJ Holowaychuck / Ryan Tomayko]
50
51 * The "sinatra/test" lib is deprecated and will be removed in
52 Sinatra 1.0. This includes the Sinatra::Test module and
53 Sinatra::TestHarness class in addition to all the framework
54 test helpers that were deprecated in 0.9.1. The Rack::Test
55 lib should be used instead: http://gitrdoc.com/brynary/rack-test
56 [#176 / Simon Rozet]
57
13fc79d Ryan Tomayko Remove support for source file reloading [#166]
rtomayko authored
58 * Development mode source file reloading has been removed. The
59 "shotgun" (http://rtomayko.github.com/shotgun/) program can be
60 used to achieve the same basic functionality in most situations.
61 Passenger users should use the "tmp/always_restart.txt"
5d6ac2a Ryan Tomayko update CHANGES for 0.9.2 (perhaps 1.0) release
rtomayko authored
62 file (http://tinyurl.com/c67o4h). [#166 / Ryan Tomayko]
63
b48ed22 Ryan Tomayko Add note about auto-require deprecation to CHANGES
rtomayko authored
64 * Auto-requiring template libs in the erb, builder, haml, and
65 sass methods is deprecated due to thread-safety issues. You must
66 require the template libs explicitly in your app file. [Simon Rozet]
67
5d6ac2a Ryan Tomayko update CHANGES for 0.9.2 (perhaps 1.0) release
rtomayko authored
68 * A new Sinatra::Base#route_missing method was added. route_missing
69 is sent when no route matches the request or all route handlers
70 pass. The default implementation forwards the request to the
71 downstream app when running as middleware (i.e., "@app" is
72 non-nil), or raises a NotFound exception when no downstream app
73 is defined. Subclasses can override this method to perform custom
74 route miss logic. [Jon Crosby]
75
76 * A new Sinatra::Base#route_eval method was added. The method
77 yields to the block and throws :halt with the result. Subclasses
78 can override this method to tap into the route execution logic.
79 [TJ Holowaychuck]
80
81 * Fix the "-x" (enable request mutex / locking) command line
82 argument. Passing -x now properly sets the :lock option.
83 [S. Brent Faulkner, Ryan Tomayko]
84
85 * Fix writer ("foo=") and predicate ("foo?") methods in extension
86 modules not being added to the registering class.
87 [#172 / Pat Nakajima]
88
89 * Fix in-file templates when running alongside activesupport and
90 fatal errors when requiring activesupport before sinatra
91 [#178 / Brian Candler]
92
93 * Fix various issues running on Google AppEngine.
94 [Samuel Goebert, Simon Rozet]
95
96 * Fix in-file templates __END__ detection when __END__ exists with
97 other stuff on a line [Yoji Shidara]
13fc79d Ryan Tomayko Remove support for source file reloading [#166]
rtomayko authored
98
0f02baf Ryan Tomayko 0.9.1.1 security release
rtomayko authored
99 = 0.9.1.1 / 2009-03-09
100
101 * Fix directory traversal vulnerability in default static files
102 route. See [#177] for more info.
103
987d622 Ryan Tomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
104 = 0.9.1 / 2009-03-01
41c8aeb Ryan Tomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
105
106 * Sinatra now runs under Ruby 1.9.1 [#61]
987d622 Ryan Tomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
107
41c8aeb Ryan Tomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
108 * Route patterns (splats, :named, or Regexp captures) are now
109 passed as arguments to the block. [#140]
987d622 Ryan Tomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
110
41c8aeb Ryan Tomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
111 * The "helpers" method now takes a variable number of modules
112 along with the normal block syntax. [#133]
987d622 Ryan Tomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
113
cf32f2e Ryan Tomayko Middleware enhancements: automatic and explicit forward to downstream [#...
rtomayko authored
114 * New request-level #forward method for middleware components: passes
115 the env to the downstream app and merges the response status, headers,
0e1fd22 Ryan Tomayko Misc additions to the CHANGES file
rtomayko authored
116 and body into the current context. [#126]
987d622 Ryan Tomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
117
cf32f2e Ryan Tomayko Middleware enhancements: automatic and explicit forward to downstream [#...
rtomayko authored
118 * Requests are now automatically forwarded to the downstream app when
119 running as middleware and no matching route is found or all routes
120 pass.
987d622 Ryan Tomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
121
41c8aeb Ryan Tomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
122 * New simple API for extensions/plugins to add DSL-level and
123 request-level methods. Use Sinatra.register(mixin) to extend
124 the DSL with all public methods defined in the mixin module;
125 use Sinatra.helpers(mixin) to make all public methods defined
126 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
127 See http://www.sinatrarb.com/extensions.html for details.
128
129 * Named parameters in routes now capture the "." character. This makes
130 routes like "/:path/:filename" match against requests like
131 "/foo/bar.txt"; in this case, "params[:filename]" is "bar.txt".
132 Previously, the route would not match at all.
133
134 * Added request-level "redirect back" to redirect to the referring
135 URL.
136
41c8aeb Ryan Tomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
137 * Added a new "clean_trace" option that causes backtraces dumped
138 to rack.errors and displayed on the development error page to
139 omit framework and core library backtrace lines. The option is
140 enabled by default. [#77]
987d622 Ryan Tomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
141
090c4d7 Ryan Tomayko Fix weirdness with partials in ERB [#158]
rtomayko authored
142 * The ERB output buffer is now available to helpers via the @_out_buf
143 instance variable.
987d622 Ryan Tomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
144
145 * It's now much easier to test sessions in unit tests by passing a
146 ":session" option to any of the mock request methods. e.g.,
147 get '/', {}, :session => { 'foo' => 'bar' }
148
2f377e2 Ryan Tomayko Trim down Testing section in the README; link to doc site instead
rtomayko authored
149 * The testing framework specific files ('sinatra/test/spec',
150 'sinatra/test/bacon', 'sinatra/test/rspec', etc.) have been deprecated.
151 See http://sinatrarb.com/testing.html for instructions on setting up
152 a testing environment with these frameworks.
153
a9e9f00 Ryan Tomayko Add send_data back in but deprecate [#143]
rtomayko authored
154 * The request-level #send_data method from Sinatra 0.3.3 has been added
155 for compatibility but is deprecated.
41c8aeb Ryan Tomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
156
987d622 Ryan Tomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
157 * Fix :provides causing crash on any request when request has no
158 Accept header [#139]
159
160 * Fix that ERB templates were evaluated twice per "erb" call.
161
162 * Fix app-level middleware not being run when the Sinatra application is
163 run as middleware.
164
165 * Fixed some issues with running under Rack's CGI handler caused by
166 writing informational stuff to stdout.
167
0e1fd22 Ryan Tomayko Misc additions to the CHANGES file
rtomayko authored
168 * Fixed that reloading was sometimes enabled when starting from a
169 rackup file [#110]
170
171 * Fixed that "." in route patterns erroneously matched any character
172 instead of a literal ".". [#124]
173
f99015d Ryan Tomayko Bring in CHANGES additions from 0.9.0.x branch
rtomayko authored
174 = 0.9.0.4 / 2009-01-25
175
176 * Using halt with more than 1 args causes ArgumentError [#131]
177 * using halt in a before filter doesn't modify response [#127]
178 * Add deprecated Sinatra::EventContext to unbreak plugins [#130]
179 * Give access to GET/POST params in filters [#129]
180 * Preserve non-nested params in nested params hash [#117]
181 * Fix backtrace dump with Rack::Lint [#116]
182
183 = 0.9.0.3 / 2009-01-21
184
185 * Fall back on mongrel then webrick when thin not found. [#75]
186 * Use :environment instead of :env in test helpers to
187 fix deprecation warnings coming from framework.
188 * Make sinatra/test/rspec work again [#113]
189 * Fix app_file detection on windows [#118]
190 * Fix static files with Rack::Lint in pipeline [#121]
191
192 = 0.9.0.2 / 2009-01-18
193
194 * Halting a before block should stop processing of routes [#85]
195 * Fix redirect/halt in before filters [#85]
196
968194d Ryan Tomayko 0.9.0 release
rtomayko authored
197 = 0.9.0 / 2009-01-18
ccb653f Ryan Tomayko Update CHANGES file with hoboken notes
rtomayko authored
198
17cb177 Markus Prinz README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
199 * Works with and requires Rack >= 0.9.1
200
201 * Multiple Sinatra applications can now co-exist peacefully within a
202 single process. The new "Sinatra::Base" class can be subclassed to
203 establish a blank-slate Rack application or middleware component.
204 Documentation on using these features is forth-coming; the following
205 provides the basic gist: http://gist.github.com/38605
206
1fa9807 Nicolás Sanguinetti Nested params (e.g., "post[title]=Hello") [#70]
foca authored
207 * Parameters with subscripts are now parsed into a nested/recursive
208 Hash structure. e.g., "post[title]=Hello&post[body]=World" yields
209 params: {'post' => {'title' => 'Hello', 'body' => 'World'}}.
210
17cb177 Markus Prinz README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
211 * Regular expressions may now be used in route pattens; captures are
212 available at "params[:captures]".
b5faa57 Ryan Tomayko Dump backtrace to rack.errors on unhandled exception
rtomayko authored
213
38778ed Markus Prinz Add filtering support for Accept HTTP header.
cypher authored
214 * New ":provides" route condition takes an array of mime types and
215 matches only when an Accept request header is present with a
216 corresponding type. [cypher]
217
17cb177 Markus Prinz README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
218 * New request-level "pass" method; immediately exits the current block
219 and passes control to the next matching route.
ccb653f Ryan Tomayko Update CHANGES file with hoboken notes
rtomayko authored
220
221 * The request-level "body" method now takes a block; evaluation is
222 deferred until an attempt is made to read the body. The block must
223 return a String or Array.
224
225 * New "route conditions" system for attaching rules for when a route
226 matches. The :agent and :host route options now use this system.
227
17cb177 Markus Prinz README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
228 * New "dump_errors" option controls whether the backtrace is dumped to
229 rack.errors when an exception is raised from a route. The option is
230 enabled by default for top-level apps.
231
232 * Better default "app_file", "root", "public", and "views" location
233 detection; changes to "root" and "app_file" automatically cascade to
234 other options that depend on them.
ccb653f Ryan Tomayko Update CHANGES file with hoboken notes
rtomayko authored
235
236 * Error mappings are now split into two distinct layers: exception
237 mappings and custom error pages. Exception mappings are registered
238 with "error(Exception)" and are run only when the app raises an
239 exception. Custom error pages are registered with "error(status_code)",
240 where "status_code" is an integer, and are run any time the response
241 has the status code specified. It's also possible to register an error
242 page for a range of status codes: "error(500..599)".
243
968194d Ryan Tomayko 0.9.0 release
rtomayko authored
244 * In-file templates are now automatically imported from the file that
245 requires 'sinatra'. The use_in_file_templates! method is still available
246 for loading templates from other files.
247
c2849ff Ryan Tomayko Note sinatra/test modifications in CHANGES file
rtomayko authored
248 * Sinatra's testing support is no longer dependent on Test::Unit. Requiring
249 'sinatra/test' adds the Sinatra::Test module and Sinatra::TestHarness
250 class, which can be used with any test framework. The 'sinatra/test/unit',
251 'sinatra/test/spec', 'sinatra/test/rspec', or 'sinatra/test/bacon' files
252 can be required to setup a framework-specific testing environment. See the
253 README for more information.
254
1fb5b99 Dylan Egan Bacon support
dylanegan authored
255 * Added support for Bacon (test framework). The 'sinatra/test/bacon' file
256 can be required to setup Sinatra test helpers on Bacon::Context.
257
ccb653f Ryan Tomayko Update CHANGES file with hoboken notes
rtomayko authored
258 * Deprecated "set_option" and "set_options"; use "set" instead.
259
260 * Deprecated the "env" option ("options.env"); use "environment" instead.
261
262 * Deprecated the request level "stop" method; use "halt" instead.
263
264 * Deprecated the request level "entity_tag" method; use "etag" instead.
265 Both "entity_tag" and "etag" were previously supported.
266
267 * Deprecated the request level "headers" method (HTTP response headers);
268 use "response['Header-Name']" instead.
269
270 * Deprecated "Sinatra.application"; use "Sinatra::Application" instead.
271
272 * Deprecated setting Sinatra.application = nil to reset an application.
273 This should no longer be necessary.
274
275 * Deprecated "Sinatra.default_options"; use
276 "Sinatra::Default.set(key, value)" instead.
277
278 * Deprecated the "ServerError" exception. All Exceptions are now
279 treated as internal server errors and result in a 500 response
280 status.
281
91922b7 Ryan Tomayko Deprecate get_it, post_it, etc. test helpers with warnings
rtomayko authored
282 * Deprecated the "get_it", "post_it", "put_it", "delete_it", and "head_it"
283 test helper methods. Use "get", "post", "put", "delete", and "head",
284 respectively, instead.
285
ccb653f Ryan Tomayko Update CHANGES file with hoboken notes
rtomayko authored
286 * Removed Event and EventContext classes. Applications are defined in a
287 subclass of Sinatra::Base; each request is processed within an
288 instance.
289
290 = 0.3.3 / 2009-01-06
291
292 * Pin to Rack 0.4.0 (this is the last release on Rack 0.4)
293
294 * Log unhandled exception backtraces to rack.errors.
295
296 * Use RACK_ENV environment variable to establish Sinatra
297 environment when given. Thin sets this when started with
298 the -e argument.
299
300 * BUG: raising Sinatra::NotFound resulted in a 500 response
301 code instead of 404.
302
303 * BUG: use_in_file_templates! fails with CR/LF (#45)
304
305 * BUG: Sinatra detects the app file and root path when run under
306 thin/passenger.
307
308 = 0.3.2
309
310 * BUG: Static and send_file read entire file into String before
311 sending. Updated to stream with 8K chunks instead.
312
313 * Rake tasks and assets for building basic documentation website.
314 See http://sinatra.rubyforge.org
315
316 * Various minor doc fixes.
317
318 = 0.3.1
319
320 * Unbreak optional path parameters [jeremyevans]
321
322 = 0.3.0
323
324 * Add sinatra.gemspec w/ support for github gem builds. Forks can now
325 enable the build gem option in github to get free username-sinatra.gem
326 builds: gem install username-sinatra.gem --source=http://gems.github.com/
327
328 * Require rack-0.4 gem; removes frozen rack dir.
329
330 * Basic RSpec support; require 'sinatra/test/rspec' instead of
331 'sinatra/test/spec' to use. [avdi]
332
333 * before filters can modify request environment vars used for
334 routing (e.g., PATH_INFO, REQUEST_METHOD, etc.) for URL rewriting
335 type functionality.
336
337 * In-file templates now uses @@ instead of ## as template separator.
338
339 * Top-level environment test predicates: development?, test?, production?
340
341 * Top-level "set", "enable", and "disable" methods for tweaking
342 app options. [rtomayko]
343
344 * Top-level "use" method for building Rack middleware pipelines
345 leading to app. See README for usage. [rtomayko]
346
347 * New "reload" option - set false to disable reloading in development.
348
349 * New "host" option - host/ip to bind to [cschneid]
350
351 * New "app_file" option - override the file to reload in development
352 mode [cschneid]
353
354 * Development error/not_found page cleanup [sr, adamwiggins]
355
356 * Remove a bunch of core extensions (String#to_param, String#from_param,
357 Hash#from_params, Hash#to_params, Hash#symbolize_keys, Hash#pass)
358
359 * Various grammar and formatting fixes to README; additions on
360 community and contributing [cypher]
361
362 * Build RDoc using Hanna template: http://sinatrarb.rubyforge.org/api
363
364 * Specs, documentation and fixes for splat'n routes [vic]
365
366 * Fix whitespace errors across all source files. [rtomayko]
367
368 * Fix streaming issues with Mongrel (body not closed). [bmizerany]
369
370 * Fix various issues with environment not being set properly (configure
371 blocks not running, error pages not registering, etc.) [cypher]
372
373 * Fix to allow locals to be passed to ERB templates [cschneid]
374
375 * Fix locking issues causing random errors during reload in development.
376
377 * Fix for escaped paths not resolving static files [Matthew Walker]
378
379 = 0.2.1
380
381 * File upload fix and minor tweaks.
382
383 = 0.2.0
384
385 * Initial gem release of 0.2 codebase.
Something went wrong with that request. Please try again.