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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f80a7191be9f26a3cedbd67ebd4f479ffdc9680
4
- data.tar.gz: 6052ad987645189ff4fba5167abfd4003cf553b4
3
+ metadata.gz: 2f4d618f5198d23fdcde3f61a652aa5ca031cc52
4
+ data.tar.gz: c17c1da4cb9c5a5ee45ca8934064db5cf960983d
5
5
  SHA512:
6
- metadata.gz: f1ce70f71ea26de0d1329b9097132e091f0b980f1c3f52fc24878146cd69abb3b664ece4342a1e36ad84676f542f41990c64ed40c3eb8fb390644f8567490c84
7
- data.tar.gz: 1eaca6eeac8dc3e7a30039edc459ef7562ac050185cd7597130730c5d70696859f0529a931cf144438485876661e4085ca356bf35f80ff868c257774bf8f6e10
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).first }
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).values_at :api_key
37
+ user.getapikey(params).api_key
38
38
  end
39
39
 
40
40
  def method_missing(method, *args, &block)
data/linodeapi.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'linodeapi'
3
- s.version = '0.2.1'
3
+ s.version = '0.2.2'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
 
6
6
  s.summary = 'Linode API wrapper'
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.1
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-19 00:00:00.000000000 Z
11
+ date: 2015-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty