apache_secure_download 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,3 @@
1
1
  --colour
2
+ --debug
2
3
  --require spec/spec_helper.rb
data/ChangeLog CHANGED
@@ -1,5 +1,13 @@
1
1
  = Revision history for apache_secure_download
2
2
 
3
+ == 0.1.2 [2011-09-29]
4
+
5
+ * Fixed check_access when there are no query args
6
+
7
+ == 0.1.1 [2011-04-29]
8
+
9
+ * Switched license to Affero GPL
10
+
3
11
  == 0.1.0 [2010-06-24]
4
12
 
5
13
  * Fixed regression from 0.0.9
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to apache_secure_download version 0.1.1
5
+ This documentation refers to apache_secure_download version 0.1.2
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -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 = Util.real_query(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
@@ -6,7 +6,7 @@ module Apache
6
6
 
7
7
  MAJOR = 0
8
8
  MINOR = 1
9
- TINY = 1
9
+ TINY = 2
10
10
 
11
11
  class << self
12
12
 
@@ -78,7 +78,7 @@ describe Apache::SecureDownload do
78
78
  @handler = @class.new(@secret)
79
79
  end
80
80
 
81
- describe "normally", :shared => true do
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
- describe "always allowed", :shared => true do
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
- describe "always forbidden", :shared => true do
125
+ shared_examples "always forbidden" do
126
126
 
127
127
  it_should_be_forbidden "with correct secret"
128
128
 
@@ -1,11 +1,9 @@
1
- require 'spec'
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
- Spec::Runner.configure do |config|
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.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-04-29 00:00:00 Z
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
- - README
34
+ - lib/apache/secure_download/util.rb
35
+ - lib/apache/secure_download/version.rb
37
36
  - ChangeLog
38
- - Rakefile
39
37
  - COPYING
40
- - spec/spec.opts
41
- - spec/apache/secure_download/util_spec.rb
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.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.7.2
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.