sinatra 2.0.0 → 2.0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of sinatra might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fcc61f758e37e82a6ba459dd28ac0427d1e293aa
4
- data.tar.gz: 89da52018e78be121896892c8f1bd2786048c191
2
+ SHA256:
3
+ metadata.gz: d0a9fb798a1b2f906d9b84c950dd0095bbe7fa043468ffcc6b5a48f0320d14a1
4
+ data.tar.gz: 9e05cfa93c2426526551ad0149562132157a7a01e6ebacc1f153f5d75bd4ea0b
5
5
  SHA512:
6
- metadata.gz: eedfb95c98ca07e7522e60437f6e7a373b569124bf513a456f9ffc679af95b58e1c0368d08ea76085ae7ea9315947dcf956ba4d07c752ad111533a24a65d7b9e
7
- data.tar.gz: 298a3ccc3bc242b195c8788efc65e94f45274634f5e04cc7f679fd407fa9c0cff2844de338d08369f8e11452da84293a9fe12c4fdbe898c5eeeef6258cbf725a
6
+ metadata.gz: c2d1a38d64c63b2b5de785bc301843a1ce8a84daa752beceea399d3d936d3fdc3ed2e65d642c9f7ad736a3b67d5b66ae4b60078ab5a24841a67d6ccd9fe68d62
7
+ data.tar.gz: a8382fe4d07c482efa87001d9b4de97dffbf48eb69ded2d177e202cae852898ddf394095bc108f170f789ba2e47b8a45900191efcb8aa81b6e9df5289cf682e4
data/AUTHORS.md CHANGED
@@ -7,6 +7,7 @@ Sinatra was designed and developed by Blake Mizerany in California.
7
7
  * **Kashyap Kondamudi**
8
8
  * **Ashley Williams**
9
9
  * **Trevor Bramble**
10
+ * **Kunpei Sakai**
10
11
 
11
12
  ### Alumni
12
13
 
data/CHANGELOG.md CHANGED
@@ -1,66 +1,186 @@
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
+
1
117
  ## 2.0.0 / 2017-04-10
2
118
 
3
- * Use Mustermann for patterns #1086 by Konstantin Haase
119
+ * Use Mustermann for patterns [#1086](https://github.com/sinatra/sinatra/issues/1086) by Konstantin Haase
4
120
 
5
- * Server now provides `-q` flag for quiet mode, which disables start/stop messages #1153 by Vasiliy.
121
+ * Server now provides `-q` flag for quiet mode, which disables start/stop messages [#1153](https://github.com/sinatra/sinatra/issues/1153) by Vasiliy.
6
122
 
7
- * Session middleware can now be specified with `:session_store` setting #1161 by Jordan Owens.
123
+ * Session middleware can now be specified with `:session_store` setting [#1161](https://github.com/sinatra/sinatra/issues/1161) by Jordan Owens.
8
124
 
9
- * `APP_ENV` is now preferred and recommended over `RACK_ENV` for setting environment #984 by Damien Mathieu.
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.
10
126
 
11
- * Add Reel support #793 by Patricio Mac Adden.
127
+ * Add Reel support [#793](https://github.com/sinatra/sinatra/issues/793) by Patricio Mac Adden.
12
128
 
13
- * Make route params available during error handling #895 by Jeremy Evans.
129
+ * Make route params available during error handling [#895](https://github.com/sinatra/sinatra/issues/895) by Jeremy Evans.
14
130
 
15
- * Unify `not_found` and `error` 404 behavior #896 by Jeremy Evans.
131
+ * Unify `not_found` and `error` 404 behavior [#896](https://github.com/sinatra/sinatra/issues/896) by Jeremy Evans.
16
132
 
17
- * Enable Ruby 2.3 `frozen_string_literal` feature #1076 by Vladimir Kochnev.
133
+ * Enable Ruby 2.3 `frozen_string_literal` feature [#1076](https://github.com/sinatra/sinatra/issues/1076) by Vladimir Kochnev.
18
134
 
19
135
  * Add Sinatra::ShowExceptions::TEMPLATE and patched Rack::ShowExceptions to prefer Sinatra template by Zachary Scott.
20
136
 
21
- * Sinatra::Runner is used internally for integration tests #840 by Nick Sutterer.
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.
22
142
 
23
- * Fix case-sensitivity issue in `uri` method #889 by rennex.
143
+ * Improved error handling for invalid params through Rack [#1070](https://github.com/sinatra/sinatra/issues/1070) by Jordan Owens.
24
144
 
25
- * Use `Rack::Utils.status_code` to allow `status` helper to use symbol as well as numeric codes #968 by Tobias H. Michaelsen.
145
+ * Ensure template is cached only once [#1021](https://github.com/sinatra/sinatra/issues/1021) by Patrik Rak.
26
146
 
27
- * Improved error handling for invalid params through Rack #1070 by Jordan Owens.
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.
28
148
 
29
- * Ensure template is cached only once #1021 by Patrik Rak.
149
+ * Improve Session Secret documentation to encourage better security practices [#1218](https://github.com/sinatra/sinatra/issues/1218) by Glenn Rempe
30
150
 
31
- * Rack middleware is initialized at server runtime rather than after receiving first request #1205 by Itamar Turner-Trauring.
151
+ * Exposed global and per-route options for Mustermann route parsing [#1233](https://github.com/sinatra/sinatra/issues/1233) by Mike Pastore
32
152
 
33
- * Improve Session Secret documentation to encourage better security practices #1218 by Glenn Rempe
153
+ * Use same `session_secret` for classic and modular apps in development [#1245](https://github.com/sinatra/sinatra/issues/1245) by Marcus Stollsteimer
34
154
 
35
- * Exposed global and per-route options for Mustermann route parsing #1233 by Mike Pastore
155
+ * Make authenticity token length a fixed value of 32 [#1181](https://github.com/sinatra/sinatra/issues/1181) by Jordan Owens
36
156
 
37
- * Use same `session_secret` for classic and modular apps in development #1245 by Marcus Stollsteimer
157
+ * Modernize Rack::Protection::ContentSecurityPolicy with CSP Level 2 and 3 Directives [#1202](https://github.com/sinatra/sinatra/issues/1202) by Glenn Rempe
38
158
 
39
- * Make authenticity token length a fixed value of 32 #1181 by Jordan Owens
159
+ * Adds preload option to Rack:Protection:StrictTransport [#1209](https://github.com/sinatra/sinatra/issues/1209) by Ed Robinson
40
160
 
41
- * Modernize Rack::Protection::ContentSecurityPolicy with CSP Level 2 and 3 Directives #1202 by Glenn Rempe
161
+ * Improve BadRequest logic. Raise and handle exceptions if status is 400 [#1212](https://github.com/sinatra/sinatra/issues/1212) by Mike Pastore
42
162
 
43
- * Adds preload option to Rack:Protection:StrictTransport #1209 by Ed Robinson
163
+ * Make Rack::Test a development dependency [#1232](https://github.com/sinatra/sinatra/issues/1232) by Mike Pastore
44
164
 
45
- * Improve BadRequest logic. Raise and handle exceptions if status is 400 #1212 by Mike Pastore
165
+ * Capture exception messages of raised NotFound and BadRequest [#1210](https://github.com/sinatra/sinatra/issues/1210) by Mike Pastore
46
166
 
47
- * Make Rack::Test a development dependency #1232 by Mike Pastore
167
+ * Add explicit set method to contrib/cookies to override cookie settings [#1240](https://github.com/sinatra/sinatra/issues/1240) by Andrew Allen
48
168
 
49
- * Capture exception messages of raised NotFound and BadRequest #1210 by Mike Pastore
169
+ * Avoid executing filters even if prefix matches with other namespace [#1253](https://github.com/sinatra/sinatra/issues/1253) by namusyaka
50
170
 
51
- * Add explicit set method to contrib/cookies to override cookie settings #1240 by Andrew Allen
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
52
172
 
53
- * Avoid executing filters even if prefix matches with other namespace #1253 by namusyaka
173
+ * Add `allow_if` option to bypass json csrf protection [#1265](https://github.com/sinatra/sinatra/issues/1265) by Jordan Owens
54
174
 
55
- * Make `#has_key?` also indifferent in access, can accept String or Symbol #1262 by John Hope
175
+ * rack-protection: Bundle StrictTransport, CookieTossing, and CSP [#1267](https://github.com/sinatra/sinatra/issues/1267) by Mike Pastore
56
176
 
57
- * Add `allow_if` option to bypass json csrf protection #1265 by Jordan Owens
177
+ * Add `:strict_paths` option for managing trailing slashes [#1273](https://github.com/sinatra/sinatra/issues/1273) by namusyaka
58
178
 
59
- * rack-protection: Bundle StrictTransport, CookieTossing, and CSP #1267 by Mike Pastore
179
+ * Add full IndifferentHash implementation to params [#1279](https://github.com/sinatra/sinatra/issues/1279) by Mike Pastore
60
180
 
61
- * Add `:strict_paths` option for managing trailing slashes #1273 by namusyaka
181
+ ## 1.4.8 / 2017-01-30
62
182
 
63
- * Add full IndifferentHash implementation to params #1279 by Mike Pastore
183
+ * Fix the deprecation warning from Ruby about Fixnum. [#1235](https://github.com/sinatra/sinatra/issues/1235) by Akira Matsuda
64
184
 
65
185
  ## 1.4.7 / 2016-01-24
66
186
 
@@ -68,14 +188,14 @@
68
188
 
69
189
  * Correctly handle encoded colons in routes. (Jeremy Evans)
70
190
 
71
- * 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)
72
192
 
73
- * 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)
74
194
 
75
195
  * Introduce `Sinatra::Ext` to workaround Rack 1.6 bug to fix Ruby 1.8.7
76
- support. #1080 (Zachary Scott)
196
+ support. [#1080](https://github.com/sinatra/sinatra/issues/1080) (Zachary Scott)
77
197
 
78
- * Add CONTRIBUTING guide. #987 (Katrina Owen)
198
+ * Add CONTRIBUTING guide. [#987](https://github.com/sinatra/sinatra/issues/987) (Katrina Owen)
79
199
 
80
200
 
81
201
  ## 1.4.6 / 2015-03-23
@@ -610,9 +730,9 @@ Backported from 1.3.0:
610
730
 
611
731
  * The request object was shared between multiple Sinatra instances in the
612
732
  same middleware chain. This caused issues if any non-sinatra routing
613
- happend in-between two of those instances, or running a request twice
733
+ happened in-between two of those instances, or running a request twice
614
734
  against an application (described in the README). The caching was reverted.
615
- 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)
616
736
 
617
737
  * Fixes issues where the top level DSL was interfering with method_missing
618
738
  proxies. This issue surfaced when Rails 3 was used with older Sass versions
@@ -1318,7 +1438,7 @@ the 1.0 release:
1318
1438
  * BUG: raising Sinatra::NotFound resulted in a 500 response
1319
1439
  code instead of 404.
1320
1440
 
1321
- * BUG: use_in_file_templates! fails with CR/LF (#45)
1441
+ * BUG: use_in_file_templates! fails with CR/LF [#45]
1322
1442
 
1323
1443
  * BUG: Sinatra detects the app file and root path when run under
1324
1444
  thin/passenger.
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. **Update the change log (`CHANGELOG.md`):** The change log helps give an
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/).
@@ -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
data/Gemfile CHANGED
@@ -19,16 +19,20 @@ gem 'yard'
19
19
  gem "rack-protection", path: "rack-protection"
20
20
  gem "sinatra-contrib", path: "sinatra-contrib"
21
21
 
22
- gem "twitter-text", "1.14.0"
22
+ gem "twitter-text", "1.14.7"
23
23
 
24
24
  if RUBY_ENGINE == 'jruby'
25
25
  gem 'nokogiri', '!= 1.5.0'
26
26
  gem 'trinidad'
27
27
  end
28
28
 
29
+ if RUBY_ENGINE == 'jruby' || RUBY_ENGINE == 'ruby'
30
+ gem "activesupport", "~> 5.1.6"
31
+ end
32
+
29
33
  if RUBY_ENGINE == "ruby"
30
34
  gem 'less', '~> 2.0'
31
- gem 'mini_racer'
35
+ gem 'therubyracer'
32
36
  gem 'redcarpet'
33
37
  gem 'wlang', '>= 2.0.1'
34
38
  gem 'bluecloth'
@@ -52,11 +56,14 @@ if RUBY_ENGINE == "ruby"
52
56
  gem 'stylus'
53
57
  gem 'rabl'
54
58
  gem 'builder'
59
+ gem 'erubi'
55
60
  gem 'erubis'
56
61
  gem 'haml', '>= 3.0'
57
62
  gem 'sass'
58
63
  gem 'reel-rack'
59
64
  gem 'celluloid', '~> 0.16.0'
65
+ gem 'commonmarker', '~> 0.20.0'
66
+ gem 'pandoc-ruby', '~> 2.0.2'
60
67
  gem 'simplecov', require: false
61
68
  end
62
69
 
@@ -64,6 +71,7 @@ if RUBY_ENGINE == "rbx"
64
71
  gem 'json'
65
72
  gem 'rubysl'
66
73
  gem 'rubysl-test-unit'
74
+ gem 'erubi'
67
75
  end
68
76
 
69
77
  platforms :jruby do
data/README.de.md CHANGED
@@ -357,13 +357,13 @@ auch andere Werte akzeptiert.
357
357
  Es kann jedes gültige Objekt zurückgegeben werden, bei dem es sich entweder um
358
358
  einen Rack-Rückgabewert, einen Rack-Body oder einen HTTP-Status-Code handelt:
359
359
 
360
- * Ein Array mit drei Elementen: `[Status (Fixnum), Headers (Hash),
360
+ * Ein Array mit drei Elementen: `[Status (Integer), Headers (Hash),
361
361
  Response-Body (antwortet auf #each)]`.
362
- * Ein Array mit zwei Elementen: `[Status (Fixnum), Response-Body (antwortet
362
+ * Ein Array mit zwei Elementen: `[Status (Integer), Response-Body (antwortet
363
363
  auf #each)]`.
364
364
  * Ein Objekt, das auf `#each` antwortet und den an diese Methode übergebenen
365
365
  Block nur mit Strings als Übergabewerte aufruft.
366
- * Ein Fixnum, das den Status-Code festlegt.
366
+ * Ein Integer, das den Status-Code festlegt.
367
367
 
368
368
  Damit lässt sich relativ einfach Streaming implementieren:
369
369
 
@@ -728,7 +728,7 @@ Nimmt ebenso einen Block für Inline-Templates entgegen (siehe Beispiel).
728
728
  <table>
729
729
  <tr>
730
730
  <td>Abhängigkeit</td>
731
- <td><a href="http://liquidmarkup.org/">liquid</a></td>
731
+ <td><a href="https://shopify.github.io/liquid/">liquid</a></td>
732
732
  </tr>
733
733
  <tr>
734
734
  <td>Dateierweiterung</td>
@@ -752,7 +752,7 @@ denen man Variablen weitergibt.
752
752
  <td>Eine der folgenden Bibliotheken:
753
753
  <a href="https://github.com/davidfstr/rdiscount" title="RDiscount">RDiscount</a>,
754
754
  <a href="https://github.com/vmg/redcarpet" title="RedCarpet">RedCarpet</a>,
755
- <a href="http://deveiate.org/projects/BlueCloth" title="BlueCloth">BlueCloth</a>,
755
+ <a href="https://github.com/ged/bluecloth" title="bluecloth">BlueCloth</a>,
756
756
  <a href="http://kramdown.gettalong.org/" title="kramdown">kramdown</a> oder
757
757
  <a href="https://github.com/bhollis/maruku" title="maruku">maruku</a>
758
758
  </td>
@@ -2236,7 +2236,7 @@ end
2236
2236
  #### Einstellung des Angriffsschutzes
2237
2237
 
2238
2238
  Sinatra verwendet
2239
- [Rack::Protection](https://github.com/sinatra/rack-protection#readme), um die
2239
+ [Rack::Protection](https://github.com/sinatra/sinatra/tree/master/rack-protection#readme), um die
2240
2240
  Anwendung vor häufig vorkommenden Angriffen zu schützen. Diese Voreinstellung
2241
2241
  lässt sich selbstverständlich deaktivieren, der damit verbundene
2242
2242
  Geschwindigkeitszuwachs steht aber in keinem Verhätnis zu den möglichen