sinatra 2.2.2 → 3.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6b8730578692f8db32fb574c1cf27c820afae370f0de28de6e3b96523130fd8
4
- data.tar.gz: 22a5f5e701f27316173b91346823e0b82219627fb01008477434ca2a41a1bf5d
3
+ metadata.gz: 3951384ec9f9b0b48f46431b308f99d4f041181f6a5a946e18879905977b2d96
4
+ data.tar.gz: fce5e68c20aa619bdaadc88976bd6898be0252e7a62f4aa45f2eca3e3958b8a2
5
5
  SHA512:
6
- metadata.gz: 436f31687f5d18ca518e55c30ce2223dd585bd2366ed03236bbf3f90a1047ed4cac669755a13e10c83f6554fc07c8dcb48492b831df722c26f0015cce0499f30
7
- data.tar.gz: d535d71adf2d75f9f2d1e29f3bd9b4cc6e60f34e77f9a38d9b65e8494b5fe372c77142ddd161730388966c557b9e89b21eb5a0c9300e3761ff00e528c0ac3cb9
6
+ metadata.gz: 3ad27c41c217cf1ff3e51b9c17cc9a6583869e1a870206aedc6b9be7003282ac3dc9b22d86725b3af8b0b431d069573059ab9ef9b53bc1dd5ed101c0db5c14d8
7
+ data.tar.gz: fd0f1c35f005b3a70f43022f0fa95239147225bc9f7ca1a978cdf6f5c7fe13257004a5a2f1f7b36f141b80e2fd9156a81d97f613a994e2024e83c0db9cb0a4b1
data/CHANGELOG.md CHANGED
@@ -1,35 +1,73 @@
1
+ ## 3.0.0 / Unreleased
2
+
3
+ * New: Add Falcon support. [#1794](https://github.com/sinatra/sinatra/pull/1794) by Samuel Williams and @horaciob
4
+
5
+ * New: Add AES GCM encryption support for session cookies. [#1324] (https://github.com/sinatra/sinatra/pull/1324) by Michael Coyne
6
+
7
+ * Deprecated: Sinatra Reloader will be removed in the next major release.
8
+
9
+ * Fix: Internal Sinatra errors now extend `Sinatra::Error`. This fixes [#1204](https://github.com/sinatra/sinatra/issues/1204) and [#1518](https://github.com/sinatra/sinatra/issues/1518). [bda8c29d](https://github.com/sinatra/sinatra/commit/bda8c29d70619d53f5b1c181140638d340695514) by Jordan Owens
10
+
11
+ * Fix: Preserve query param value if named route param nil. [#1676](https://github.com/sinatra/sinatra/pull/1676) by Jordan Owens
12
+
13
+ * Require Ruby 2.6 as minimum Ruby version. [#1699](https://github.com/sinatra/sinatra/pull/1699) by Eloy Pérez
14
+
15
+ * Breaking change: Remove support for the Stylus template engine. [#1697](https://github.com/sinatra/sinatra/pull/1697) by Eloy Pérez
16
+
17
+ * Breaking change: Remove support for the erubis template engine. [#1761](https://github.com/sinatra/sinatra/pull/1761) by Eloy Pérez
18
+
19
+ * Breaking change: Remove support for the textile template engine. [#1766](https://github.com/sinatra/sinatra/pull/1766) by Eloy Pérez
20
+
21
+ * Breaking change: Remove support for SASS as a template engine. [#1768](https://github.com/sinatra/sinatra/pull/1768) by Eloy Pérez
22
+
23
+ * Breaking change: Remove support for Wlang as a template engine. [#1780](https://github.com/sinatra/sinatra/pull/1780) by Eloy Pérez
24
+
25
+ * Breaking change: Remove support for CoffeeScript as a template engine. [#1790](https://github.com/sinatra/sinatra/pull/1790) by Eloy Pérez
26
+
27
+ * Breaking change: Remove support for Mediawiki as a template engine. [#1791](https://github.com/sinatra/sinatra/pull/1791) by Eloy Pérez
28
+
29
+ * Breaking change: Remove support for Creole as a template engine. [#1792](https://github.com/sinatra/sinatra/pull/1792) by Eloy Pérez
30
+
31
+ * Breaking change: Remove support for Radius as a template engine. [#1793](https://github.com/sinatra/sinatra/pull/1793) by Eloy Pérez
32
+
33
+ * Breaking change: Remove support for the defunct Less templating library. See [#1716](https://github.com/sinatra/sinatra/issues/1716), [#1715](https://github.com/sinatra/sinatra/issues/1715) for more discussion and background. [d1af2f1e](https://github.com/sinatra/sinatra/commit/d1af2f1e6c8710419dfe3102a660f7a32f0e67e3) by Olle Jonsson
34
+
35
+ * Breaking change: Remove Reel integration. [54597502](https://github.com/sinatra/sinatra/commit/545975025927a27a1daca790598620038979f1c5) by Olle Jonsson
36
+
37
+ * CI: Start testing on Ruby 3.1. [60e221940](https://github.com/sinatra/sinatra/commit/60e2219407e6ae067bf3e53eb060ee4860c60c8d) and [b0fa4bef](https://github.com/sinatra/sinatra/commit/b0fa4beffaa3b10bf02947d0a35e137403296c6b) by Johannes Würbach
38
+
39
+ * Use `Kernel#caller_locations`. [#1491](https://github.com/sinatra/sinatra/pull/1491) by Julik Tarkhanov
40
+
41
+ * Docs: Japanese documentation: Add notes about the `default_content_type` setting. [#1650](https://github.com/sinatra/sinatra/pull/1650) by Akifumi Tominaga
42
+
43
+ * Docs: Polish documentation: Add section about Multithreaded modes and Routes. [#1708](https://github.com/sinatra/sinatra/pull/1708) by Patrick Gramatowski
44
+
45
+ * Docs: Japanese documentation: Make Session section reflect changes done to README.md. [#1731](https://github.com/sinatra/sinatra/pull/1731) by @shu-i-chi
46
+
47
+ ## 2.2.2 / 2022-07-23
48
+
49
+ * Update mustermann dependency to version 2.
50
+
1
51
  ## 2.2.1 / 2022-07-15
2
52
 
3
- * Fix JRuby regression by using ruby2_keywords for delegation. [#1750](https://github.com/sinatra/sinatra/pull/1750) by Patrik Ragnarsson
53
+ * Fix JRuby regression by using ruby2_keywords for delegation. #1750 by Patrik Ragnarsson
4
54
 
5
- * Add JRuby to CI. [#1755](https://github.com/sinatra/sinatra/pull/1755) by Karol Bucek
55
+ * Add JRuby to CI. #1755 by Karol Bucek
6
56
 
7
57
  ## 2.2.0 / 2022-02-15
8
58
 
9
59
  * Handle EOFError raised by Rack and return Bad Request 400 status. [#1743](https://github.com/sinatra/sinatra/pull/1743) by tamazon
10
60
 
11
- * Update README.es.md with removal of Thin. [#1630](https://github.com/sinatra/sinatra/pull/1630) by Espartaco Palma
12
-
13
61
  * Minor refactors in `base.rb`. [#1640](https://github.com/sinatra/sinatra/pull/1640) by ceclinux
14
62
 
15
- * Fixed typos in german README.md. [#1648](https://github.com/sinatra/sinatra/pull/1648) by Juri
16
-
17
63
  * Add escaping to the static 404 page. [#1645](https://github.com/sinatra/sinatra/pull/1645) by Chris Gavin
18
64
 
19
65
  * Remove `detect_rack_handler` method. [#1652](https://github.com/sinatra/sinatra/pull/1652) by ceclinux
20
66
 
21
67
  * Respect content type set in superclass before filter. Fixes [#1647](https://github.com/sinatra/sinatra/issues/1647) [#1649](https://github.com/sinatra/sinatra/pull/1649) by Jordan Owens
22
68
 
23
- * Update README.ja.md with removal of Thin. [#1629](https://github.com/sinatra/sinatra/pull/1629) by Ryuichi KAWAMATA
24
-
25
69
  * *Revert "Use prepend instead of include for helpers.* [#1662](https://github.com/sinatra/sinatra/pull/1662) by namusyaka
26
70
 
27
- * Various minor fixes to README.md. [#1663](https://github.com/sinatra/sinatra/pull/1663) by Yanis Zafirópulos
28
-
29
- * Document when `dump_errors` is enabled. Fixes [#1664](https://github.com/sinatra/sinatra/issues/1664) [#1665](https://github.com/sinatra/sinatra/pull/1665) by Patrik Ragnarsson
30
-
31
- * Update README.pt-br.md. [#1668](https://github.com/sinatra/sinatra/pull/1668) by Vitor Oliveira
32
-
33
71
  * Fix usage of inherited `Sinatra::Base` classes keyword arguments. Fixes [#1669](https://github.com/sinatra/sinatra/issues/1669) [#1670](https://github.com/sinatra/sinatra/pull/1670) by Cadu Ribeiro
34
72
 
35
73
  * Reduce RDoc generation time by not including every README. Fixes [#1578](https://github.com/sinatra/sinatra/issues/1578) [#1671](https://github.com/sinatra/sinatra/pull/1671) by Eloy Pérez
@@ -42,7 +80,7 @@
42
80
 
43
81
  * Fix Delegator to pass keyword arguments for Ruby 3.0. [#1684](https://github.com/sinatra/sinatra/pull/1684) by andrewtblake
44
82
 
45
- * Fix use with keyword arguments for Ruby 3.0. [#1701](https://github.com/sinatra/sinatra/pull/1701) by Robin Wallin
83
+ * Fix use with keyword arguments for Ruby 3.0. [#1701](https://github.com/sinatra/sinatra/pull/1701) by Robin Wallin
46
84
 
47
85
  * Fix memory leaks for proc template. Fixes [#1704](https://github.com/sinatra/sinatra/issues/1714) [#1719](https://github.com/sinatra/sinatra/pull/1719) by Slevin
48
86
 
@@ -50,12 +88,23 @@
50
88
 
51
89
  * Add `#select`, `#reject` and `#compact` methods to `Sinatra::IndifferentHash`. [#1711](https://github.com/sinatra/sinatra/pull/1711) by Olivier Bellone
52
90
 
91
+ * Docs: Spanish documentation: Update README.es.md with removal of Thin. [#1630](https://github.com/sinatra/sinatra/pull/1630) by Espartaco Palma
92
+
93
+ * Docs: German documentation: Fixed typos in German README.md. [#1648](https://github.com/sinatra/sinatra/pull/1648) by Juri
94
+
95
+ * Docs: Japanese documentation: Update README.ja.md with removal of Thin. [#1629](https://github.com/sinatra/sinatra/pull/1629) by Ryuichi KAWAMATA
96
+
97
+ * Docs: English documentation: Various minor fixes to README.md. [#1663](https://github.com/sinatra/sinatra/pull/1663) by Yanis Zafirópulos
98
+
99
+ * Docs: English documentation: Document when `dump_errors` is enabled. Fixes [#1664](https://github.com/sinatra/sinatra/issues/1664) [#1665](https://github.com/sinatra/sinatra/pull/1665) by Patrik Ragnarsson
100
+
101
+ * Docs: Brazilian Portuguese documentation: Update README.pt-br.md with translation fixes. [#1668](https://github.com/sinatra/sinatra/pull/1668) by Vitor Oliveira
53
102
 
54
103
  ### CI
55
104
 
56
105
  * Use latest JRuby 9.2.16.0 on CI. [#1682](https://github.com/sinatra/sinatra/pull/1682) by Olle Jonsson
57
106
 
58
- * Switch CI from travis to Github actions. [#1691](https://github.com/sinatra/sinatra/pull/1691) by namusyaka
107
+ * Switch CI from travis to GitHub Actions. [#1691](https://github.com/sinatra/sinatra/pull/1691) by namusyaka
59
108
 
60
109
  * Skip the Slack action if `secrets.SLACK_WEBHOOK` is not set. [#1705](https://github.com/sinatra/sinatra/pull/1705) by Robin Wallin
61
110
 
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Why use bundler?
2
4
  # Well, not all development dependencies install on all rubies. Moreover, `gem
3
5
  # install sinatra --development` doesn't work, as it will also try to install
@@ -6,75 +8,48 @@
6
8
  #
7
9
  # If you have issues with a gem: `bundle install --without-coffee-script`.
8
10
 
9
- RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE
10
- source 'https://rubygems.org' unless ENV['QUICK']
11
+ source 'https://rubygems.org'
11
12
  gemspec
12
13
 
13
14
  gem 'rake'
14
- gem 'rack', '~> 2.0'
15
- gem 'rack-test', '>= 0.6.2'
16
- gem "minitest", "~> 5.0"
17
- gem 'yard'
18
-
19
- gem "rack-protection", path: "rack-protection"
20
- gem "sinatra-contrib", path: "sinatra-contrib"
21
-
22
- gem "twitter-text", "1.14.7"
23
15
 
24
- if RUBY_ENGINE == 'jruby'
25
- gem 'nokogiri', '!= 1.5.0'
26
- gem 'puma'
27
- end
16
+ rack_version = ENV['rack'].to_s
17
+ rack_version = nil if rack_version.empty? || (rack_version == 'stable')
18
+ rack_version = { github: 'rack/rack' } if rack_version == 'master'
19
+ gem 'rack', rack_version
28
20
 
29
- if RUBY_ENGINE == 'jruby' || RUBY_ENGINE == 'ruby'
30
- gem "activesupport", "~> 5.1.6"
31
- end
32
-
33
- if RUBY_ENGINE == "ruby"
34
- gem 'less', '~> 2.0'
35
- gem 'therubyracer'
36
- gem 'redcarpet'
37
- gem 'wlang', '>= 3.0.1'
38
- gem 'bluecloth'
39
- gem 'rdiscount'
40
- gem 'RedCloth'
41
- gem 'puma'
42
- gem 'yajl-ruby'
43
- gem 'nokogiri'
44
- gem 'rainbows'
45
- gem 'eventmachine'
46
- gem 'slim', '~> 2.0'
47
- gem 'coffee-script', '>= 2.0'
48
- gem 'rdoc'
49
- gem 'kramdown'
50
- gem 'maruku'
51
- gem 'creole'
52
- gem 'wikicloth'
53
- gem 'markaby'
54
- gem 'radius'
55
- gem 'asciidoctor'
56
- gem 'liquid'
57
- gem 'stylus'
58
- gem 'rabl'
59
- gem 'builder'
60
- gem 'erubi'
61
- gem 'erubis'
62
- gem 'haml', '>= 3.0'
63
- gem 'sass'
64
- gem 'reel-rack'
65
- gem 'celluloid', '~> 0.16.0'
66
- gem 'commonmarker', '~> 0.20.0'
67
- gem 'pandoc-ruby', '~> 2.0.2'
68
- gem 'simplecov', require: false
69
- end
70
-
71
- if RUBY_ENGINE == "rbx"
72
- gem 'json'
73
- gem 'rubysl'
74
- gem 'rubysl-test-unit'
75
- gem 'erubi'
76
- end
21
+ gem 'minitest', '~> 5.0'
22
+ gem 'rack-test', github: 'rack/rack-test'
23
+ gem 'rubocop', '~> 1.32.0', require: false
24
+ gem 'yard'
77
25
 
78
- platforms :jruby do
79
- gem 'json'
80
- end
26
+ gem 'rack-protection', path: 'rack-protection'
27
+ gem 'sinatra-contrib', path: 'sinatra-contrib'
28
+
29
+ gem 'activesupport', '~> 6.1'
30
+
31
+ gem 'asciidoctor'
32
+ gem 'builder'
33
+ gem 'commonmarker', '~> 0.23.4', platforms: [:ruby]
34
+ gem 'erubi'
35
+ gem 'eventmachine'
36
+ gem 'falcon', '~> 0.40', platforms: [:ruby]
37
+ gem 'haml', '~> 5'
38
+ gem 'kramdown'
39
+ gem 'liquid'
40
+ gem 'markaby'
41
+ gem 'nokogiri', '> 1.5.0'
42
+ gem 'pandoc-ruby', '~> 2.0.2'
43
+ gem 'puma'
44
+ gem 'rabl'
45
+ gem 'rainbows', platforms: [:mri] # uses #fork
46
+ gem 'rdiscount', platforms: [:ruby]
47
+ gem 'rdoc'
48
+ gem 'redcarpet', platforms: [:ruby]
49
+ gem 'simplecov', require: false
50
+ gem 'slim', '~> 4'
51
+ gem 'yajl-ruby', platforms: [:ruby]
52
+
53
+ gem 'json', platforms: %i[jruby mri]
54
+
55
+ gem 'jar-dependencies', '= 0.4.1', platforms: [:jruby] # Gem::LoadError with jar-dependencies 0.4.2