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