fog 0.2.10 → 0.2.11
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/rackspace/files.rb +1 -1
- data/lib/fog/rackspace/requests/files/put_container.rb +2 -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.2.
|
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
data/lib/fog/rackspace/files.rb
CHANGED
@@ -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
|
-
|
16
|
+
)
|
17
17
|
response
|
18
18
|
end
|
19
19
|
|