occi-api 4.2.0.beta.9 → 4.2.0.beta.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3f0513db8dfc7aa5d65286eb15f5ed55b2b11e12
4
+ data.tar.gz: fc0bda8b7788f06845283330b61872f7195ba782
5
+ SHA512:
6
+ metadata.gz: ef1f7ab2ce8323302ac056e7999e5562f32edb0c217b44521390d1273e3b374d4e2afb991e4efa60d1ac2ef3aafd928246f9d2ac451bfaf4ac474cf38b5e6493
7
+ data.tar.gz: 117dcd2ae31afd5ada3e9665219087710658929c21cf3813aa0af1604e23189529b65c04c929f0f23a8f6559d84517eae0131421a12676d563aa57e7fb0ced98
@@ -76,7 +76,7 @@ module Occi::Api::Client
76
76
  response_msg = response_message(response)
77
77
 
78
78
  if response.code.between? 200, 201
79
- Occi::Parser.parse(response.header["content-type"], response.body)
79
+ Occi::Parser.parse(response.content_type, response.body)
80
80
  else
81
81
  raise "HTTP POST failed! #{response_msg}"
82
82
  end
@@ -114,7 +114,7 @@ module Occi::Api::Client
114
114
  end
115
115
  entity_type = Occi::Core::Resource unless entity_type
116
116
 
117
- Occi::Log.debug "Parser call: #{response.content_type} #{path.include?('/-/')} " \
117
+ Occi::Log.debug "Parser call: #{response.content_type.inspect} #{path.include?('/-/')} " \
118
118
  "#{entity_type} #{response.headers.inspect}"
119
119
  collection = Occi::Parser.parse(
120
120
  response.content_type, response.body,
@@ -158,13 +158,13 @@ module Occi::Api::Client
158
158
  def post_create(response)
159
159
  if response.code == 200
160
160
  collection = Occi::Parser.parse(
161
- response.header["content-type"],
161
+ response.content_type,
162
162
  response.body
163
163
  )
164
164
 
165
165
  if collection.empty?
166
166
  Occi::Parser.locations(
167
- response.header["content-type"],
167
+ response.content_type,
168
168
  response.body,
169
169
  response.headers
170
170
  ).first
@@ -175,7 +175,7 @@ module Occi::Api::Client
175
175
  end
176
176
  else
177
177
  Occi::Parser.locations(
178
- response.header["content-type"],
178
+ response.content_type,
179
179
  response.body,
180
180
  response.headers
181
181
  ).first
@@ -1,5 +1,5 @@
1
1
  module Occi
2
2
  module Api
3
- VERSION = "4.2.0.beta.9" unless defined?(::Occi::Api::VERSION)
3
+ VERSION = "4.2.0.beta.10" unless defined?(::Occi::Api::VERSION)
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occi-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0.beta.9
5
- prerelease: 6
4
+ version: 4.2.0.beta.10
6
5
  platform: ruby
7
6
  authors:
8
7
  - Florian Feldhaus
@@ -11,12 +10,11 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2014-01-10 00:00:00.000000000 Z
13
+ date: 2014-01-11 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: occi-core
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
19
  - - ~>
22
20
  - !ruby/object:Gem::Version
@@ -24,7 +22,6 @@ dependencies:
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
26
  - - ~>
30
27
  - !ruby/object:Gem::Version
@@ -32,33 +29,29 @@ dependencies:
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: httparty
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
- - - ! '>='
33
+ - - '>='
38
34
  - !ruby/object:Gem::Version
39
35
  version: '0'
40
36
  type: :runtime
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ! '>='
40
+ - - '>='
46
41
  - !ruby/object:Gem::Version
47
42
  version: '0'
48
43
  - !ruby/object:Gem::Dependency
49
44
  name: json
50
45
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
46
  requirements:
53
- - - ! '>='
47
+ - - '>='
54
48
  - !ruby/object:Gem::Version
55
49
  version: '0'
56
50
  type: :runtime
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
- - - ! '>='
54
+ - - '>='
62
55
  - !ruby/object:Gem::Version
63
56
  version: '0'
64
57
  description: This gem provides ready-to-use client classes to simplify the integration
@@ -146,26 +139,25 @@ files:
146
139
  homepage: https://github.com/gwdg/rOCCI-api
147
140
  licenses:
148
141
  - Apache License, Version 2.0
142
+ metadata: {}
149
143
  post_install_message:
150
144
  rdoc_options: []
151
145
  require_paths:
152
146
  - lib
153
147
  required_ruby_version: !ruby/object:Gem::Requirement
154
- none: false
155
148
  requirements:
156
- - - ! '>='
149
+ - - '>='
157
150
  - !ruby/object:Gem::Version
158
151
  version: 1.9.3
159
152
  required_rubygems_version: !ruby/object:Gem::Requirement
160
- none: false
161
153
  requirements:
162
- - - ! '>'
154
+ - - '>'
163
155
  - !ruby/object:Gem::Version
164
156
  version: 1.3.1
165
157
  requirements: []
166
158
  rubyforge_project:
167
- rubygems_version: 1.8.25
159
+ rubygems_version: 2.1.11
168
160
  signing_key:
169
- specification_version: 3
161
+ specification_version: 4
170
162
  summary: OCCI development library providing a high-level API
171
163
  test_files: []