fog-ecloud 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ec8e33430c2f7d0e58e5f35e129e0299c535e71
4
- data.tar.gz: 04fe961db178cc2ea233cc763e2e04fdfc7ab866
3
+ metadata.gz: 459d2651c0917b467a2109cc810310357389222d
4
+ data.tar.gz: f5acec7647a8e21e9f6673ca50b2c32d4692db7d
5
5
  SHA512:
6
- metadata.gz: 9c960b0135d9e5a89fb2bbe8217ff72f21e9017f9c6f0ce28c83a13febbbae67eaca6d1ae12398e0aebdc99256ecb6ff05a9a2729f9394815311f428e204441b
7
- data.tar.gz: 7f35e38111a6b82c25e5c950f91ddfb42b4dff4b59d63612262e440f457e2e88b120d69aeea534bdd5d4cd02cc545aabfcd81ab6496390bfc0827b7caef211bc
6
+ metadata.gz: 881243ebcd9138ec3cd4bd8c1caf94411cef534e27780459b15b93c95e6d8e402298dca795d8896885729dbb3e2ad10849f077fb1afa43b989d676edcb762bae
7
+ data.tar.gz: ddf645d726fc3d5539a4da82c203718ada9d2d8d436c466cf7ce0ca79aab13e35b58c65d9c4a2a2521b8b67d0bebd40aae753ce00067a2f04a518ec2f9deec12
@@ -289,8 +289,8 @@ module Fog
289
289
  @persistent = options[:persistent] || false
290
290
  @version = options[:ecloud_version] || "2013-06-01"
291
291
  @authentication_method = options[:ecloud_authentication_method] || :cloud_api_auth
292
- @access_key = options[:ecloud_access_key].to_s
293
- @private_key = options[:ecloud_private_key].to_s
292
+ @access_key = options[:ecloud_access_key]
293
+ @private_key = options[:ecloud_private_key]
294
294
  if @private_key.nil? || @authentication_method == :basic_auth
295
295
  @authentication_method = :basic_auth
296
296
  @username = options[:ecloud_username]
@@ -299,6 +299,11 @@ module Fog
299
299
  raise ArgumentError, "No credentials (cloud auth, or basic auth) passed!"
300
300
  end
301
301
  else
302
+ if @access_key.nil?
303
+ raise ArgumentError, "Incomplete cloud auth credentials supplied!"
304
+ end
305
+ @private_key = @private_key.to_s
306
+ @access_key = @access_key.to_s
302
307
  @hmac = Fog::HMAC.new("sha256", @private_key)
303
308
  end
304
309
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Ecloud
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-ecloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Henrique Lopes Ribeiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-09 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core