Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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