apache_secure_download 0.1.2 → 0.1.3
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/README
CHANGED
@@ -96,7 +96,7 @@ module Apache
|
|
96
96
|
timestamp = expires.to_i
|
97
97
|
end
|
98
98
|
|
99
|
-
path, query = URI.split(url).values_at(5, 7)
|
99
|
+
path, query = url[0, 1] == '/' ? url.split('?', 2) : URI.split(url).values_at(5, 7)
|
100
100
|
path << '?' << query if query
|
101
101
|
|
102
102
|
params = "timestamp=#{timestamp}&token=#{token(secret, path, timestamp)}"
|
@@ -245,11 +245,11 @@ describe Apache::SecureDownload do
|
|
245
245
|
|
246
246
|
@request = mock('Request', :uri => @uri, :unparsed_uri => "#{@uri}?#{args}")
|
247
247
|
|
248
|
-
@request.should_receive(:param).with('timestamp').
|
249
|
-
@request.should_receive(:param).with('token').
|
248
|
+
@request.should_receive(:param).with('timestamp').any_number_of_times.and_return(@timestamp)
|
249
|
+
@request.should_receive(:param).with('token').any_number_of_times.and_return(@token)
|
250
250
|
|
251
|
-
@request.should_receive(:args).with(no_args).
|
252
|
-
@request.should_receive(:args=).with(clean_args).
|
251
|
+
@request.should_receive(:args).with(no_args).any_number_of_times.and_return(args)
|
252
|
+
@request.should_receive(:args=).with(clean_args).any_number_of_times.and_return(clean_args)
|
253
253
|
end
|
254
254
|
|
255
255
|
end
|
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: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
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-11-07 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.
|
@@ -46,14 +46,14 @@ licenses: []
|
|
46
46
|
|
47
47
|
post_install_message:
|
48
48
|
rdoc_options:
|
49
|
-
- --charset
|
50
|
-
- UTF-8
|
51
49
|
- --title
|
52
|
-
- apache_secure_download Application documentation (v0.1.
|
50
|
+
- apache_secure_download Application documentation (v0.1.3)
|
51
|
+
- --line-numbers
|
53
52
|
- --main
|
54
53
|
- README
|
55
|
-
- --line-numbers
|
56
54
|
- --all
|
55
|
+
- --charset
|
56
|
+
- UTF-8
|
57
57
|
require_paths:
|
58
58
|
- lib
|
59
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -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.8.
|
80
|
+
rubygems_version: 1.8.11
|
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.
|