linodeapi 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linodeapi/raw.rb +2 -2
- data/linodeapi.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f4d618f5198d23fdcde3f61a652aa5ca031cc52
|
4
|
+
data.tar.gz: c17c1da4cb9c5a5ee45ca8934064db5cf960983d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f825be5231e017f6c1ee890d976c8a93908bb529171a76bbfeb096acc1323db57813523e89708f419654fab4ad0e057df033d583a136fb5237f83fe2d87d395
|
7
|
+
data.tar.gz: e03462cbca20022c91b415e8be92cb19ffe021f1b11d56ca790652b83a31e92baa57699ca46c487d786a3a041661be84a5576c991aacb5d73d6c616e4d05372c
|
data/lib/linodeapi/raw.rb
CHANGED
@@ -15,7 +15,7 @@ module LinodeAPI
|
|
15
15
|
self.class.base_uri params.fetch(:endpoint, DEFAULT_ENDPOINT)
|
16
16
|
@names = params.fetch(:names) { [] }
|
17
17
|
@spec = params.fetch(:spec) { LinodeAPI.spec }
|
18
|
-
@apikey = params.fetch(:apikey) { authenticate(params)
|
18
|
+
@apikey = params.fetch(:apikey) { authenticate(params) }
|
19
19
|
end
|
20
20
|
|
21
21
|
def respond_to?(method, include_private = false)
|
@@ -34,7 +34,7 @@ module LinodeAPI
|
|
34
34
|
unless (params.values_at :username, :password).all?
|
35
35
|
fail ArgumentError, 'You must provide either an API key or user/pass'
|
36
36
|
end
|
37
|
-
user.getapikey(params).
|
37
|
+
user.getapikey(params).api_key
|
38
38
|
end
|
39
39
|
|
40
40
|
def method_missing(method, *args, &block)
|
data/linodeapi.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linodeapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|