Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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