Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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