fog 0.2.10 → 0.2.11

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.2.10'
10
+ s.version = '0.2.11'
11
11
  s.date = '2010-07-02'
12
12
  s.rubyforge_project = 'fog'
13
13
 
data/lib/fog.rb CHANGED
@@ -39,7 +39,7 @@ require 'fog/vcloud'
39
39
  module Fog
40
40
 
41
41
  unless const_defined?(:VERSION)
42
- VERSION = '0.2.10'
42
+ VERSION = '0.2.11'
43
43
  end
44
44
 
45
45
  module Mock
@@ -122,7 +122,7 @@ module Fog
122
122
  :host => @storage_host,
123
123
  :path => "#{@storage_path}/#{params[:path]}",
124
124
  }), &block)
125
- if !response.body.empty? && parse_json
125
+ if !response.body.empty? && parse_json && response.headers['Content-Type'] == 'application/json'
126
126
  response.body = JSON.parse(response.body)
127
127
  end
128
128
  response
@@ -9,11 +9,11 @@ module Fog
9
9
  # * name<~String> - Name for container, should be < 256 bytes and must not contain '/'
10
10
  #
11
11
  def put_container(name)
12
- response = storage_request({
12
+ response = storage_request(
13
13
  :expects => [201, 202],
14
14
  :method => 'PUT',
15
15
  :path => CGI.escape(name)
16
- }, false)
16
+ )
17
17
  response
18
18
  end
19
19
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 10
9
- version: 0.2.10
8
+ - 11
9
+ version: 0.2.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)