apache_secure_download 0.1.1 → 0.1.2
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.
- data/{spec/spec.opts → .rspec} +1 -0
- data/ChangeLog +8 -0
- data/README +1 -1
- data/lib/apache/secure_download.rb +1 -1
- data/lib/apache/secure_download/version.rb +1 -1
- data/spec/apache/secure_download_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -4
- metadata +12 -12
data/{spec/spec.opts → .rspec}
RENAMED
data/ChangeLog
CHANGED
data/README
CHANGED
@@ -56,7 +56,7 @@ module Apache
|
|
56
56
|
timestamp, token = request.param('timestamp'), request.param('token')
|
57
57
|
|
58
58
|
# Remove timestamp and token from query args
|
59
|
-
request.args
|
59
|
+
request.args &&= Util.real_query(request.args)
|
60
60
|
|
61
61
|
return FORBIDDEN if @deny && request.uri =~ @deny
|
62
62
|
return OK if @allow && request.uri =~ @allow
|
@@ -78,7 +78,7 @@ describe Apache::SecureDownload do
|
|
78
78
|
@handler = @class.new(@secret)
|
79
79
|
end
|
80
80
|
|
81
|
-
|
81
|
+
shared_examples "normally" do
|
82
82
|
|
83
83
|
it_should_be_allowed "with correct secret"
|
84
84
|
|
@@ -100,7 +100,7 @@ describe Apache::SecureDownload do
|
|
100
100
|
|
101
101
|
end
|
102
102
|
|
103
|
-
|
103
|
+
shared_examples "always allowed" do
|
104
104
|
|
105
105
|
it_should_be_allowed "with correct secret"
|
106
106
|
|
@@ -122,7 +122,7 @@ describe Apache::SecureDownload do
|
|
122
122
|
|
123
123
|
end
|
124
124
|
|
125
|
-
|
125
|
+
shared_examples "always forbidden" do
|
126
126
|
|
127
127
|
it_should_be_forbidden "with correct secret"
|
128
128
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
1
|
+
$:.unshift('lib') unless $:.first == 'lib'
|
4
2
|
|
5
3
|
require 'apache/secure_download'
|
6
4
|
require 'apache/mock_constants'
|
7
5
|
|
8
|
-
|
6
|
+
RSpec.configure do |config|
|
9
7
|
config.before :each do
|
10
8
|
@now = Time.now
|
11
9
|
Time.stub!(:now).and_return { @now }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apache_secure_download
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jens Wille
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-09-29 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Apache module providing secure downloading functionality, just like Mongrel Secure Download does for mongrel.
|
@@ -29,18 +29,18 @@ extra_rdoc_files:
|
|
29
29
|
- COPYING
|
30
30
|
- ChangeLog
|
31
31
|
files:
|
32
|
-
- lib/apache/secure_download/util.rb
|
33
|
-
- lib/apache/secure_download/version.rb
|
34
32
|
- lib/apache/secure_download.rb
|
35
33
|
- lib/apache/mock_constants.rb
|
36
|
-
-
|
34
|
+
- lib/apache/secure_download/util.rb
|
35
|
+
- lib/apache/secure_download/version.rb
|
37
36
|
- ChangeLog
|
38
|
-
- Rakefile
|
39
37
|
- COPYING
|
40
|
-
-
|
41
|
-
-
|
38
|
+
- README
|
39
|
+
- Rakefile
|
42
40
|
- spec/apache/secure_download_spec.rb
|
41
|
+
- spec/apache/secure_download/util_spec.rb
|
43
42
|
- spec/spec_helper.rb
|
43
|
+
- .rspec
|
44
44
|
homepage: http://prometheus.rubyforge.org/apache_secure_download
|
45
45
|
licenses: []
|
46
46
|
|
@@ -49,7 +49,7 @@ rdoc_options:
|
|
49
49
|
- --charset
|
50
50
|
- UTF-8
|
51
51
|
- --title
|
52
|
-
- apache_secure_download Application documentation (v0.1.
|
52
|
+
- apache_secure_download Application documentation (v0.1.2)
|
53
53
|
- --main
|
54
54
|
- README
|
55
55
|
- --line-numbers
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
requirements: []
|
78
78
|
|
79
79
|
rubyforge_project: prometheus
|
80
|
-
rubygems_version: 1.
|
80
|
+
rubygems_version: 1.8.10
|
81
81
|
signing_key:
|
82
82
|
specification_version: 3
|
83
83
|
summary: Apache module providing secure downloading functionality, just like Mongrel Secure Download does for mongrel.
|