openstack 2.0.2 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/openstack/connection.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 884339fc18898d36fca662e853c156bb029b193f
|
4
|
+
data.tar.gz: f85e37571dc9182651aec8019cec200b023d3de7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c237b9cf749c80d7147c954fb2239032dd5dffed0eeca36f87874bb549147c36713c7b851673a38c2c01e2ebbd6c4791f76553075c3d1c367672261bd5bc4515
|
7
|
+
data.tar.gz: a18111ee6f10c9137e983f1afa4a0ae3d32504b80704f005bd037115283ba8a64f869935e30274db322bdd7ae87361d0a74cadec143cb7f7502ab1c760983580
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0
|
1
|
+
2.2.0
|
data/lib/openstack/connection.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
|
1
3
|
module OpenStack
|
2
4
|
|
3
5
|
class Connection
|
@@ -142,7 +144,7 @@ class Connection
|
|
142
144
|
start_http(server,path,port,scheme,hdrhash)
|
143
145
|
response = @http[server].request(request)
|
144
146
|
if @is_debug
|
145
|
-
puts "REQUEST:
|
147
|
+
puts "REQUEST: PUT => #{path}"
|
146
148
|
puts data if data
|
147
149
|
puts "RESPONSE: #{response.body}"
|
148
150
|
puts '----------------------------------------'
|
@@ -225,7 +227,7 @@ class Connection
|
|
225
227
|
default_headers["X-Auth-Token"] = @authtoken if authok
|
226
228
|
default_headers["X-Storage-Token"] = @authtoken if authok
|
227
229
|
default_headers["Connection"] = "Keep-Alive"
|
228
|
-
default_headers["User-Agent"] = "OpenStack Ruby API #{
|
230
|
+
default_headers["User-Agent"] = "OpenStack Ruby API #{Gem::VERSION}"
|
229
231
|
default_headers["Accept"] = "application/json"
|
230
232
|
default_headers.merge(headers)
|
231
233
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Prince
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2016-
|
15
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: mocha
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.4.
|
136
|
+
rubygems_version: 2.4.8
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: OpenStack Ruby API
|