panoptes-client 0.2.0 → 0.2.1

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: 17d69c6ab0b817b8209baabb9f6a6b49c16bed87
4
- data.tar.gz: e5a76b94566fa5d192de12bd561c7185e42df147
3
+ metadata.gz: 717325a4ffbf4a7add1c22245be7fccbc8596d3c
4
+ data.tar.gz: 78b4f088dd3e324300b5a4f1795e36e32c4a60b5
5
5
  SHA512:
6
- metadata.gz: 839985a07133691668eadfd52c4ab6093dec2f64558d2d1b144b7d119dc249eded91d0246e95a261043fe617533539a83c47c5283350f3b2b83e922ba640505b
7
- data.tar.gz: a19c99d25899d15b059cd887f4fa54388c578f6191011601467b7de5530df0dc32c9641b27c261953ea8ceb272d7105d5178749ef99f6a4a494f1c09537d7d63
6
+ metadata.gz: ac3d2005a05fc8825ab9a23813edfdd19fd12c7bb7f952a42d1d5980eabac7bb2405416a37141babc9522a0c232b77e01e835af6e344844db5eaece777c3dd01
7
+ data.tar.gz: 0c61ec6c31d831c30417ecb64ca1a89bf5cc0de803a728cd2316e70a786fd54874f6afc4859fb39aa248a3dc5a6f3a842a7a9658e253a65b311806475e49cdab
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.2.1
2
+
3
+ * Fix bug with token authentication
4
+
1
5
  # 0.2.0
2
6
 
3
7
  * Raise errors on certain server response statuses.
@@ -31,7 +31,7 @@ module Panoptes
31
31
  @conn = Faraday.new(url: url) do |faraday|
32
32
  case
33
33
  when auth[:token]
34
- faraday.request :panoptes_access_token, url: url, access_token: token
34
+ faraday.request :panoptes_access_token, url: url, access_token: auth[:token]
35
35
  when auth[:client_id] && auth[:client_secret]
36
36
  faraday.request :panoptes_client_credentials, url: url, client_id: auth[:client_id], client_secret: auth[:client_secret]
37
37
  end
@@ -1,5 +1,5 @@
1
1
  module Panoptes
2
2
  class Client
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panoptes-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-28 00:00:00.000000000 Z
11
+ date: 2016-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday