Skip to content

HTTPS clone URL

Subversion checkout URL

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