rack-protection 2.0.0.rc2 → 2.0.0.rc5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rack-protection might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ba263455e21ef3a57c282270022ca1a02c4e9f0
4
- data.tar.gz: 7e297009a1ff3f7e42a9a11a69ad1a6c58de5ba5
3
+ metadata.gz: f76b6261272d926f5991f7ec8e749255970e7420
4
+ data.tar.gz: 3cbc9844199d0a3a5085a7603b91b9f7da1b78b1
5
5
  SHA512:
6
- metadata.gz: 58c7dc2603726a22a19a910f15858bb7cf52496e43ce9cc3b306ff01bba37771b08a05c9ed1a874f9e4294d6f6ebc73c2c0671f60fc31f9203bfc8a24b83a3bd
7
- data.tar.gz: c2a99e1e29b37012ab43a4dba44381645fc7018901f509494c49a0b06ec70ffd9268f2e34a8bd0015104221e5db85bd4ea25b22ff2d7e5ae810d8c4148425bb2
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'
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Protection
3
- VERSION = "2.0.0.rc2"
3
+ VERSION = '2.0.0.rc5'
4
4
  end
5
5
  end
@@ -1,10 +1,9 @@
1
- $:.unshift File.expand_path("../../rack-protection/lib", __FILE__)
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 = Rack::Protection::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.rc2
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-03-19 00:00:00.000000000 Z
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.8
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