Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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