sinatra 3.0.0 → 3.0.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 +4 -4
- data/CHANGELOG.md +11 -1
- data/Gemfile +1 -1
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/sinatra/base.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09b4ec1cb58e2e7dfa9dc645bd16f2f94a391912464b5b50d622586965742820'
|
4
|
+
data.tar.gz: fc4b0427e02ba2455895f237e81c24c36b2e397ab5fbce9267346185aeaf0424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99bf716439cd1c81eaa7abcb65a524026251fe4e2d388bdf69229fc1024782573d6fba7de9f533243e411bb3daea00354fa73e8f1100a9e93ef2eaf207f06acf
|
7
|
+
data.tar.gz: f897562768896052c1c781ea6b1ca499167f4b7bc4cfeab398a7244cdee265dab1d5e4a05dc4efa7f8f61a11656fa6d49550d448a4e37c3ffedb57b1b6e11375
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
##
|
1
|
+
## Unreleased
|
2
|
+
|
3
|
+
* _Your new feature here._
|
4
|
+
|
5
|
+
## 3.0.1 / 2022-09-26
|
6
|
+
|
7
|
+
* Fix: Revert removal of rack-protection.rb. [#1814](https://github.com/sinatra/sinatra/pull/1814) by Olle Jonsson
|
8
|
+
|
9
|
+
* 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
|
10
|
+
|
11
|
+
## 3.0.0 / 2022-09-26
|
2
12
|
|
3
13
|
* New: Add Falcon support. [#1794](https://github.com/sinatra/sinatra/pull/1794) by Samuel Williams and @horaciob
|
4
14
|
|
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.1
|
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
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Mizerany
|
@@ -53,14 +53,14 @@ dependencies:
|
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 3.0.
|
56
|
+
version: 3.0.1
|
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.1
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: tilt
|
66
66
|
requirement: !ruby/object:Gem::Requirement
|