tito 0.2.3 → 0.2.4

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: 35c4cb1b802ab4e33d3e6c5e6256e714468fa7f2
4
- data.tar.gz: adba0892e62914487e3b23a0cfc78de67d2d0689
3
+ metadata.gz: 951e7497f3bb75bb4935545973a726aea1177571
4
+ data.tar.gz: 50397ffa8134c5c8c889a35a13e8051d35637122
5
5
  SHA512:
6
- metadata.gz: 22afa0b21556c75d3c45aff74a3a86e2ef3667501df9f8f7463c05d71c532c3dcb1f286d02a5e4b8fa1e30c915d7ea7928db5e06799ab90933c949cb8979d81d
7
- data.tar.gz: d1a056bf8deea19d94c498e78c678f3286d0e2a062704db3c8e7872a3af503a44abaa3b183ca098d4b857ed074242f0ab60a5a950c99779f9b0b899aa2c43825
6
+ metadata.gz: 527f25419a39e196d6d024c305618c81b8c671a90c0b2bb22d21ad1c6e908b7a5ca3801689ff02d649c9ef5f6be9020dd9e25649ae6a8ebf277ca1f70985766f
7
+ data.tar.gz: f574c42b120e03130c46f06088cec30014303d470d59bcce81256f87a9eb1807801b8acacf33cc469d009c2a12955437d10abd47cfec2ad0484dbe21467c1be1
@@ -63,7 +63,8 @@ module Tito
63
63
  end
64
64
 
65
65
  def self.get(path, params = {})
66
- new http.get(get_url(path), params: params, ssl_context: ssl_context).parse[resource_name]
66
+ api_key = params.delete(:api_key)
67
+ new http(api_key: api_key).get(get_url(path), params: params, ssl_context: ssl_context).parse[resource_name]
67
68
  end
68
69
 
69
70
  def self.all_path(path_prefix: nil)
@@ -10,8 +10,8 @@ module Tito
10
10
  @api_key = api_key
11
11
  end
12
12
 
13
- def get
14
- proxy_class.get(path_prefix: proxy_path, api_key: api_key)
13
+ def get(path, params = {})
14
+ proxy_class.get(path, params.merge(api_key: api_key))
15
15
  end
16
16
 
17
17
  def all
@@ -1,3 +1,3 @@
1
1
  module Tito
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Campbell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http