fog 0.0.96 → 0.0.97
Sign up to get free protection for your applications and to get access to all the features.
- data/fog.gemspec +1 -1
- data/lib/fog.rb +1 -1
- data/lib/fog/aws/requests/s3/get_object.rb +4 -2
- metadata +2 -2
data/fog.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
## If your rubyforge_project name is different, then edit it and comment out
|
8
8
|
## the sub! line in the Rakefile
|
9
9
|
s.name = 'fog'
|
10
|
-
s.version = '0.0.
|
10
|
+
s.version = '0.0.97'
|
11
11
|
s.date = '2010-05-14'
|
12
12
|
s.rubyforge_project = 'fog'
|
13
13
|
|
data/lib/fog.rb
CHANGED
@@ -32,7 +32,9 @@ module Fog
|
|
32
32
|
unless object_name
|
33
33
|
raise ArgumentError.new('object_name is required')
|
34
34
|
end
|
35
|
-
version_id = options.delete('versionId')
|
35
|
+
if version_id = options.delete('versionId')
|
36
|
+
query = CGI.escape(version_id)
|
37
|
+
end
|
36
38
|
headers = {}
|
37
39
|
headers['If-Modified-Since'] = options['If-Modified-Since'].utc.strftime("%a, %d %b %Y %H:%M:%S +0000") if options['If-Modified-Since']
|
38
40
|
headers['If-Unmodified-Since'] = options['If-Unmodified-Since'].utc.strftime("%a, %d %b %Y %H:%M:%S +0000") if options['If-Modified-Since']
|
@@ -44,7 +46,7 @@ module Fog
|
|
44
46
|
:idempotent => true,
|
45
47
|
:method => 'GET',
|
46
48
|
:path => CGI.escape(object_name),
|
47
|
-
:query =>
|
49
|
+
:query => query
|
48
50
|
}, &block)
|
49
51
|
end
|
50
52
|
|