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