sinatra 3.0.0 → 3.0.2
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 +4 -4
- data/CHANGELOG.md +15 -1
- data/Gemfile +1 -1
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/sinatra/base.rb +3 -3
- data/lib/sinatra/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51d1e07bf88ff5cf3837bb62442c1e72ac0fcf0a76c1704d4807490dc03d9154
|
4
|
+
data.tar.gz: 7b3aa08a0f94b508478e33c3840b3100ffc74a77d9bf6a1422010c3cbfc1193d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10ffb0b48fbbd7677e4b4be938db356e005096d36b993695c1a60c27600b504a4ab38e7e920465b03f72eb60ff1b860b885c621d394d3f9b0160f848fc1a68ee
|
7
|
+
data.tar.gz: e1f70f1588cf5e35d806c5f6b245920e310362fefc9e5f54e99e632bb6b532c54955d8eda8675a80294a9526a648121e70f512df88c88886ecbb7ceb75eeb951
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,18 @@
|
|
1
|
-
##
|
1
|
+
## Unreleased
|
2
|
+
|
3
|
+
* _Your new feature here._
|
4
|
+
|
5
|
+
## 3.0.2 / 2022-10-01
|
6
|
+
|
7
|
+
* New: Add Haml 6 support. [#1820](https://github.com/sinatra/sinatra/pull/1820) by Jordan Owens
|
8
|
+
|
9
|
+
## 3.0.1 / 2022-09-26
|
10
|
+
|
11
|
+
* Fix: Revert removal of rack-protection.rb. [#1814](https://github.com/sinatra/sinatra/pull/1814) by Olle Jonsson
|
12
|
+
|
13
|
+
* Fix: Revert change to server start and stop messaging by using Kernel#warn. Renamed internal warn method warn_for_deprecation. [#1818](https://github.com/sinatra/sinatra/pull/1818) by Jordan Owens
|
14
|
+
|
15
|
+
## 3.0.0 / 2022-09-26
|
2
16
|
|
3
17
|
* New: Add Falcon support. [#1794](https://github.com/sinatra/sinatra/pull/1794) by Samuel Williams and @horaciob
|
4
18
|
|
data/Gemfile
CHANGED
@@ -15,7 +15,7 @@ gem 'rake'
|
|
15
15
|
|
16
16
|
rack_version = ENV['rack'].to_s
|
17
17
|
rack_version = nil if rack_version.empty? || (rack_version == 'stable')
|
18
|
-
rack_version = { github: 'rack/rack' } if rack_version == '
|
18
|
+
rack_version = { github: 'rack/rack' } if rack_version == 'main'
|
19
19
|
gem 'rack', rack_version
|
20
20
|
|
21
21
|
gem 'minitest', '~> 5.0'
|
data/Rakefile
CHANGED
@@ -208,11 +208,11 @@ if defined?(Gem)
|
|
208
208
|
rack-protection/lib/rack/protection
|
209
209
|
].each do |path|
|
210
210
|
path = File.join(path, 'version.rb')
|
211
|
-
|
211
|
+
File.write(path, File.read(path).sub(/VERSION = '(.+?)'/, "VERSION = '#{source_version}'"))
|
212
212
|
end
|
213
213
|
|
214
|
-
#git commit --allow-empty -a -m '#{source_version} release' &&
|
215
214
|
sh <<-SH
|
215
|
+
git commit --allow-empty -a -m '#{source_version} release' &&
|
216
216
|
git tag -s v#{source_version} -m '#{source_version} release' &&
|
217
217
|
git push && (git push origin || true) &&
|
218
218
|
git push --tags && (git push origin --tags || true)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.2
|
data/lib/sinatra/base.rb
CHANGED
@@ -1408,7 +1408,7 @@ module Sinatra
|
|
1408
1408
|
end
|
1409
1409
|
|
1410
1410
|
def public=(value)
|
1411
|
-
|
1411
|
+
warn_for_deprecation ':public is no longer used to avoid overloading Module#public, use :public_folder or :public_dir instead'
|
1412
1412
|
set(:public_folder, value)
|
1413
1413
|
end
|
1414
1414
|
|
@@ -1772,8 +1772,8 @@ module Sinatra
|
|
1772
1772
|
end
|
1773
1773
|
|
1774
1774
|
# used for deprecation warnings
|
1775
|
-
def
|
1776
|
-
|
1775
|
+
def warn_for_deprecation(message)
|
1776
|
+
warn message + "\n\tfrom #{cleaned_caller.first.join(':')}"
|
1777
1777
|
end
|
1778
1778
|
|
1779
1779
|
# Like Kernel#caller but excluding certain magic entries
|
data/lib/sinatra/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Mizerany
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2022-
|
14
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: mustermann
|
@@ -53,14 +53,14 @@ dependencies:
|
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 3.0.
|
56
|
+
version: 3.0.2
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 3.0.
|
63
|
+
version: 3.0.2
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: tilt
|
66
66
|
requirement: !ruby/object:Gem::Requirement
|