rack-protection 2.0.0.rc2 → 2.0.0.rc5
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.
- checksums.yaml +4 -4
- data/Rakefile +19 -0
- data/lib/rack/protection/version.rb +1 -1
- data/rack-protection.gemspec +2 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f76b6261272d926f5991f7ec8e749255970e7420
|
|
4
|
+
data.tar.gz: 3cbc9844199d0a3a5085a7603b91b9f7da1b78b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5bceb8b4c75bc2dcba52007fc44d48d64f0e9bf814fb6a669e5e46de127552157925ef9ecb925119c07455c112204f3027f382b7e61dc5627a5f1c17b87442ab
|
|
7
|
+
data.tar.gz: f394133be6e3b6da48e04da8f3940100b439b9d2655e944b167f1b5dc1fe5ddf3c75f1eeb1376f6abbe364932734295227c453c70e425c24a0f7981b270c087d
|
data/Rakefile
CHANGED
|
@@ -11,6 +11,25 @@ end
|
|
|
11
11
|
desc "run specs"
|
|
12
12
|
task(:spec) { ruby '-S rspec spec' }
|
|
13
13
|
|
|
14
|
+
namespace :doc do
|
|
15
|
+
task :readmes do
|
|
16
|
+
Dir.glob 'lib/rack/protection/*.rb' do |file|
|
|
17
|
+
excluded_files = %w[lib/rack/protection/base.rb lib/rack/protection/version.rb]
|
|
18
|
+
next if excluded_files.include?(file)
|
|
19
|
+
doc = File.read(file)[/^ module Protection(\n)+( #[^\n]*\n)*/m].scan(/^ *#(?!#) ?(.*)\n/).join("\n")
|
|
20
|
+
file = "doc/#{file[4..-4].tr("/_", "-")}.rdoc"
|
|
21
|
+
Dir.mkdir "doc" unless File.directory? "doc"
|
|
22
|
+
puts "writing #{file}"
|
|
23
|
+
File.open(file, "w") { |f| f << doc }
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
task :all => [:readmes]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
desc "generate documentation"
|
|
31
|
+
task :doc => 'doc:all'
|
|
32
|
+
|
|
14
33
|
desc "generate gemspec"
|
|
15
34
|
task 'rack-protection.gemspec' do
|
|
16
35
|
require 'rack/protection/version'
|
data/rack-protection.gemspec
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
require "rack/protection/version"
|
|
1
|
+
version = File.read(File.expand_path("../../VERSION", __FILE__)).strip
|
|
3
2
|
|
|
4
3
|
Gem::Specification.new do |s|
|
|
5
4
|
# general infos
|
|
6
5
|
s.name = "rack-protection"
|
|
7
|
-
s.version =
|
|
6
|
+
s.version = version
|
|
8
7
|
s.description = "Protect against typical web attacks, works with all Rack apps, including Rails."
|
|
9
8
|
s.homepage = "http://github.com/sinatra/sinatra/tree/master/rack-protection"
|
|
10
9
|
s.summary = s.description
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rack-protection
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.0.
|
|
4
|
+
version: 2.0.0.rc5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- https://github.com/sinatra/sinatra/graphs/contributors
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-05-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
version: 1.3.1
|
|
104
104
|
requirements: []
|
|
105
105
|
rubyforge_project:
|
|
106
|
-
rubygems_version: 2.6.
|
|
106
|
+
rubygems_version: 2.6.11
|
|
107
107
|
signing_key:
|
|
108
108
|
specification_version: 4
|
|
109
109
|
summary: Protect against typical web attacks, works with all Rack apps, including
|