Skip to content

HTTPS clone URL

Subversion checkout URL

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