sinatra 1.4.8 → 2.0.8.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sinatra might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/AUTHORS.md +1 -0
- data/CHANGELOG.md +238 -54
- data/CONTRIBUTING.md +8 -8
- data/Gemfile +47 -47
- data/LICENSE +4 -1
- data/MAINTENANCE.md +42 -0
- data/README.de.md +650 -442
- data/README.es.md +738 -357
- data/README.fr.md +15 -15
- data/README.hu.md +37 -3
- data/README.ja.md +124 -66
- data/README.ko.md +14 -14
- data/README.malayalam.md +3141 -0
- data/README.md +530 -403
- data/README.pt-br.md +2361 -334
- data/README.pt-pt.md +2 -2
- data/README.ru.md +856 -607
- data/README.zh.md +90 -28
- data/Rakefile +77 -51
- data/SECURITY.md +35 -0
- data/VERSION +1 -0
- data/lib/sinatra/base.rb +177 -239
- data/lib/sinatra/indifferent_hash.rb +200 -0
- data/lib/sinatra/main.rb +30 -10
- data/lib/sinatra/show_exceptions.rb +102 -62
- data/lib/sinatra/version.rb +1 -1
- data/sinatra.gemspec +44 -8
- metadata +41 -166
- data/lib/sinatra/ext.rb +0 -17
- data/test/asciidoctor_test.rb +0 -72
- data/test/base_test.rb +0 -167
- data/test/builder_test.rb +0 -91
- data/test/coffee_test.rb +0 -96
- data/test/compile_test.rb +0 -183
- data/test/contest.rb +0 -91
- data/test/creole_test.rb +0 -65
- data/test/delegator_test.rb +0 -160
- data/test/encoding_test.rb +0 -20
- data/test/erb_test.rb +0 -116
- data/test/extensions_test.rb +0 -98
- data/test/filter_test.rb +0 -487
- data/test/haml_test.rb +0 -109
- data/test/helper.rb +0 -132
- data/test/helpers_test.rb +0 -1917
- data/test/integration/app.rb +0 -79
- data/test/integration_helper.rb +0 -236
- data/test/integration_test.rb +0 -104
- data/test/less_test.rb +0 -69
- data/test/liquid_test.rb +0 -77
- data/test/mapped_error_test.rb +0 -285
- data/test/markaby_test.rb +0 -80
- data/test/markdown_test.rb +0 -85
- data/test/mediawiki_test.rb +0 -68
- data/test/middleware_test.rb +0 -68
- data/test/nokogiri_test.rb +0 -67
- data/test/public/favicon.ico +0 -0
- data/test/public/hello+world.txt +0 -1
- data/test/rabl_test.rb +0 -89
- data/test/rack_test.rb +0 -45
- data/test/radius_test.rb +0 -59
- data/test/rdoc_test.rb +0 -66
- data/test/readme_test.rb +0 -130
- data/test/request_test.rb +0 -100
- data/test/response_test.rb +0 -63
- data/test/result_test.rb +0 -76
- data/test/route_added_hook_test.rb +0 -59
- data/test/routing_test.rb +0 -1456
- data/test/sass_test.rb +0 -115
- data/test/scss_test.rb +0 -88
- data/test/server_test.rb +0 -56
- data/test/settings_test.rb +0 -582
- data/test/sinatra_test.rb +0 -12
- data/test/slim_test.rb +0 -102
- data/test/static_test.rb +0 -266
- data/test/streaming_test.rb +0 -149
- data/test/stylus_test.rb +0 -90
- data/test/templates_test.rb +0 -382
- data/test/textile_test.rb +0 -65
- data/test/views/a/in_a.str +0 -1
- data/test/views/ascii.erb +0 -2
- data/test/views/b/in_b.str +0 -1
- data/test/views/calc.html.erb +0 -1
- data/test/views/error.builder +0 -3
- data/test/views/error.erb +0 -3
- data/test/views/error.haml +0 -3
- data/test/views/error.sass +0 -2
- data/test/views/explicitly_nested.str +0 -1
- data/test/views/foo/hello.test +0 -1
- data/test/views/hello.asciidoc +0 -1
- data/test/views/hello.builder +0 -1
- data/test/views/hello.coffee +0 -1
- data/test/views/hello.creole +0 -1
- data/test/views/hello.erb +0 -1
- data/test/views/hello.haml +0 -1
- data/test/views/hello.less +0 -5
- data/test/views/hello.liquid +0 -1
- data/test/views/hello.mab +0 -1
- data/test/views/hello.md +0 -1
- data/test/views/hello.mediawiki +0 -1
- data/test/views/hello.nokogiri +0 -1
- data/test/views/hello.rabl +0 -2
- data/test/views/hello.radius +0 -1
- data/test/views/hello.rdoc +0 -1
- data/test/views/hello.sass +0 -2
- data/test/views/hello.scss +0 -3
- data/test/views/hello.slim +0 -1
- data/test/views/hello.str +0 -1
- data/test/views/hello.styl +0 -2
- data/test/views/hello.test +0 -1
- data/test/views/hello.textile +0 -1
- data/test/views/hello.wlang +0 -1
- data/test/views/hello.yajl +0 -1
- data/test/views/layout2.builder +0 -3
- data/test/views/layout2.erb +0 -2
- data/test/views/layout2.haml +0 -2
- data/test/views/layout2.liquid +0 -2
- data/test/views/layout2.mab +0 -2
- data/test/views/layout2.nokogiri +0 -3
- data/test/views/layout2.rabl +0 -3
- data/test/views/layout2.radius +0 -2
- data/test/views/layout2.slim +0 -3
- data/test/views/layout2.str +0 -2
- data/test/views/layout2.test +0 -1
- data/test/views/layout2.wlang +0 -2
- data/test/views/nested.str +0 -1
- data/test/views/utf8.erb +0 -2
- data/test/wlang_test.rb +0 -87
- data/test/yajl_test.rb +0 -86
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d0a9fb798a1b2f906d9b84c950dd0095bbe7fa043468ffcc6b5a48f0320d14a1
|
4
|
+
data.tar.gz: 9e05cfa93c2426526551ad0149562132157a7a01e6ebacc1f153f5d75bd4ea0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2d1a38d64c63b2b5de785bc301843a1ce8a84daa752beceea399d3d936d3fdc3ed2e65d642c9f7ad736a3b67d5b66ae4b60078ab5a24841a67d6ccd9fe68d62
|
7
|
+
data.tar.gz: a8382fe4d07c482efa87001d9b4de97dffbf48eb69ded2d177e202cae852898ddf394095bc108f170f789ba2e47b8a45900191efcb8aa81b6e9df5289cf682e4
|
data/AUTHORS.md
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,20 +1,204 @@
|
|
1
|
-
|
1
|
+
## 2.0.8.1 / 2020-01-02
|
2
|
+
|
3
|
+
* Allow multiple hashes to be passed in `merge` and `merge!` for `Sinatra::IndifferentHash` [#1572](https://github.com/sinatra/sinatra/pull/1572) by Shota Iguchi
|
4
|
+
|
5
|
+
## 2.0.8 / 2020-01-01
|
6
|
+
|
7
|
+
* Lookup Tilt class for template engine without loading files [#1558](https://github.com/sinatra/sinatra/pull/1558). Fixes [#1172](https://github.com/sinatra/sinatra/issues/1172) by Jordan Owens
|
8
|
+
|
9
|
+
* Add request info in NotFound exception [#1566](https://github.com/sinatra/sinatra/pull/1566) by Stefan Sundin
|
10
|
+
|
11
|
+
* Add `.yaml` support in `Sinatra::Contrib::ConfigFile` [#1564](https://github.com/sinatra/sinatra/issues/1564). Fixes [#1563](https://github.com/sinatra/sinatra/issues/1563) by Emerson Manabu Araki
|
12
|
+
|
13
|
+
* Remove only routing parameters from @params hash [#1569](https://github.com/sinatra/sinatra/pull/1569). Fixes [#1567](https://github.com/sinatra/sinatra/issues/1567) by Jordan Owens, Horacio
|
14
|
+
|
15
|
+
* Support `capture` and `content_for` with Hamlit [#1580](https://github.com/sinatra/sinatra/pull/1580) by Takashi Kokubun
|
16
|
+
|
17
|
+
* Eliminate warnings of keyword parameter for Ruby 2.7.0 [#1581](https://github.com/sinatra/sinatra/pull/1581) by Osamtimizer
|
18
|
+
|
19
|
+
## 2.0.7 / 2019-08-22
|
20
|
+
|
21
|
+
* Fix a regression [#1560](https://github.com/sinatra/sinatra/pull/1560) by Kunpei Sakai
|
22
|
+
|
23
|
+
## 2.0.6 / 2019-08-21
|
24
|
+
|
25
|
+
* Fix an issue setting environment from command line option [#1547](https://github.com/sinatra/sinatra/pull/1547), [#1554](https://github.com/sinatra/sinatra/pull/1554) by Jordan Owens, Kunpei Sakai
|
26
|
+
|
27
|
+
* Support pandoc as a new markdown renderer [#1533](https://github.com/sinatra/sinatra/pull/1533) by Vasiliy
|
28
|
+
|
29
|
+
* Remove outdated code for tilt 1.x [#1532](https://github.com/sinatra/sinatra/pull/1532) by Vasiliy
|
30
|
+
|
31
|
+
* Remove an extra logic for `force_encoding` [#1527](https://github.com/sinatra/sinatra/pull/1527) by Jordan Owens
|
32
|
+
|
33
|
+
* Avoid multiple errors even if `params` contains special values [#1526](https://github.com/sinatra/sinatra/pull/1527) by Kunpei Sakai
|
34
|
+
|
35
|
+
* Support `bundler/inline` with `require 'sinatra'` integration [#1520](https://github.com/sinatra/sinatra/pull/1520) by Kunpei Sakai
|
36
|
+
|
37
|
+
* Avoid `TypeError` when params contain a key without a value on Ruby < 2.4 [#1516](https://github.com/sinatra/sinatra/pull/1516) by Samuel Giddins
|
38
|
+
|
39
|
+
* Improve development support and documentation and source code by Olle Jonsson, Basavanagowda Kanur, Yuki MINAMIYA
|
40
|
+
|
41
|
+
## 2.0.5 / 2018-12-22
|
42
|
+
|
43
|
+
* Avoid FrozenError when params contains frozen value [#1506](https://github.com/sinatra/sinatra/pull/1506) by Kunpei Sakai
|
44
|
+
|
45
|
+
* Add support for Erubi [#1494](https://github.com/sinatra/sinatra/pull/1494) by @tkmru
|
46
|
+
|
47
|
+
* `IndifferentHash` monkeypatch warning improvements [#1477](https://github.com/sinatra/sinatra/pull/1477) by Mike Pastore
|
48
|
+
|
49
|
+
* Improve development support and documentation and source code by Anusree Prakash, Jordan Owens, @ceclinux and @krororo.
|
50
|
+
|
51
|
+
### sinatra-contrib
|
52
|
+
|
53
|
+
* Add `flush` option to `content_for` [#1225](https://github.com/sinatra/sinatra/pull/1225) by Shota Iguchi
|
54
|
+
|
55
|
+
* Drop activesupport dependency from sinatra-contrib [#1448](https://github.com/sinatra/sinatra/pull/1448)
|
56
|
+
|
57
|
+
* Update `yield_content` to append default to ERB template buffer [#1500](https://github.com/sinatra/sinatra/pull/1500) by Jordan Owens
|
58
|
+
|
59
|
+
### rack-protection
|
60
|
+
|
61
|
+
* Don't track the Accept-Language header by default [#1504](https://github.com/sinatra/sinatra/pull/1504) by Artem Chistyakov
|
62
|
+
|
63
|
+
## 2.0.4 / 2018-09-15
|
64
|
+
|
65
|
+
* Don't blow up when passing frozen string to `send_file` disposition [#1137](https://github.com/sinatra/sinatra/pull/1137) by Andrew Selder
|
66
|
+
|
67
|
+
* Fix ubygems LoadError [#1436](https://github.com/sinatra/sinatra/pull/1436) by Pavel Rosický
|
68
|
+
|
69
|
+
* Unescape regex captures [#1446](https://github.com/sinatra/sinatra/pull/1446) by Jordan Owens
|
70
|
+
|
71
|
+
* Slight performance improvements for IndifferentHash [#1427](https://github.com/sinatra/sinatra/pull/1427) by Mike Pastore
|
72
|
+
|
73
|
+
* Improve development support and documentation and source code by Will Yang, Jake Craige, Grey Baker and Guilherme Goettems Schneider
|
74
|
+
|
75
|
+
## 2.0.3 / 2018-06-09
|
76
|
+
|
77
|
+
* Fix the backports gem regression [#1442](https://github.com/sinatra/sinatra/issues/1442) by Marc-André Lafortune
|
78
|
+
|
79
|
+
## 2.0.2 / 2018-06-05
|
80
|
+
|
81
|
+
* Escape invalid query parameters [#1432](https://github.com/sinatra/sinatra/issues/1432) by Kunpei Sakai
|
82
|
+
* The patch fixes [CVE-2018-11627](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-11627).
|
83
|
+
|
84
|
+
* Fix undefined method error for `Sinatra::RequiredParams` with hash key [#1431](https://github.com/sinatra/sinatra/issues/1431) by Arpit Chauhan
|
85
|
+
|
86
|
+
* Add xml content-types to valid html_types for Rack::Protection [#1413](https://github.com/sinatra/sinatra/issues/1413) by Reenan Arbitrario
|
87
|
+
|
88
|
+
* Encode route parameters using :default_encoding setting [#1412](https://github.com/sinatra/sinatra/issues/1412) by Brian m. Carlson
|
89
|
+
|
90
|
+
* Fix unpredictable behaviour from Sinatra::ConfigFile [#1244](https://github.com/sinatra/sinatra/issues/1244) by John Hope
|
91
|
+
|
92
|
+
* Add Sinatra::IndifferentHash#slice [#1405](https://github.com/sinatra/sinatra/issues/1405) by Shota Iguchi
|
93
|
+
|
94
|
+
* Remove status code 205 from drop body response [#1398](https://github.com/sinatra/sinatra/issues/1398) by Shota Iguchi
|
95
|
+
|
96
|
+
* Ignore empty captures from params [#1390](https://github.com/sinatra/sinatra/issues/1390) by Shota Iguchi
|
97
|
+
|
98
|
+
* Improve development support and documentation and source code by Zp Yuan, Andreas Finger, Olle Jonsson, Shota Iguchi, Nikita Bulai and Joshua O'Brien
|
99
|
+
|
100
|
+
## 2.0.1 / 2018-02-17
|
101
|
+
|
102
|
+
* Repair nested namespaces, by avoiding prefix duplication [#1322](https://github.com/sinatra/sinatra/issues/1322). Fixes [#1310](https://github.com/sinatra/sinatra/issues/1310) by Kunpei Sakai
|
103
|
+
|
104
|
+
* Add pattern matches to values for Mustermann::Concat [#1333](https://github.com/sinatra/sinatra/issues/1333). Fixes [#1332](https://github.com/sinatra/sinatra/issues/1332) by Dawa Ometto
|
105
|
+
|
106
|
+
* Ship the VERSION file with the gem, to allow local unpacking [#1338](https://github.com/sinatra/sinatra/issues/1338) by Olle Jonsson
|
107
|
+
|
108
|
+
* Fix issue with custom error handler on bad request [#1351](https://github.com/sinatra/sinatra/issues/1351). Fixes [#1350](https://github.com/sinatra/sinatra/issues/1350) by Jordan Owens
|
109
|
+
|
110
|
+
* Override Rack::ShowExceptions#pretty to set custom template [#1377](https://github.com/sinatra/sinatra/issues/1377). Fixes [#1376](https://github.com/sinatra/sinatra/issues/1376) by Jordan Owens
|
111
|
+
|
112
|
+
* Enhanced path validation in Windows [#1379](https://github.com/sinatra/sinatra/issues/1379) by Orange Tsai from DEVCORE
|
113
|
+
* The patch fixes [CVE-2018-7212](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-7212)
|
114
|
+
|
115
|
+
* Improve development support and documentation by Faheel Ahmad, Shota Iguchi, Olle Jonsson, Manabu Niseki, John Hope, Horacio, Ice-Storm, GraniteRock, Raman Skaskevich, Carlos Azuaje, 284km, Dan Rice and Zachary Scott
|
116
|
+
|
117
|
+
## 2.0.0 / 2017-04-10
|
118
|
+
|
119
|
+
* Use Mustermann for patterns [#1086](https://github.com/sinatra/sinatra/issues/1086) by Konstantin Haase
|
120
|
+
|
121
|
+
* Server now provides `-q` flag for quiet mode, which disables start/stop messages [#1153](https://github.com/sinatra/sinatra/issues/1153) by Vasiliy.
|
122
|
+
|
123
|
+
* Session middleware can now be specified with `:session_store` setting [#1161](https://github.com/sinatra/sinatra/issues/1161) by Jordan Owens.
|
124
|
+
|
125
|
+
* `APP_ENV` is now preferred and recommended over `RACK_ENV` for setting environment [#984](https://github.com/sinatra/sinatra/issues/984) by Damien Mathieu.
|
126
|
+
|
127
|
+
* Add Reel support [#793](https://github.com/sinatra/sinatra/issues/793) by Patricio Mac Adden.
|
128
|
+
|
129
|
+
* Make route params available during error handling [#895](https://github.com/sinatra/sinatra/issues/895) by Jeremy Evans.
|
130
|
+
|
131
|
+
* Unify `not_found` and `error` 404 behavior [#896](https://github.com/sinatra/sinatra/issues/896) by Jeremy Evans.
|
132
|
+
|
133
|
+
* Enable Ruby 2.3 `frozen_string_literal` feature [#1076](https://github.com/sinatra/sinatra/issues/1076) by Vladimir Kochnev.
|
134
|
+
|
135
|
+
* Add Sinatra::ShowExceptions::TEMPLATE and patched Rack::ShowExceptions to prefer Sinatra template by Zachary Scott.
|
136
|
+
|
137
|
+
* Sinatra::Runner is used internally for integration tests [#840](https://github.com/sinatra/sinatra/issues/840) by Nick Sutterer.
|
138
|
+
|
139
|
+
* Fix case-sensitivity issue in `uri` method [#889](https://github.com/sinatra/sinatra/issues/889) by rennex.
|
140
|
+
|
141
|
+
* Use `Rack::Utils.status_code` to allow `status` helper to use symbol as well as numeric codes [#968](https://github.com/sinatra/sinatra/issues/968) by Tobias H. Michaelsen.
|
142
|
+
|
143
|
+
* Improved error handling for invalid params through Rack [#1070](https://github.com/sinatra/sinatra/issues/1070) by Jordan Owens.
|
144
|
+
|
145
|
+
* Ensure template is cached only once [#1021](https://github.com/sinatra/sinatra/issues/1021) by Patrik Rak.
|
146
|
+
|
147
|
+
* Rack middleware is initialized at server runtime rather than after receiving first request [#1205](https://github.com/sinatra/sinatra/issues/1205) by Itamar Turner-Trauring.
|
148
|
+
|
149
|
+
* Improve Session Secret documentation to encourage better security practices [#1218](https://github.com/sinatra/sinatra/issues/1218) by Glenn Rempe
|
150
|
+
|
151
|
+
* Exposed global and per-route options for Mustermann route parsing [#1233](https://github.com/sinatra/sinatra/issues/1233) by Mike Pastore
|
152
|
+
|
153
|
+
* Use same `session_secret` for classic and modular apps in development [#1245](https://github.com/sinatra/sinatra/issues/1245) by Marcus Stollsteimer
|
154
|
+
|
155
|
+
* Make authenticity token length a fixed value of 32 [#1181](https://github.com/sinatra/sinatra/issues/1181) by Jordan Owens
|
156
|
+
|
157
|
+
* Modernize Rack::Protection::ContentSecurityPolicy with CSP Level 2 and 3 Directives [#1202](https://github.com/sinatra/sinatra/issues/1202) by Glenn Rempe
|
158
|
+
|
159
|
+
* Adds preload option to Rack:Protection:StrictTransport [#1209](https://github.com/sinatra/sinatra/issues/1209) by Ed Robinson
|
160
|
+
|
161
|
+
* Improve BadRequest logic. Raise and handle exceptions if status is 400 [#1212](https://github.com/sinatra/sinatra/issues/1212) by Mike Pastore
|
162
|
+
|
163
|
+
* Make Rack::Test a development dependency [#1232](https://github.com/sinatra/sinatra/issues/1232) by Mike Pastore
|
164
|
+
|
165
|
+
* Capture exception messages of raised NotFound and BadRequest [#1210](https://github.com/sinatra/sinatra/issues/1210) by Mike Pastore
|
166
|
+
|
167
|
+
* Add explicit set method to contrib/cookies to override cookie settings [#1240](https://github.com/sinatra/sinatra/issues/1240) by Andrew Allen
|
168
|
+
|
169
|
+
* Avoid executing filters even if prefix matches with other namespace [#1253](https://github.com/sinatra/sinatra/issues/1253) by namusyaka
|
170
|
+
|
171
|
+
* Make `#has_key?` also indifferent in access, can accept String or Symbol [#1262](https://github.com/sinatra/sinatra/issues/1262) by Stephen Paul Weber
|
172
|
+
|
173
|
+
* Add `allow_if` option to bypass json csrf protection [#1265](https://github.com/sinatra/sinatra/issues/1265) by Jordan Owens
|
174
|
+
|
175
|
+
* rack-protection: Bundle StrictTransport, CookieTossing, and CSP [#1267](https://github.com/sinatra/sinatra/issues/1267) by Mike Pastore
|
176
|
+
|
177
|
+
* Add `:strict_paths` option for managing trailing slashes [#1273](https://github.com/sinatra/sinatra/issues/1273) by namusyaka
|
178
|
+
|
179
|
+
* Add full IndifferentHash implementation to params [#1279](https://github.com/sinatra/sinatra/issues/1279) by Mike Pastore
|
180
|
+
|
181
|
+
## 1.4.8 / 2017-01-30
|
182
|
+
|
183
|
+
* Fix the deprecation warning from Ruby about Fixnum. [#1235](https://github.com/sinatra/sinatra/issues/1235) by Akira Matsuda
|
184
|
+
|
185
|
+
## 1.4.7 / 2016-01-24
|
2
186
|
|
3
187
|
* Add Ashley Williams, Trevor Bramble, and Kashyap Kondamudi to team Sinatra.
|
4
188
|
|
5
189
|
* Correctly handle encoded colons in routes. (Jeremy Evans)
|
6
190
|
|
7
|
-
* Rename CHANGES to CHANGELOG.md and update Rakefile. #1043 (Eliza Sorensen)
|
191
|
+
* Rename CHANGES to CHANGELOG.md and update Rakefile. [#1043](https://github.com/sinatra/sinatra/issues/1043) (Eliza Sorensen)
|
8
192
|
|
9
|
-
* Improve documentation. #941, #1069, #1075, #1025, #1052 (Many great folks)
|
193
|
+
* Improve documentation. [#941](https://github.com/sinatra/sinatra/issues/941), [#1069](https://github.com/sinatra/sinatra/issues/1069), [#1075](https://github.com/sinatra/sinatra/issues/1075), [#1025](https://github.com/sinatra/sinatra/issues/1025), [#1052](https://github.com/sinatra/sinatra/issues/1052) (Many great folks)
|
10
194
|
|
11
195
|
* Introduce `Sinatra::Ext` to workaround Rack 1.6 bug to fix Ruby 1.8.7
|
12
|
-
support. #1080 (Zachary Scott)
|
196
|
+
support. [#1080](https://github.com/sinatra/sinatra/issues/1080) (Zachary Scott)
|
13
197
|
|
14
|
-
* Add CONTRIBUTING guide. #987 (Katrina Owen)
|
198
|
+
* Add CONTRIBUTING guide. [#987](https://github.com/sinatra/sinatra/issues/987) (Katrina Owen)
|
15
199
|
|
16
200
|
|
17
|
-
|
201
|
+
## 1.4.6 / 2015-03-23
|
18
202
|
|
19
203
|
* Improve tests and documentation. (Darío Hereñú, Seiichi Yonezawa, kyoendo,
|
20
204
|
John Voloski, Ferenc-, Renaud Martinet, Christian Haase, marocchino,
|
@@ -44,7 +228,7 @@
|
|
44
228
|
* Upgrade test suite to Minitest version 5 and fix Ruby 2.2 compatibility.
|
45
229
|
(Vipul A M)
|
46
230
|
|
47
|
-
|
231
|
+
## 1.4.5 / 2014-04-08
|
48
232
|
|
49
233
|
* Improve tests and documentation. (Seiichi Yonezawa, Mike Gehard, Andrew
|
50
234
|
Deitrick, Matthew Nicholas Bradley, GoGo tanaka, Carlos Lazo, Shim Tw,
|
@@ -61,7 +245,7 @@
|
|
61
245
|
|
62
246
|
* Fix bug in request.accept? that might trigger a NoMethodError. (sbonami)
|
63
247
|
|
64
|
-
|
248
|
+
## 1.4.4 / 2013-10-21
|
65
249
|
|
66
250
|
* Allow setting layout to false specifically for a single rendering engine.
|
67
251
|
(Matt Wildig)
|
@@ -96,7 +280,7 @@
|
|
96
280
|
|
97
281
|
* Reduce file size of dev mode images for 404 and 500 pages. (Francis Go)
|
98
282
|
|
99
|
-
|
283
|
+
## 1.4.3 / 2013-06-07
|
100
284
|
|
101
285
|
* Running a Sinatra file directly or via `run!` it will now ignore an
|
102
286
|
empty $PORT env variable. (noxqsgit)
|
@@ -117,7 +301,7 @@
|
|
117
301
|
|
118
302
|
* Request#accept? now returns true instead of a truthy value. (Alan Harris)
|
119
303
|
|
120
|
-
|
304
|
+
## 1.4.2 / 2013-03-21
|
121
305
|
|
122
306
|
* Fix parsing error for case where both the pattern and the captured part
|
123
307
|
contain a dot. (Florian Hanke, Konstantin Haase)
|
@@ -126,11 +310,11 @@
|
|
126
310
|
|
127
311
|
* Improve documentation. (Patricio Mac Adden, Joe Bottigliero)
|
128
312
|
|
129
|
-
|
313
|
+
## 1.4.1 / 2013-03-15
|
130
314
|
|
131
315
|
* Make delegated methods available in config.ru (Konstantin Haase)
|
132
316
|
|
133
|
-
|
317
|
+
## 1.4.0 / 2013-03-15
|
134
318
|
|
135
319
|
* Add support for LINK and UNLINK requests. (Konstantin Haase)
|
136
320
|
|
@@ -164,9 +348,9 @@
|
|
164
348
|
halt in a before filter or route. (Konstantin Haase)
|
165
349
|
|
166
350
|
* Sinatra::Base.new now returns a Sinatra::Wrapper instance, exposing
|
167
|
-
|
168
|
-
It also implements a nice
|
169
|
-
routes`. (Konstantin Haase)
|
351
|
+
`#settings` and `#helpers`, yet going through the middleware stack on
|
352
|
+
`#call`. It also implements a nice `#inspect`, so it plays nice with
|
353
|
+
Rails' `rake routes`. (Konstantin Haase)
|
170
354
|
|
171
355
|
* In addition to WebRick, Thin and Mongrel, Sinatra will now automatically pick
|
172
356
|
up Puma, Trinidad, ControlTower or Net::HTTP::Server when installed. The
|
@@ -251,7 +435,7 @@
|
|
251
435
|
* Exceptions in `after` filter are now handled like any other exception.
|
252
436
|
(Nathan Esquenazi)
|
253
437
|
|
254
|
-
|
438
|
+
## 1.3.6 (backport release) / 2013-03-15
|
255
439
|
|
256
440
|
Backported from 1.4.0:
|
257
441
|
|
@@ -261,7 +445,7 @@ Backported from 1.4.0:
|
|
261
445
|
|
262
446
|
* No longer override `define_singleton_method`. (Konstantin Haase)
|
263
447
|
|
264
|
-
|
448
|
+
## 1.3.5 / 2013-02-25
|
265
449
|
|
266
450
|
* Fix for RubyGems 2.0 (Uchio KONDO)
|
267
451
|
|
@@ -269,7 +453,7 @@ Backported from 1.4.0:
|
|
269
453
|
|
270
454
|
* No longer override `define_singleton_method`. (Konstantin Haase)
|
271
455
|
|
272
|
-
|
456
|
+
## 1.3.4 / 2013-01-26
|
273
457
|
|
274
458
|
* Improve documentation. (Kashyap, Stanislav Chistenko, Konstantin Haase,
|
275
459
|
ymmtmsys, Anurag Priyam)
|
@@ -286,7 +470,7 @@ Backported from 1.4.0:
|
|
286
470
|
* Status, headers and body will be set correctly in an after filter when using
|
287
471
|
halt in a before filter or route. (Konstantin Haase)
|
288
472
|
|
289
|
-
|
473
|
+
## 1.3.3 / 2012-08-19
|
290
474
|
|
291
475
|
* Improved documentation. (burningTyger, Konstantin Haase, Gabriel Andretta,
|
292
476
|
Anurag Priyam, michelc)
|
@@ -313,7 +497,7 @@ Backported from 1.4.0:
|
|
313
497
|
* When protecting against CSRF attacks, drop the session instead of refusing
|
314
498
|
the request. (Konstantin Haase)
|
315
499
|
|
316
|
-
|
500
|
+
## 1.3.2 / 2011-12-30
|
317
501
|
|
318
502
|
* Don't automatically add `Rack::CommonLogger` if `Rack::Server` is adding it,
|
319
503
|
too. (Konstantin Haase)
|
@@ -340,7 +524,7 @@ Backported from 1.4.0:
|
|
340
524
|
|
341
525
|
* Improved MagLev support. (Tim Felgentreff)
|
342
526
|
|
343
|
-
|
527
|
+
## 1.3.1 / 2011-10-05
|
344
528
|
|
345
529
|
* Support adding more than one callback to the stream object. (Konstantin
|
346
530
|
Haase)
|
@@ -348,7 +532,7 @@ Backported from 1.4.0:
|
|
348
532
|
* Fix for infinite loop when streaming on 1.9.2 with Thin from a modular
|
349
533
|
application (Konstantin Haase)
|
350
534
|
|
351
|
-
|
535
|
+
## 1.3.0 / 2011-09-30
|
352
536
|
|
353
537
|
* Added `stream` helper method for easily creating streaming APIs, Server
|
354
538
|
Sent Events or even WebSockets. See README for more on that topic.
|
@@ -475,7 +659,7 @@ Backported from 1.4.0:
|
|
475
659
|
* Fix handling of broken query params when displaying exceptions. (Luke
|
476
660
|
Jahnke)
|
477
661
|
|
478
|
-
|
662
|
+
## 1.2.9 (backports release) / 2013-03-15
|
479
663
|
|
480
664
|
IMPORTANT: THIS IS THE LAST 1.2.x RELEASE, PLEASE UPGRADE.
|
481
665
|
|
@@ -489,14 +673,14 @@ IMPORTANT: THIS IS THE LAST 1.2.x RELEASE, PLEASE UPGRADE.
|
|
489
673
|
|
490
674
|
* Add backports library so we can still run on Ruby 1.8.6. (Konstantin Haase)
|
491
675
|
|
492
|
-
|
676
|
+
## 1.2.8 (backports release) / 2011-12-30
|
493
677
|
|
494
678
|
Backported from 1.3.2:
|
495
679
|
|
496
680
|
* Fix bug where rendering a second template in the same request after the
|
497
681
|
first one raised an exception skipped the default layout (Nathan Baum)
|
498
682
|
|
499
|
-
|
683
|
+
## 1.2.7 (backports release) / 2011-09-30
|
500
684
|
|
501
685
|
Custom changes:
|
502
686
|
|
@@ -529,16 +713,16 @@ Backported from 1.3.0:
|
|
529
713
|
* Fix handling of broken query params when displaying exceptions. (Luke
|
530
714
|
Jahnke)
|
531
715
|
|
532
|
-
|
716
|
+
## 1.2.6 / 2011-05-01
|
533
717
|
|
534
718
|
* Fix broken delegation, backport delegation tests from Sinatra 1.3.
|
535
719
|
(Konstantin Haase)
|
536
720
|
|
537
|
-
|
721
|
+
## 1.2.5 / 2011-04-30
|
538
722
|
|
539
723
|
* Restore compatibility with Ruby 1.8.6. (Konstantin Haase)
|
540
724
|
|
541
|
-
|
725
|
+
## 1.2.4 / 2011-04-30
|
542
726
|
|
543
727
|
* Sinatra::Application (classic style) does not use a session secret in
|
544
728
|
development mode, so sessions are not invalidated after every request when
|
@@ -546,9 +730,9 @@ Backported from 1.3.0:
|
|
546
730
|
|
547
731
|
* The request object was shared between multiple Sinatra instances in the
|
548
732
|
same middleware chain. This caused issues if any non-sinatra routing
|
549
|
-
|
733
|
+
happened in-between two of those instances, or running a request twice
|
550
734
|
against an application (described in the README). The caching was reverted.
|
551
|
-
See GH#239 and GH#256 for more infos. (Konstantin Haase)
|
735
|
+
See GH[#239](https://github.com/sinatra/sinatra/issues/239) and GH[#256](https://github.com/sinatra/sinatra/issues/256) for more infos. (Konstantin Haase)
|
552
736
|
|
553
737
|
* Fixes issues where the top level DSL was interfering with method_missing
|
554
738
|
proxies. This issue surfaced when Rails 3 was used with older Sass versions
|
@@ -562,7 +746,7 @@ Backported from 1.3.0:
|
|
562
746
|
* Remove HEAD request logic and let Rack::Head handle it instead. (Paolo
|
563
747
|
"Nusco" Perrotta)
|
564
748
|
|
565
|
-
|
749
|
+
## 1.2.3 / 2011-04-13
|
566
750
|
|
567
751
|
* This release is compatible with Tilt 1.3, it will still work with Tilt 1.2.2,
|
568
752
|
however, if you want to use a newer Tilt version, you have to upgrade to at
|
@@ -571,7 +755,7 @@ Backported from 1.3.0:
|
|
571
755
|
* Helpers dealing with time, like `expires`, handle objects that pretend to be
|
572
756
|
numbers, like `ActiveSupport::Duration`, better. (Konstantin Haase)
|
573
757
|
|
574
|
-
|
758
|
+
## 1.2.2 / 2011-04-08
|
575
759
|
|
576
760
|
* The `:provides => :js` condition now matches both `application/javascript`
|
577
761
|
and `text/javascript`. The `:provides => :xml` condition now matches both
|
@@ -599,7 +783,7 @@ Backported from 1.3.0:
|
|
599
783
|
* In development environment, when running under a nested path, the image URIs
|
600
784
|
on the error pages are set properly. (Konstantin Haase)
|
601
785
|
|
602
|
-
|
786
|
+
## 1.2.1 / 2011-03-17
|
603
787
|
|
604
788
|
* Use a generated session secret when using `enable :sessions`. (Konstantin
|
605
789
|
Haase)
|
@@ -612,7 +796,7 @@ Backported from 1.3.0:
|
|
612
796
|
* README translations improved (Gabriel Andretta, burningTyger, Sylvain Desvé,
|
613
797
|
Gregor Schmidt)
|
614
798
|
|
615
|
-
|
799
|
+
## 1.2.0 / 2011-03-03
|
616
800
|
|
617
801
|
* Added `slim` rendering method for rendering Slim templates. (Steve
|
618
802
|
Hodgkiss)
|
@@ -661,11 +845,11 @@ Backported from 1.3.0:
|
|
661
845
|
* Sinatra now ships with a Gemfile for development dependencies, since it eases
|
662
846
|
supporting different platforms, like JRuby. (Konstantin Haase)
|
663
847
|
|
664
|
-
|
848
|
+
## 1.1.4 (backports release) / 2011-04-13
|
665
849
|
|
666
850
|
* Compatible with Tilt 1.3. (Konstantin Haase)
|
667
851
|
|
668
|
-
|
852
|
+
## 1.1.3 / 2011-02-20
|
669
853
|
|
670
854
|
* Fixed issues with `user_agent` condition if the user agent header is missing.
|
671
855
|
(Konstantin Haase)
|
@@ -684,11 +868,11 @@ Backported from 1.3.0:
|
|
684
868
|
a rendering engine - it was not possible to register ".html.erb" without
|
685
869
|
tricks. (Konstantin Haase)
|
686
870
|
|
687
|
-
|
871
|
+
## 1.1.2 / 2010-10-25
|
688
872
|
|
689
873
|
Like 1.1.1, but with proper CHANGES file.
|
690
874
|
|
691
|
-
|
875
|
+
## 1.1.1 / 2010-10-25
|
692
876
|
|
693
877
|
* README has been translated to Russian (Nickolay Schwarz, Vasily Polovnyov)
|
694
878
|
and Portuguese (Luciano Sousa).
|
@@ -720,7 +904,7 @@ Like 1.1.1, but with proper CHANGES file.
|
|
720
904
|
honor default_encoding and URLs support unicode characters. (Konstantin
|
721
905
|
Haase)
|
722
906
|
|
723
|
-
|
907
|
+
## 1.1.0 / 2010-10-24
|
724
908
|
|
725
909
|
* Before and after filters now support pattern matching, including the
|
726
910
|
ability to use captures: "before('/user/:name') { |name| ... }". This
|
@@ -826,7 +1010,7 @@ Like 1.1.1, but with proper CHANGES file.
|
|
826
1010
|
* Sinatra now depends on Rack 1.1 or higher. Rack 1.0 is no longer supported.
|
827
1011
|
(Konstantin Haase)
|
828
1012
|
|
829
|
-
|
1013
|
+
## 1.0 / 2010-03-23
|
830
1014
|
|
831
1015
|
* It's now possible to register blocks to run after each request using
|
832
1016
|
after filters. After filters run at the end of each request, after
|
@@ -969,7 +1153,7 @@ the 1.0 release:
|
|
969
1153
|
* The `:methodoverride' option to enable/disable the POST _method hack is
|
970
1154
|
obsolete; use `:method_override` instead.
|
971
1155
|
|
972
|
-
|
1156
|
+
## 0.9.2 / 2009-05-18
|
973
1157
|
|
974
1158
|
* This version is compatible with Rack 1.0. [Rein Henrichs]
|
975
1159
|
|
@@ -1050,12 +1234,12 @@ the 1.0 release:
|
|
1050
1234
|
* Fix in-file templates __END__ detection when __END__ exists with
|
1051
1235
|
other stuff on a line [Yoji Shidara]
|
1052
1236
|
|
1053
|
-
|
1237
|
+
## 0.9.1.1 / 2009-03-09
|
1054
1238
|
|
1055
1239
|
* Fix directory traversal vulnerability in default static files
|
1056
1240
|
route. See [#177] for more info.
|
1057
1241
|
|
1058
|
-
|
1242
|
+
## 0.9.1 / 2009-03-01
|
1059
1243
|
|
1060
1244
|
* Sinatra now runs under Ruby 1.9.1 [#61]
|
1061
1245
|
|
@@ -1125,7 +1309,7 @@ the 1.0 release:
|
|
1125
1309
|
* Fixed that "." in route patterns erroneously matched any character
|
1126
1310
|
instead of a literal ".". [#124]
|
1127
1311
|
|
1128
|
-
|
1312
|
+
## 0.9.0.4 / 2009-01-25
|
1129
1313
|
|
1130
1314
|
* Using halt with more than 1 args causes ArgumentError [#131]
|
1131
1315
|
* using halt in a before filter doesn't modify response [#127]
|
@@ -1134,7 +1318,7 @@ the 1.0 release:
|
|
1134
1318
|
* Preserve non-nested params in nested params hash [#117]
|
1135
1319
|
* Fix backtrace dump with Rack::Lint [#116]
|
1136
1320
|
|
1137
|
-
|
1321
|
+
## 0.9.0.3 / 2009-01-21
|
1138
1322
|
|
1139
1323
|
* Fall back on mongrel then webrick when thin not found. [#75]
|
1140
1324
|
* Use :environment instead of :env in test helpers to
|
@@ -1143,12 +1327,12 @@ the 1.0 release:
|
|
1143
1327
|
* Fix app_file detection on windows [#118]
|
1144
1328
|
* Fix static files with Rack::Lint in pipeline [#121]
|
1145
1329
|
|
1146
|
-
|
1330
|
+
## 0.9.0.2 / 2009-01-18
|
1147
1331
|
|
1148
1332
|
* Halting a before block should stop processing of routes [#85]
|
1149
1333
|
* Fix redirect/halt in before filters [#85]
|
1150
1334
|
|
1151
|
-
|
1335
|
+
## 0.9.0 / 2009-01-18
|
1152
1336
|
|
1153
1337
|
* Works with and requires Rack >= 0.9.1
|
1154
1338
|
|
@@ -1241,7 +1425,7 @@ the 1.0 release:
|
|
1241
1425
|
subclass of Sinatra::Base; each request is processed within an
|
1242
1426
|
instance.
|
1243
1427
|
|
1244
|
-
|
1428
|
+
## 0.3.3 / 2009-01-06
|
1245
1429
|
|
1246
1430
|
* Pin to Rack 0.4.0 (this is the last release on Rack 0.4)
|
1247
1431
|
|
@@ -1254,12 +1438,12 @@ the 1.0 release:
|
|
1254
1438
|
* BUG: raising Sinatra::NotFound resulted in a 500 response
|
1255
1439
|
code instead of 404.
|
1256
1440
|
|
1257
|
-
* BUG: use_in_file_templates! fails with CR/LF
|
1441
|
+
* BUG: use_in_file_templates! fails with CR/LF [#45]
|
1258
1442
|
|
1259
1443
|
* BUG: Sinatra detects the app file and root path when run under
|
1260
1444
|
thin/passenger.
|
1261
1445
|
|
1262
|
-
|
1446
|
+
## 0.3.2
|
1263
1447
|
|
1264
1448
|
* BUG: Static and send_file read entire file into String before
|
1265
1449
|
sending. Updated to stream with 8K chunks instead.
|
@@ -1269,11 +1453,11 @@ the 1.0 release:
|
|
1269
1453
|
|
1270
1454
|
* Various minor doc fixes.
|
1271
1455
|
|
1272
|
-
|
1456
|
+
## 0.3.1
|
1273
1457
|
|
1274
1458
|
* Unbreak optional path parameters [jeremyevans]
|
1275
1459
|
|
1276
|
-
|
1460
|
+
## 0.3.0
|
1277
1461
|
|
1278
1462
|
* Add sinatra.gemspec w/ support for github gem builds. Forks can now
|
1279
1463
|
enable the build gem option in github to get free username-sinatra.gem
|
@@ -1330,10 +1514,10 @@ the 1.0 release:
|
|
1330
1514
|
|
1331
1515
|
* Fix for escaped paths not resolving static files [Matthew Walker]
|
1332
1516
|
|
1333
|
-
|
1517
|
+
## 0.2.1
|
1334
1518
|
|
1335
1519
|
* File upload fix and minor tweaks.
|
1336
1520
|
|
1337
|
-
|
1521
|
+
## 0.2.0
|
1338
1522
|
|
1339
1523
|
* Initial gem release of 0.2 codebase.
|
data/CONTRIBUTING.md
CHANGED
@@ -36,13 +36,7 @@ can be applied as quickly as possible:
|
|
36
36
|
modify the `README.md` file to reflect that. Again, if you don't
|
37
37
|
update the `README`, we have to, and this holds up acceptance.
|
38
38
|
|
39
|
-
4. **
|
40
|
-
overview of the changes that go into each release, and gives credit
|
41
|
-
where credit is due. We make sure that the change log is up to date
|
42
|
-
before each release, and we always appreciate it when people make
|
43
|
-
it easier to get the release out the door.
|
44
|
-
|
45
|
-
5. **Push it:** Once you're ready, push your changes to a topic branch
|
39
|
+
4. **Push it:** Once you're ready, push your changes to a topic branch
|
46
40
|
and add a note to the ticket with the URL to your branch. Or, say
|
47
41
|
something like, "you can find the patch on johndoe/foobranch". We also
|
48
42
|
gladly accept GitHub [pull requests](http://help.github.com/pull-requests/).
|
@@ -62,7 +56,7 @@ track patch requests.
|
|
62
56
|
is where the website sources are managed. There are almost always people in
|
63
57
|
`#sinatra` that are happy to discuss, apply, and publish website patches.
|
64
58
|
|
65
|
-
* [The Book](http://sinatra-book.
|
59
|
+
* [The Book](http://sinatra-org-book.herokuapp.com/) has its own [Git
|
66
60
|
repository](http://github.com/sinatra/sinatra-book/) and build process but is
|
67
61
|
managed the same as the website and project codebase.
|
68
62
|
|
@@ -98,3 +92,9 @@ fine).
|
|
98
92
|
|
99
93
|
[ghi]: http://github.com/sinatra/sinatra/issues
|
100
94
|
[ml]: http://groups.google.com/group/sinatrarb/topics "Sinatra Mailing List"
|
95
|
+
|
96
|
+
* ["Help Wanted"](https://github.com/sinatra/sinatra/labels/help%20wanted): Anyone willing to pitch in is open to contribute to this ticket as they see fit (will try to add context / summarize or ask for requirements)
|
97
|
+
|
98
|
+
* ["Good First Issue"](https://github.com/sinatra/sinatra/labels/good%20first%20issue): Potential first time contributors should start here
|
99
|
+
|
100
|
+
* ["Wishlist"](https://github.com/sinatra/sinatra/labels/Wishlist): All the things I wish we had but have no time for
|