fog 1.12.0 → 1.12.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,15 @@
1
+ 1.12.1 06/11/2013 8663e9079edb69f1a56ea887379f94e6d5efd0d8
2
+ ==========================================================
3
+
4
+ Stats! { 'collaborators' => 49, 'downloads' => 2417193, 'forks' => 817, 'open_issues' => 150, 'watchers' => 2564 }
5
+
6
+ MVP! Hongbin Lu
7
+
8
+ [misc]
9
+ Don't parse non-JSON response. thanks Hongbin Lu
10
+ turn verbose error responses on. thanks geemus
11
+
12
+
1
13
  1.12.0 06/11/2013 2dd2a8b003fd7ee89141820e0d3c7ff161e74f60
2
14
  ==========================================================
3
15
 
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  ## If your rubyforge_project name is different, then edit it and comment out
7
7
  ## the sub! line in the Rakefile
8
8
  s.name = 'fog'
9
- s.version = '1.12.0'
9
+ s.version = '1.12.1'
10
10
  s.date = '2013-06-10'
11
11
  s.rubyforge_project = 'fog'
12
12
 
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
41
41
  ## List your runtime dependencies here. Runtime dependencies are those
42
42
  ## that are needed for an end user to actually USE your code.
43
43
  s.add_dependency('builder')
44
- s.add_dependency('excon', '~>0.22.1')
44
+ s.add_dependency('excon', '~>0.23.0')
45
45
  s.add_dependency('formatador', '~>0.2.0')
46
46
  s.add_dependency('multi_json', '~>1.0')
47
47
  s.add_dependency('mime-types')
@@ -2,7 +2,11 @@ module Fog
2
2
  class Connection
3
3
 
4
4
  def initialize(url, persistent=false, params={})
5
- Excon.defaults[:headers]['User-Agent'] ||= "fog/#{Fog::VERSION}"
5
+ unless params.has_key?(:debug_response)
6
+ params[:debug_response] = true
7
+ end
8
+ params[:headers] ||= {}
9
+ params[:headers]['User-Agent'] ||= "fog/#{Fog::VERSION}"
6
10
  @excon = Excon.new(url, params)
7
11
  @persistent = persistent
8
12
  end
@@ -363,7 +363,7 @@ module Fog
363
363
  end
364
364
  end
365
365
 
366
- unless response.body.empty?
366
+ if !response.body.empty? and response.get_header('Content-Type') == 'application/json'
367
367
  response.body = Fog::JSON.decode(response.body)
368
368
  end
369
369
 
@@ -1,3 +1,3 @@
1
1
  module Fog
2
- VERSION = '1.12.0'
2
+ VERSION = '1.12.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.12.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 0.22.1
37
+ version: 0.23.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 0.22.1
45
+ version: 0.23.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: formatador
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -4499,7 +4499,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
4499
4499
  version: '0'
4500
4500
  segments:
4501
4501
  - 0
4502
- hash: 273855007002167556
4502
+ hash: 1026096410422706099
4503
4503
  required_rubygems_version: !ruby/object:Gem::Requirement
4504
4504
  none: false
4505
4505
  requirements: