fog-softlayer 0.3.22 → 0.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDRjMGMzNTJlOWViMmI4OWYyNDEzZmYzNjFjNmEzYWE4OTQ1ZjZlYw==
4
+ MzcxZGUzMTQwNmEzZTIyOGY2Zjk1YjI4ODQ2NjBkODU1OGFhYzE2Mw==
5
5
  data.tar.gz: !binary |-
6
- NWRhODgwN2M5MjliZGUzODNjOTRkZTNhZWE2YzkxYTQ0ODFmOTYxNA==
6
+ MjljOTY0ZmVmNzBkMzY5ZmFhZWRjYTA1MTIwMWQzM2UyNDQzYmI5YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjZmOTE2YjQyYjdhNjk5NDA0NWFlMDMxYjgxNzJhZTQ1NDIyYTUxZTkxOGI0
10
- NWMzZGE2MmQ4ZWE1NjViNDNiMTM2MjE3YzRiMGIzYTYwNjgzODU3NjkyOTRm
11
- NDVmZmI3Njc2MzZlZTgzZjEwNWNmNWRlNTg2MDZjOGExZWQyNzQ=
9
+ NzRmZDc3YWU0MzUxMDkxMmU0OTIyNWNmNzEzZDkwMDRhYjA1ZTNlMjVmMmMx
10
+ ZGI5ZWE3NjhmMjY4Y2YxYWRkNWY2MjZkOGM3MWE2YmQ5NGIyMmUyNTZlNGU3
11
+ NTFkNWMyMWJmZjc4YjgyNzA2NGViZDdjMTc4MmY4NGMwYWY4NmE=
12
12
  data.tar.gz: !binary |-
13
- MzNiZjk5N2U5NTYwYzAzNGMwNTAwYWYwYmRlN2NhZGYyMTdkZjYyYzdiZmYy
14
- YjhjMWVjOTM2ZjljOGFjMmM5NDQyNDI5NGI0Y2E4MWRiZmRiY2E0ZDQwZWYz
15
- YWUxYjU2MDA1YTEzZGFiNjM5MTJlMzFiMjA4MDkxZmJkM2VlYWY=
13
+ MjJkZTM2ODM3NjYzNjIxOWFkOTI3OGQzODliY2Q0OTg5Y2IxMjNmNjU4ZjU0
14
+ ODc1OGU3ZjY1MTc4YzM1ZDM4NWYwYzhiNjVmYzhkOWFkYThjMTczOGU0MmRm
15
+ MjJmMjZkNDEyM2M2ZWUxYTFkN2NjZmQ2ZWQwMzljYWRhOTk4YTc=
data/CONTRIBUTORS.md CHANGED
@@ -2,4 +2,5 @@
2
2
  * Hiroyuki Urasoko <ura.58.58@gmail.com>
3
3
  * Konstantin Krauss <konstantin@propertybase.com>
4
4
  * Matt Eldridge <matt.eldridge@us.ibm.com>
5
+ * Paulo Henrique Lopes Ribeiro <plribeiro3000@gmail.com>
5
6
  * geemus <geemus@gmail.com>
@@ -148,8 +148,8 @@ module Fog
148
148
 
149
149
  output[:path] = params[:path] ? "#{@path}/#{params.delete(:path)}".sub(/\/$/, '') : @path
150
150
 
151
- output = output.deep_merge(params)
152
- output.deep_merge(_headers)
151
+ output = output.deep_merge(_headers)
152
+ output.deep_merge(params)
153
153
  end
154
154
 
155
155
  def _headers
@@ -7,6 +7,6 @@
7
7
 
8
8
  module Fog
9
9
  module Softlayer
10
- VERSION = "0.3.22"
10
+ VERSION = "0.3.23"
11
11
  end
12
12
  end
@@ -0,0 +1,27 @@
1
+ #
2
+ # Author:: Paulo Henrique Lopes Ribeiro (<plribeiro3000@gmail.com>)
3
+ # © Copyright IBM Corporation 2014.
4
+ #
5
+ # LICENSE: MIT (http://opensource.org/licenses/MIT)
6
+ #
7
+
8
+ Shindo.tests('Fog::Storage[:softlayer]', ['softlayer']) do
9
+ tests('#_build_params') do
10
+ tests('sending image/png files') do
11
+ mocking = Fog.mocking?
12
+ Fog.unmock!
13
+ # Stubs Real Connection
14
+ class Fog::Storage::Softlayer::Real
15
+ def initialize(_options = {});end
16
+ end
17
+ @service = Fog::Storage::Softlayer.new(softlayer_username: 'name',
18
+ softlayer_api_key: 'key',
19
+ softlayer_cluster: 'cluster',
20
+ softlayer_storage_account: 'account')
21
+ # Testing header setup
22
+ header = @service.send(:_build_params, { :headers => { 'Content-Type' => 'image/png' }})
23
+ returns('image/png', 'properly sets the header') { header[:headers]['Content-Type'] }
24
+ Fog.mock! if mocking
25
+ end
26
+ end
27
+ 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.22
4
+ version: 0.3.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Eldridge
@@ -359,6 +359,7 @@ files:
359
359
  - tests/softlayer/requests/storage/auth_tests.rb
360
360
  - tests/softlayer/requests/storage/container_tests.rb
361
361
  - tests/softlayer/requests/storage/object_tests.rb
362
+ - tests/softlayer/storage_tests.rb
362
363
  homepage: https://github.com/fog/fog-softlayer
363
364
  licenses:
364
365
  - MIT