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