algorithmia 0.9.1 → 0.9.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: 51997d6c4b76d0f2060359cf4dc5a71cb3e28ec2
4
- data.tar.gz: 21d9a1ec1575084d58727fde7d164d33766d418b
3
+ metadata.gz: 9f29f782f69aa6b2b2549b5678c3a8e34bdcc0b4
4
+ data.tar.gz: 37c2a3e596703f04a8b85fc92490890082add6f3
5
5
  SHA512:
6
- metadata.gz: e65b7d66bdcfd8dd93cb60848e94ca42a848b9f95ba9e5e2e619ae71f130b71012e9be10ed634783fdc6b0de9cf2aff8fad01270e4523527e039d9bae3a54cce
7
- data.tar.gz: a00e98ac2e55dabc88c1e2edd7ab853123c646fc18e37de428a4c6f07b19437470ef26612d5148df4f8e845d1aa4c45c85b29ebb9f676cd4b369e816862025dc
6
+ metadata.gz: d8d73c75b496e475f76a198cc6c467be646f2c81d759e0343154151c04df450188d80c1785353e423a2fde01b8ad9298aeb107a6764746728ac13be2653b4977
7
+ data.tar.gz: 7976b3d0838cac10b1dec8a284dd61ba31903103a200fd3c218cf12e468943db2f195a31efd4720bfdf75e02550153edce8801c28bf34d26f4cc8311a1122a77
@@ -8,10 +8,12 @@ module Algorithmia
8
8
  self.class.base_uri client.api_address
9
9
  @client = client
10
10
  @default_headers = {
11
- 'Authorization' => @client.api_key || '',
12
11
  'Content-Type' => 'application/json',
13
12
  'User-Agent' => 'Algorithmia Ruby Client'
14
13
  }
14
+ unless @client.api_key.nil?
15
+ @default_headers['Authorization'] = @client.api_key
16
+ end
15
17
  end
16
18
 
17
19
  def get(endpoint, query: {}, headers: {})
@@ -1,3 +1,3 @@
1
1
  module Algorithmia
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algorithmia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algorithmia