fog 0.0.96 → 0.0.97

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.
@@ -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.96'
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
@@ -35,7 +35,7 @@ require 'fog/vcloud'
35
35
  module Fog
36
36
 
37
37
  unless const_defined?(:VERSION)
38
- VERSION = '0.0.96'
38
+ VERSION = '0.0.97'
39
39
  end
40
40
 
41
41
  module Mock
@@ -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 => CGI.escape(version_id)
49
+ :query => query
48
50
  }, &block)
49
51
  end
50
52
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 96
9
- version: 0.0.96
8
+ - 97
9
+ version: 0.0.97
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)