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 +8 -8
- data/CONTRIBUTORS.md +1 -0
- data/lib/fog/softlayer/storage.rb +2 -2
- data/lib/fog/softlayer/version.rb +1 -1
- data/tests/softlayer/storage_tests.rb +27 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzcxZGUzMTQwNmEzZTIyOGY2Zjk1YjI4ODQ2NjBkODU1OGFhYzE2Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjljOTY0ZmVmNzBkMzY5ZmFhZWRjYTA1MTIwMWQzM2UyNDQzYmI5YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzRmZDc3YWU0MzUxMDkxMmU0OTIyNWNmNzEzZDkwMDRhYjA1ZTNlMjVmMmMx
|
10
|
+
ZGI5ZWE3NjhmMjY4Y2YxYWRkNWY2MjZkOGM3MWE2YmQ5NGIyMmUyNTZlNGU3
|
11
|
+
NTFkNWMyMWJmZjc4YjgyNzA2NGViZDdjMTc4MmY4NGMwYWY4NmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjJkZTM2ODM3NjYzNjIxOWFkOTI3OGQzODliY2Q0OTg5Y2IxMjNmNjU4ZjU0
|
14
|
+
ODc1OGU3ZjY1MTc4YzM1ZDM4NWYwYzhiNjVmYzhkOWFkYThjMTczOGU0MmRm
|
15
|
+
MjJmMjZkNDEyM2M2ZWUxYTFkN2NjZmQ2ZWQwMzljYWRhOTk4YTc=
|
data/CONTRIBUTORS.md
CHANGED
@@ -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(
|
152
|
-
output.deep_merge(
|
151
|
+
output = output.deep_merge(_headers)
|
152
|
+
output.deep_merge(params)
|
153
153
|
end
|
154
154
|
|
155
155
|
def _headers
|
@@ -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.
|
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
|