sinatra 1.4.8 → 2.0.0.beta1

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.

Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +77 -47
  3. data/CONTRIBUTING.md +1 -1
  4. data/Gemfile +37 -49
  5. data/MAINTENANCE.md +42 -0
  6. data/README.de.md +5 -5
  7. data/README.es.md +5 -5
  8. data/README.fr.md +9 -9
  9. data/README.hu.md +3 -3
  10. data/README.ja.md +19 -8
  11. data/README.ko.md +8 -8
  12. data/README.md +90 -61
  13. data/README.pt-br.md +3 -3
  14. data/README.pt-pt.md +2 -2
  15. data/README.ru.md +42 -26
  16. data/README.zh.md +8 -8
  17. data/Rakefile +0 -6
  18. data/SECURITY.md +35 -0
  19. data/lib/sinatra/base.rb +113 -161
  20. data/lib/sinatra/main.rb +1 -0
  21. data/lib/sinatra/show_exceptions.rb +8 -8
  22. data/lib/sinatra/version.rb +1 -1
  23. data/sinatra.gemspec +7 -4
  24. metadata +34 -168
  25. data/lib/sinatra/ext.rb +0 -17
  26. data/test/asciidoctor_test.rb +0 -72
  27. data/test/base_test.rb +0 -167
  28. data/test/builder_test.rb +0 -91
  29. data/test/coffee_test.rb +0 -96
  30. data/test/compile_test.rb +0 -183
  31. data/test/contest.rb +0 -91
  32. data/test/creole_test.rb +0 -65
  33. data/test/delegator_test.rb +0 -160
  34. data/test/encoding_test.rb +0 -20
  35. data/test/erb_test.rb +0 -116
  36. data/test/extensions_test.rb +0 -98
  37. data/test/filter_test.rb +0 -487
  38. data/test/haml_test.rb +0 -109
  39. data/test/helper.rb +0 -132
  40. data/test/helpers_test.rb +0 -1917
  41. data/test/integration/app.rb +0 -79
  42. data/test/integration_helper.rb +0 -236
  43. data/test/integration_test.rb +0 -104
  44. data/test/less_test.rb +0 -69
  45. data/test/liquid_test.rb +0 -77
  46. data/test/mapped_error_test.rb +0 -285
  47. data/test/markaby_test.rb +0 -80
  48. data/test/markdown_test.rb +0 -85
  49. data/test/mediawiki_test.rb +0 -68
  50. data/test/middleware_test.rb +0 -68
  51. data/test/nokogiri_test.rb +0 -67
  52. data/test/public/favicon.ico +0 -0
  53. data/test/public/hello+world.txt +0 -1
  54. data/test/rabl_test.rb +0 -89
  55. data/test/rack_test.rb +0 -45
  56. data/test/radius_test.rb +0 -59
  57. data/test/rdoc_test.rb +0 -66
  58. data/test/readme_test.rb +0 -130
  59. data/test/request_test.rb +0 -100
  60. data/test/response_test.rb +0 -63
  61. data/test/result_test.rb +0 -76
  62. data/test/route_added_hook_test.rb +0 -59
  63. data/test/routing_test.rb +0 -1456
  64. data/test/sass_test.rb +0 -115
  65. data/test/scss_test.rb +0 -88
  66. data/test/server_test.rb +0 -56
  67. data/test/settings_test.rb +0 -582
  68. data/test/sinatra_test.rb +0 -12
  69. data/test/slim_test.rb +0 -102
  70. data/test/static_test.rb +0 -266
  71. data/test/streaming_test.rb +0 -149
  72. data/test/stylus_test.rb +0 -90
  73. data/test/templates_test.rb +0 -382
  74. data/test/textile_test.rb +0 -65
  75. data/test/views/a/in_a.str +0 -1
  76. data/test/views/ascii.erb +0 -2
  77. data/test/views/b/in_b.str +0 -1
  78. data/test/views/calc.html.erb +0 -1
  79. data/test/views/error.builder +0 -3
  80. data/test/views/error.erb +0 -3
  81. data/test/views/error.haml +0 -3
  82. data/test/views/error.sass +0 -2
  83. data/test/views/explicitly_nested.str +0 -1
  84. data/test/views/foo/hello.test +0 -1
  85. data/test/views/hello.asciidoc +0 -1
  86. data/test/views/hello.builder +0 -1
  87. data/test/views/hello.coffee +0 -1
  88. data/test/views/hello.creole +0 -1
  89. data/test/views/hello.erb +0 -1
  90. data/test/views/hello.haml +0 -1
  91. data/test/views/hello.less +0 -5
  92. data/test/views/hello.liquid +0 -1
  93. data/test/views/hello.mab +0 -1
  94. data/test/views/hello.md +0 -1
  95. data/test/views/hello.mediawiki +0 -1
  96. data/test/views/hello.nokogiri +0 -1
  97. data/test/views/hello.rabl +0 -2
  98. data/test/views/hello.radius +0 -1
  99. data/test/views/hello.rdoc +0 -1
  100. data/test/views/hello.sass +0 -2
  101. data/test/views/hello.scss +0 -3
  102. data/test/views/hello.slim +0 -1
  103. data/test/views/hello.str +0 -1
  104. data/test/views/hello.styl +0 -2
  105. data/test/views/hello.test +0 -1
  106. data/test/views/hello.textile +0 -1
  107. data/test/views/hello.wlang +0 -1
  108. data/test/views/hello.yajl +0 -1
  109. data/test/views/layout2.builder +0 -3
  110. data/test/views/layout2.erb +0 -2
  111. data/test/views/layout2.haml +0 -2
  112. data/test/views/layout2.liquid +0 -2
  113. data/test/views/layout2.mab +0 -2
  114. data/test/views/layout2.nokogiri +0 -3
  115. data/test/views/layout2.rabl +0 -3
  116. data/test/views/layout2.radius +0 -2
  117. data/test/views/layout2.slim +0 -3
  118. data/test/views/layout2.str +0 -2
  119. data/test/views/layout2.test +0 -1
  120. data/test/views/layout2.wlang +0 -2
  121. data/test/views/nested.str +0 -1
  122. data/test/views/utf8.erb +0 -2
  123. data/test/wlang_test.rb +0 -87
  124. data/test/yajl_test.rb +0 -86
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49eaa57b3d06c8eb819329b3c57cd6401c5da1c2
4
- data.tar.gz: d30fe1da78dade1d0b6c961feeef2dc1ef61e268
3
+ metadata.gz: 6f5689f763ce2840dc72a29cd2339a1775905529
4
+ data.tar.gz: 46b08ba7c86f6d3c5e1d1be2f53bfd883acd9f8e
5
5
  SHA512:
6
- metadata.gz: 961cb8068ba88aeb8c6a5d801512ddf5c22e71f293545d11fc8514794a1928acbdf8d3ad03d79c4b6281b3999c11bedcc61ea6a95157add919b8a620c57904e0
7
- data.tar.gz: 7a525a8d3fd006f267bd28cafad4aadd1c713acb8ab2c508ca2ceecb8bef3e6863fb9f70e68270027d3df1375dccb16e525ec382ce071c68fe997edd18eb53ba
6
+ metadata.gz: e77f515b4e66095fc41af209d3f61613606da2fb89de9b9c64faece3239e83d1c629f7d713bf8c2615774fca9e05b9f8b65c07b8b56d98ac6a8a9d1608f6a655
7
+ data.tar.gz: febf1888cf1c44d410dc625dc97e461c2be2faa8a5551be99c4afacc2294a79bedd6d05bf7236d1d39dbbc37305fbf5f05fb9e10189dc13254688c71829650a5
@@ -1,4 +1,34 @@
1
- = 1.4.7 / 2016-01-24
1
+ ## 2.0.0 / 2016-08-22
2
+
3
+ * Use Mustermann for patterns #1086 by Konstantin Haase
4
+
5
+ * Server now provides `-q` flag for quiet mode, which disables start/stop messages #1153 by Vasiliy.
6
+
7
+ * Session middleware can now be specified with `:session_store` setting #1161 by Jordan Owens.
8
+
9
+ * `APP_ENV` is now preferred and recommended over `RACK_ENV` for setting environment #984 by Damien Mathieu.
10
+
11
+ * Add Reel support #793 by Patricio Mac Adden.
12
+
13
+ * Make route params available during error handling #895 by Jeremy Evans.
14
+
15
+ * Unify `not_found` and `error` 404 behavior #896 by Jeremy Evans.
16
+
17
+ * Enable Ruby 2.3 `frozen_string_literal` feature #1076 by Vladimir Kochnev.
18
+
19
+ * Add Sinatra::ShowExceptions::TEMPLATE and patched Rack::ShowExceptions to prefer Sinatra template by Zachary Scott.
20
+
21
+ * Sinatra::Runner is used internally for integration tests #840 by Nick Sutterer.
22
+
23
+ * Fix case-sensitivity issue in `uri` method #889 by rennex.
24
+
25
+ * Use `Rack::Utils.status_code` to allow `status` helper to use symbol as well as numeric codes #968 by Tobias H. Michaelsen.
26
+
27
+ * Improved error handling for invalid params through Rack #1070 by Jordan Owens.
28
+
29
+ * Ensure template is cached only once #1021 by Patrik Rak.
30
+
31
+ ## 1.4.7 / 2016-01-24
2
32
 
3
33
  * Add Ashley Williams, Trevor Bramble, and Kashyap Kondamudi to team Sinatra.
4
34
 
@@ -14,7 +44,7 @@
14
44
  * Add CONTRIBUTING guide. #987 (Katrina Owen)
15
45
 
16
46
 
17
- = 1.4.6 / 2015-03-23
47
+ ## 1.4.6 / 2015-03-23
18
48
 
19
49
  * Improve tests and documentation. (Darío Hereñú, Seiichi Yonezawa, kyoendo,
20
50
  John Voloski, Ferenc-, Renaud Martinet, Christian Haase, marocchino,
@@ -44,7 +74,7 @@
44
74
  * Upgrade test suite to Minitest version 5 and fix Ruby 2.2 compatibility.
45
75
  (Vipul A M)
46
76
 
47
- = 1.4.5 / 2014-04-08
77
+ ## 1.4.5 / 2014-04-08
48
78
 
49
79
  * Improve tests and documentation. (Seiichi Yonezawa, Mike Gehard, Andrew
50
80
  Deitrick, Matthew Nicholas Bradley, GoGo tanaka, Carlos Lazo, Shim Tw,
@@ -61,7 +91,7 @@
61
91
 
62
92
  * Fix bug in request.accept? that might trigger a NoMethodError. (sbonami)
63
93
 
64
- = 1.4.4 / 2013-10-21
94
+ ## 1.4.4 / 2013-10-21
65
95
 
66
96
  * Allow setting layout to false specifically for a single rendering engine.
67
97
  (Matt Wildig)
@@ -96,7 +126,7 @@
96
126
 
97
127
  * Reduce file size of dev mode images for 404 and 500 pages. (Francis Go)
98
128
 
99
- = 1.4.3 / 2013-06-07
129
+ ## 1.4.3 / 2013-06-07
100
130
 
101
131
  * Running a Sinatra file directly or via `run!` it will now ignore an
102
132
  empty $PORT env variable. (noxqsgit)
@@ -117,7 +147,7 @@
117
147
 
118
148
  * Request#accept? now returns true instead of a truthy value. (Alan Harris)
119
149
 
120
- = 1.4.2 / 2013-03-21
150
+ ## 1.4.2 / 2013-03-21
121
151
 
122
152
  * Fix parsing error for case where both the pattern and the captured part
123
153
  contain a dot. (Florian Hanke, Konstantin Haase)
@@ -126,11 +156,11 @@
126
156
 
127
157
  * Improve documentation. (Patricio Mac Adden, Joe Bottigliero)
128
158
 
129
- = 1.4.1 / 2013-03-15
159
+ ## 1.4.1 / 2013-03-15
130
160
 
131
161
  * Make delegated methods available in config.ru (Konstantin Haase)
132
162
 
133
- = 1.4.0 / 2013-03-15
163
+ ## 1.4.0 / 2013-03-15
134
164
 
135
165
  * Add support for LINK and UNLINK requests. (Konstantin Haase)
136
166
 
@@ -164,9 +194,9 @@
164
194
  halt in a before filter or route. (Konstantin Haase)
165
195
 
166
196
  * Sinatra::Base.new now returns a Sinatra::Wrapper instance, exposing
167
- #settings and #helpers, yet going through the middleware stack on #call.
168
- It also implements a nice #inspect, so it plays nice with Rails' `rake
169
- routes`. (Konstantin Haase)
197
+ `#settings` and `#helpers`, yet going through the middleware stack on
198
+ `#call`. It also implements a nice `#inspect`, so it plays nice with
199
+ Rails' `rake routes`. (Konstantin Haase)
170
200
 
171
201
  * In addition to WebRick, Thin and Mongrel, Sinatra will now automatically pick
172
202
  up Puma, Trinidad, ControlTower or Net::HTTP::Server when installed. The
@@ -251,7 +281,7 @@
251
281
  * Exceptions in `after` filter are now handled like any other exception.
252
282
  (Nathan Esquenazi)
253
283
 
254
- = 1.3.6 (backport release) / 2013-03-15
284
+ ## 1.3.6 (backport release) / 2013-03-15
255
285
 
256
286
  Backported from 1.4.0:
257
287
 
@@ -261,7 +291,7 @@ Backported from 1.4.0:
261
291
 
262
292
  * No longer override `define_singleton_method`. (Konstantin Haase)
263
293
 
264
- = 1.3.5 / 2013-02-25
294
+ ## 1.3.5 / 2013-02-25
265
295
 
266
296
  * Fix for RubyGems 2.0 (Uchio KONDO)
267
297
 
@@ -269,7 +299,7 @@ Backported from 1.4.0:
269
299
 
270
300
  * No longer override `define_singleton_method`. (Konstantin Haase)
271
301
 
272
- = 1.3.4 / 2013-01-26
302
+ ## 1.3.4 / 2013-01-26
273
303
 
274
304
  * Improve documentation. (Kashyap, Stanislav Chistenko, Konstantin Haase,
275
305
  ymmtmsys, Anurag Priyam)
@@ -286,7 +316,7 @@ Backported from 1.4.0:
286
316
  * Status, headers and body will be set correctly in an after filter when using
287
317
  halt in a before filter or route. (Konstantin Haase)
288
318
 
289
- = 1.3.3 / 2012-08-19
319
+ ## 1.3.3 / 2012-08-19
290
320
 
291
321
  * Improved documentation. (burningTyger, Konstantin Haase, Gabriel Andretta,
292
322
  Anurag Priyam, michelc)
@@ -313,7 +343,7 @@ Backported from 1.4.0:
313
343
  * When protecting against CSRF attacks, drop the session instead of refusing
314
344
  the request. (Konstantin Haase)
315
345
 
316
- = 1.3.2 / 2011-12-30
346
+ ## 1.3.2 / 2011-12-30
317
347
 
318
348
  * Don't automatically add `Rack::CommonLogger` if `Rack::Server` is adding it,
319
349
  too. (Konstantin Haase)
@@ -340,7 +370,7 @@ Backported from 1.4.0:
340
370
 
341
371
  * Improved MagLev support. (Tim Felgentreff)
342
372
 
343
- = 1.3.1 / 2011-10-05
373
+ ## 1.3.1 / 2011-10-05
344
374
 
345
375
  * Support adding more than one callback to the stream object. (Konstantin
346
376
  Haase)
@@ -348,7 +378,7 @@ Backported from 1.4.0:
348
378
  * Fix for infinite loop when streaming on 1.9.2 with Thin from a modular
349
379
  application (Konstantin Haase)
350
380
 
351
- = 1.3.0 / 2011-09-30
381
+ ## 1.3.0 / 2011-09-30
352
382
 
353
383
  * Added `stream` helper method for easily creating streaming APIs, Server
354
384
  Sent Events or even WebSockets. See README for more on that topic.
@@ -475,7 +505,7 @@ Backported from 1.4.0:
475
505
  * Fix handling of broken query params when displaying exceptions. (Luke
476
506
  Jahnke)
477
507
 
478
- = 1.2.9 (backports release) / 2013-03-15
508
+ ## 1.2.9 (backports release) / 2013-03-15
479
509
 
480
510
  IMPORTANT: THIS IS THE LAST 1.2.x RELEASE, PLEASE UPGRADE.
481
511
 
@@ -489,14 +519,14 @@ IMPORTANT: THIS IS THE LAST 1.2.x RELEASE, PLEASE UPGRADE.
489
519
 
490
520
  * Add backports library so we can still run on Ruby 1.8.6. (Konstantin Haase)
491
521
 
492
- = 1.2.8 (backports release) / 2011-12-30
522
+ ## 1.2.8 (backports release) / 2011-12-30
493
523
 
494
524
  Backported from 1.3.2:
495
525
 
496
526
  * Fix bug where rendering a second template in the same request after the
497
527
  first one raised an exception skipped the default layout (Nathan Baum)
498
528
 
499
- = 1.2.7 (backports release) / 2011-09-30
529
+ ## 1.2.7 (backports release) / 2011-09-30
500
530
 
501
531
  Custom changes:
502
532
 
@@ -529,16 +559,16 @@ Backported from 1.3.0:
529
559
  * Fix handling of broken query params when displaying exceptions. (Luke
530
560
  Jahnke)
531
561
 
532
- = 1.2.6 / 2011-05-01
562
+ ## 1.2.6 / 2011-05-01
533
563
 
534
564
  * Fix broken delegation, backport delegation tests from Sinatra 1.3.
535
565
  (Konstantin Haase)
536
566
 
537
- = 1.2.5 / 2011-04-30
567
+ ## 1.2.5 / 2011-04-30
538
568
 
539
569
  * Restore compatibility with Ruby 1.8.6. (Konstantin Haase)
540
570
 
541
- = 1.2.4 / 2011-04-30
571
+ ## 1.2.4 / 2011-04-30
542
572
 
543
573
  * Sinatra::Application (classic style) does not use a session secret in
544
574
  development mode, so sessions are not invalidated after every request when
@@ -562,7 +592,7 @@ Backported from 1.3.0:
562
592
  * Remove HEAD request logic and let Rack::Head handle it instead. (Paolo
563
593
  "Nusco" Perrotta)
564
594
 
565
- = 1.2.3 / 2011-04-13
595
+ ## 1.2.3 / 2011-04-13
566
596
 
567
597
  * This release is compatible with Tilt 1.3, it will still work with Tilt 1.2.2,
568
598
  however, if you want to use a newer Tilt version, you have to upgrade to at
@@ -571,7 +601,7 @@ Backported from 1.3.0:
571
601
  * Helpers dealing with time, like `expires`, handle objects that pretend to be
572
602
  numbers, like `ActiveSupport::Duration`, better. (Konstantin Haase)
573
603
 
574
- = 1.2.2 / 2011-04-08
604
+ ## 1.2.2 / 2011-04-08
575
605
 
576
606
  * The `:provides => :js` condition now matches both `application/javascript`
577
607
  and `text/javascript`. The `:provides => :xml` condition now matches both
@@ -599,7 +629,7 @@ Backported from 1.3.0:
599
629
  * In development environment, when running under a nested path, the image URIs
600
630
  on the error pages are set properly. (Konstantin Haase)
601
631
 
602
- = 1.2.1 / 2011-03-17
632
+ ## 1.2.1 / 2011-03-17
603
633
 
604
634
  * Use a generated session secret when using `enable :sessions`. (Konstantin
605
635
  Haase)
@@ -612,7 +642,7 @@ Backported from 1.3.0:
612
642
  * README translations improved (Gabriel Andretta, burningTyger, Sylvain Desvé,
613
643
  Gregor Schmidt)
614
644
 
615
- = 1.2.0 / 2011-03-03
645
+ ## 1.2.0 / 2011-03-03
616
646
 
617
647
  * Added `slim` rendering method for rendering Slim templates. (Steve
618
648
  Hodgkiss)
@@ -661,11 +691,11 @@ Backported from 1.3.0:
661
691
  * Sinatra now ships with a Gemfile for development dependencies, since it eases
662
692
  supporting different platforms, like JRuby. (Konstantin Haase)
663
693
 
664
- = 1.1.4 (backports release) / 2011-04-13
694
+ ## 1.1.4 (backports release) / 2011-04-13
665
695
 
666
696
  * Compatible with Tilt 1.3. (Konstantin Haase)
667
697
 
668
- = 1.1.3 / 2011-02-20
698
+ ## 1.1.3 / 2011-02-20
669
699
 
670
700
  * Fixed issues with `user_agent` condition if the user agent header is missing.
671
701
  (Konstantin Haase)
@@ -684,11 +714,11 @@ Backported from 1.3.0:
684
714
  a rendering engine - it was not possible to register ".html.erb" without
685
715
  tricks. (Konstantin Haase)
686
716
 
687
- = 1.1.2 / 2010-10-25
717
+ ## 1.1.2 / 2010-10-25
688
718
 
689
719
  Like 1.1.1, but with proper CHANGES file.
690
720
 
691
- = 1.1.1 / 2010-10-25
721
+ ## 1.1.1 / 2010-10-25
692
722
 
693
723
  * README has been translated to Russian (Nickolay Schwarz, Vasily Polovnyov)
694
724
  and Portuguese (Luciano Sousa).
@@ -720,7 +750,7 @@ Like 1.1.1, but with proper CHANGES file.
720
750
  honor default_encoding and URLs support unicode characters. (Konstantin
721
751
  Haase)
722
752
 
723
- = 1.1.0 / 2010-10-24
753
+ ## 1.1.0 / 2010-10-24
724
754
 
725
755
  * Before and after filters now support pattern matching, including the
726
756
  ability to use captures: "before('/user/:name') { |name| ... }". This
@@ -826,7 +856,7 @@ Like 1.1.1, but with proper CHANGES file.
826
856
  * Sinatra now depends on Rack 1.1 or higher. Rack 1.0 is no longer supported.
827
857
  (Konstantin Haase)
828
858
 
829
- = 1.0 / 2010-03-23
859
+ ## 1.0 / 2010-03-23
830
860
 
831
861
  * It's now possible to register blocks to run after each request using
832
862
  after filters. After filters run at the end of each request, after
@@ -969,7 +999,7 @@ the 1.0 release:
969
999
  * The `:methodoverride' option to enable/disable the POST _method hack is
970
1000
  obsolete; use `:method_override` instead.
971
1001
 
972
- = 0.9.2 / 2009-05-18
1002
+ ## 0.9.2 / 2009-05-18
973
1003
 
974
1004
  * This version is compatible with Rack 1.0. [Rein Henrichs]
975
1005
 
@@ -1050,12 +1080,12 @@ the 1.0 release:
1050
1080
  * Fix in-file templates __END__ detection when __END__ exists with
1051
1081
  other stuff on a line [Yoji Shidara]
1052
1082
 
1053
- = 0.9.1.1 / 2009-03-09
1083
+ ## 0.9.1.1 / 2009-03-09
1054
1084
 
1055
1085
  * Fix directory traversal vulnerability in default static files
1056
1086
  route. See [#177] for more info.
1057
1087
 
1058
- = 0.9.1 / 2009-03-01
1088
+ ## 0.9.1 / 2009-03-01
1059
1089
 
1060
1090
  * Sinatra now runs under Ruby 1.9.1 [#61]
1061
1091
 
@@ -1125,7 +1155,7 @@ the 1.0 release:
1125
1155
  * Fixed that "." in route patterns erroneously matched any character
1126
1156
  instead of a literal ".". [#124]
1127
1157
 
1128
- = 0.9.0.4 / 2009-01-25
1158
+ ## 0.9.0.4 / 2009-01-25
1129
1159
 
1130
1160
  * Using halt with more than 1 args causes ArgumentError [#131]
1131
1161
  * using halt in a before filter doesn't modify response [#127]
@@ -1134,7 +1164,7 @@ the 1.0 release:
1134
1164
  * Preserve non-nested params in nested params hash [#117]
1135
1165
  * Fix backtrace dump with Rack::Lint [#116]
1136
1166
 
1137
- = 0.9.0.3 / 2009-01-21
1167
+ ## 0.9.0.3 / 2009-01-21
1138
1168
 
1139
1169
  * Fall back on mongrel then webrick when thin not found. [#75]
1140
1170
  * Use :environment instead of :env in test helpers to
@@ -1143,12 +1173,12 @@ the 1.0 release:
1143
1173
  * Fix app_file detection on windows [#118]
1144
1174
  * Fix static files with Rack::Lint in pipeline [#121]
1145
1175
 
1146
- = 0.9.0.2 / 2009-01-18
1176
+ ## 0.9.0.2 / 2009-01-18
1147
1177
 
1148
1178
  * Halting a before block should stop processing of routes [#85]
1149
1179
  * Fix redirect/halt in before filters [#85]
1150
1180
 
1151
- = 0.9.0 / 2009-01-18
1181
+ ## 0.9.0 / 2009-01-18
1152
1182
 
1153
1183
  * Works with and requires Rack >= 0.9.1
1154
1184
 
@@ -1241,7 +1271,7 @@ the 1.0 release:
1241
1271
  subclass of Sinatra::Base; each request is processed within an
1242
1272
  instance.
1243
1273
 
1244
- = 0.3.3 / 2009-01-06
1274
+ ## 0.3.3 / 2009-01-06
1245
1275
 
1246
1276
  * Pin to Rack 0.4.0 (this is the last release on Rack 0.4)
1247
1277
 
@@ -1259,7 +1289,7 @@ the 1.0 release:
1259
1289
  * BUG: Sinatra detects the app file and root path when run under
1260
1290
  thin/passenger.
1261
1291
 
1262
- = 0.3.2
1292
+ ## 0.3.2
1263
1293
 
1264
1294
  * BUG: Static and send_file read entire file into String before
1265
1295
  sending. Updated to stream with 8K chunks instead.
@@ -1269,11 +1299,11 @@ the 1.0 release:
1269
1299
 
1270
1300
  * Various minor doc fixes.
1271
1301
 
1272
- = 0.3.1
1302
+ ## 0.3.1
1273
1303
 
1274
1304
  * Unbreak optional path parameters [jeremyevans]
1275
1305
 
1276
- = 0.3.0
1306
+ ## 0.3.0
1277
1307
 
1278
1308
  * Add sinatra.gemspec w/ support for github gem builds. Forks can now
1279
1309
  enable the build gem option in github to get free username-sinatra.gem
@@ -1330,10 +1360,10 @@ the 1.0 release:
1330
1360
 
1331
1361
  * Fix for escaped paths not resolving static files [Matthew Walker]
1332
1362
 
1333
- = 0.2.1
1363
+ ## 0.2.1
1334
1364
 
1335
1365
  * File upload fix and minor tweaks.
1336
1366
 
1337
- = 0.2.0
1367
+ ## 0.2.0
1338
1368
 
1339
1369
  * Initial gem release of 0.2 codebase.
@@ -62,7 +62,7 @@ track patch requests.
62
62
  is where the website sources are managed. There are almost always people in
63
63
  `#sinatra` that are happy to discuss, apply, and publish website patches.
64
64
 
65
- * [The Book](http://sinatra-book.gittr.com/) has its own [Git
65
+ * [The Book](http://sinatra-org-book.herokuapp.com/) has its own [Git
66
66
  repository](http://github.com/sinatra/sinatra-book/) and build process but is
67
67
  managed the same as the website and project codebase.
68
68
 
data/Gemfile CHANGED
@@ -10,62 +10,50 @@ RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE
10
10
  source 'https://rubygems.org' unless ENV['QUICK']
11
11
  gemspec
12
12
 
13
- gem 'rake', '~> 10.0'
13
+ gem 'rake'
14
+ gem 'rack', github: 'rack/rack'
14
15
  gem 'rack-test', '>= 0.6.2'
15
16
  gem "minitest", "~> 5.0"
16
17
 
18
+ gem "rack-protection", path: "rack-protection"
19
+ gem "sinatra-contrib", path: "sinatra-contrib"
20
+
17
21
  if RUBY_ENGINE == 'jruby'
18
22
  gem 'nokogiri', '!= 1.5.0'
19
- gem 'jruby-openssl'
20
23
  gem 'trinidad'
21
24
  end
22
25
 
23
- if RUBY_VERSION < '1.9.3'
24
- gem 'activesupport', '~> 3.2'
25
- gem 'i18n', '~> 0.6.0'
26
- else
27
- gem 'activesupport', '~> 4.2'
28
- end
29
-
30
26
  if RUBY_ENGINE == "ruby"
31
- if RUBY_VERSION > '1.9.2'
32
- gem 'less', '~> 2.0'
33
- gem 'therubyracer'
34
- gem 'redcarpet'
35
- gem 'wlang', '>= 2.0.1'
36
- gem 'bluecloth'
37
- gem 'rdiscount'
38
- gem 'RedCloth'
39
- gem 'puma'
40
- gem 'net-http-server'
41
- gem 'yajl-ruby'
42
- gem 'thin'
43
- gem 'slim', '~> 2.0'
44
- gem 'coffee-script', '>= 2.0'
45
- gem 'rdoc'
46
- gem 'kramdown'
47
- gem 'maruku'
48
- gem 'creole'
49
- gem 'wikicloth'
50
- gem 'markaby'
51
- gem 'radius'
52
- gem 'asciidoctor'
53
- gem 'liquid', '~> 3.0'
54
- gem 'stylus'
55
- gem 'rabl'
56
- gem 'builder'
57
- gem 'erubis'
58
- gem 'haml', '>= 3.0'
59
- gem 'sass'
60
-
61
- if RUBY_VERSION < '2.1.0'
62
- gem 'nokogiri', '~> 1.6.8'
63
- else
64
- gem 'nokogiri', '~> 1.7.0'
65
- end
66
- else
67
- gem 'nokogiri', '~> 1.5.11'
68
- end
27
+ gem 'less', '~> 2.0'
28
+ gem 'mini_racer'
29
+ gem 'redcarpet'
30
+ gem 'wlang', '>= 2.0.1'
31
+ gem 'bluecloth'
32
+ gem 'rdiscount'
33
+ gem 'RedCloth'
34
+ gem 'puma'
35
+ gem 'yajl-ruby'
36
+ gem 'nokogiri'
37
+ gem 'thin'
38
+ gem 'slim', '~> 2.0'
39
+ gem 'coffee-script', '>= 2.0'
40
+ gem 'rdoc'
41
+ gem 'kramdown'
42
+ gem 'maruku'
43
+ gem 'creole'
44
+ gem 'wikicloth'
45
+ gem 'markaby'
46
+ gem 'radius'
47
+ gem 'asciidoctor'
48
+ gem 'liquid'
49
+ gem 'stylus'
50
+ gem 'rabl'
51
+ gem 'builder'
52
+ gem 'erubis'
53
+ gem 'haml', '>= 3.0'
54
+ gem 'sass'
55
+ gem 'reel-rack'
56
+ gem 'celluloid', '~> 0.16.0'
69
57
  end
70
58
 
71
59
  if RUBY_ENGINE == "rbx"
@@ -74,6 +62,6 @@ if RUBY_ENGINE == "rbx"
74
62
  gem 'rubysl-test-unit'
75
63
  end
76
64
 
77
- platforms :ruby_18, :jruby do
78
- gem 'json', '~> 1.8' unless RUBY_VERSION > '1.9' # is there a jruby but 1.8 only selector?
65
+ platforms :jruby do
66
+ gem 'json'
79
67
  end