Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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