fog-softlayer 0.3.17 → 0.3.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2E4YWU0MGJjNzIyNWE2MDA2YWZiMmZmODAwYzBmYmFiN2IxNWIyMA==
4
+ MmUyMjNkNzQwZTQ4ZmQzODlkMTk3OTA0NmViMGFjZjI2ZmI2OTgwZA==
5
5
  data.tar.gz: !binary |-
6
- ZGRjMWUwMTNjZjljOTNkYmZjMDRmN2I2M2VkMzQwM2ZmODIzYjRkNQ==
6
+ ZTFhMjRkYmQwNzIyODhjMjNjMGM5N2RlMmQ3ZTQwMmEyMTZiYTg5Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODdmYWFmYzYzYTMwMjYyNDk4NTY2MGM0NmU1ZGY5MzFmZjAwODFkNTBiZjE5
10
- YzIxYTFhMWU5ZGMxYWY0NTk1OTg2NDQzNWE5OGU3ZjhhNjZhNTAwNmNjOTNi
11
- NTk4NWRlZDZkOTc4YTdiNGM5M2JlZDNiZjY5ZjI4Zjc3MTM3ZGI=
9
+ ZjIzYmU4ZjM0ZDgwYzk2ODA5N2NkNzI3OGRhYjY5ZWVhM2FjNWY0ODIzNDIz
10
+ MTNmMThlOTg0NTczNTcxNjg5YmFjMzlhZDA4ZWRlZTc5M2YyNWIxNTVlYWIy
11
+ MDYxZmJkZjQxMTRlMzEwNTM0YWMwOGUxNjJkY2ZmNDE3OGFlZmE=
12
12
  data.tar.gz: !binary |-
13
- ZmVjNTk1MTcyNjRkZTliZmU2ZWI2MzQ4OTA4Y2RiM2I3ODQ2OWI4MGUyOTlm
14
- MDEwZjU5MTQ3ZDFmMjg2YzY5MDZjMWJmOTZhZDFkZjBhZjQ2NDQxNmQyOTA3
15
- MTM1OGI0YTI3YzY0NGQzODA2ZGFiNDhiYzVkYTlkZTcwYTU2ZWM=
13
+ NjhkOTY2ZWJhZDk4YzEzYmFmMzg4NjU2Yzg2NWQzOTc0Y2Y3ZmI5Y2FiMzFh
14
+ OWFkZjk2ZWY1MTcxM2IwMDhkNjlmZTczZGNiMGIzNzUwYWViYjRlOTNhYjQw
15
+ OWUyODUxMTU0ZDNiYjcxMDM0M2JhMGM1NTFjZWU0YzI4MzQ2MjI=
@@ -49,7 +49,17 @@ module Fog
49
49
  params = { :headers => user_agent_header }
50
50
  params[:headers]['Content-Type'] = 'application/json'
51
51
  params[:expects] = options[:expected] || [200,201]
52
- params[:body] = Fog::JSON.encode({:parameters => [ options[:body] ]}) unless options[:body].nil?
52
+
53
+ if options[:body].respond_to?(:each)
54
+ body = []
55
+ options[:body].each do |item|
56
+ body.push(item)
57
+ end
58
+ else
59
+ body = options[:body]
60
+ end
61
+
62
+ params[:body] = Fog::JSON.encode({:parameters => body}) unless options[:body].nil?
53
63
  params[:query] = options[:query] unless options[:query].nil?
54
64
 
55
65
  # initialize connection object
@@ -7,6 +7,6 @@
7
7
 
8
8
  module Fog
9
9
  module Softlayer
10
- VERSION = "0.3.17"
10
+ VERSION = "0.3.18"
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-softlayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.17
4
+ version: 0.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Eldridge