apache_secure_download 0.0.4.218 → 0.0.5.228
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/ChangeLog +7 -2
- data/README +1 -1
- data/lib/apache/secure_download.rb +22 -0
- data/lib/apache/secure_download/version.rb +1 -1
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
= Revision history for apache_secure_download
|
2
2
|
|
3
|
+
== 0.0.5 [2008-03-29]
|
4
|
+
|
5
|
+
* Added AlwaysOK and AlwaysFORBIDDEN handlers
|
6
|
+
|
3
7
|
== 0.0.4 [2008-02-26]
|
4
8
|
|
5
9
|
* Some documentation, at last
|
6
10
|
|
7
11
|
== 0.0.3 [2008-02-25]
|
8
12
|
|
9
|
-
* Apache::SecureDownload::Util.secure_url
|
10
|
-
*
|
13
|
+
* Apache::SecureDownload::Util.secure_url
|
14
|
+
* also takes a hash with options instead of explicit expiration time
|
15
|
+
* can create cacheable URLs by setting the <tt>:cache</tt> option
|
11
16
|
|
12
17
|
== 0.0.2 [2008-02-20]
|
13
18
|
|
data/README
CHANGED
@@ -57,6 +57,28 @@ module Apache
|
|
57
57
|
return OK
|
58
58
|
end
|
59
59
|
|
60
|
+
class AlwaysOK
|
61
|
+
|
62
|
+
include Singleton
|
63
|
+
|
64
|
+
# Simply allow all requests.
|
65
|
+
def check_access(request)
|
66
|
+
return OK
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
70
|
+
|
71
|
+
class AlwaysFORBIDDEN
|
72
|
+
|
73
|
+
include Singleton
|
74
|
+
|
75
|
+
# Deny all requests, no matter what.
|
76
|
+
def check_access(request)
|
77
|
+
return FORBIDDEN
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
|
60
82
|
end
|
61
83
|
|
62
84
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apache_secure_download
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5.228
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-03-29 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|