synapse_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: f21bcf5c27d77bbce0de8ff90c6f38d2008783e9
4
- data.tar.gz: 45c9c5e8cd71e78a6450f72054b7730b7376d091
3
+ metadata.gz: 81c43fbd4dcf5abc9d1c1d3476ba43c156af5eab
4
+ data.tar.gz: 0b6ed066ae241f0e9b43d51c7d705ed64ad946fb
5
5
  SHA512:
6
- metadata.gz: b0f42c93db567a78057de43beecf4540bb594fcac7eebc0ad74fd70ac405eafb655488f9cbe2541accef5379fa38825fbd0c567b99a059c07dc7d5690081cfe0
7
- data.tar.gz: f6158b02ca4d75d3b9a41ae0cd0221d3ac840e6b865ee190667787a5fb4e365fc1f80f55030862eef13180743518c720f2d067ec8ce6261e6753df028c03fce1
6
+ metadata.gz: a47136d71b133f806ca4c17fedc152bb01fae2d8d26731d682dfeef4f2c326558359d6479bea68672261bd3228c79135383e8d8e2810c0d8a5a962deeccf8406
7
+ data.tar.gz: 5ed034d4f599f0d06f4fb13140ff23262f1eb07dd7dc9c84617724171317844bf2b1bf19f13ccd72e08eee737f785185b952dcfe7945718faa95355d65f54c92
@@ -136,7 +136,7 @@ module SynapseClient
136
136
  private
137
137
  def update_attributes(data)
138
138
  @id = data.user_id
139
- @access_token = data.access_token
139
+ @access_token = data.access_token rescue data.oauth_consumer_key
140
140
  @refresh_token = data.refresh_token
141
141
  @expires_in = data.expires_in
142
142
  @username = data.username
@@ -1,3 +1,3 @@
1
1
  module SynapseClient
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -22,7 +22,7 @@ describe SynapseClient::Customer do
22
22
  expect(@customer.id).to be_a Fixnum
23
23
  expect(@customer.access_token).to be_a String
24
24
  expect(@customer.refresh_token).to be_a String
25
- expect(@customer.expires_in).to be_a Fixnum
25
+ expect(@customer.expires_in).to be_a String
26
26
  expect(@customer.username).to be_a String
27
27
  end
28
28
 
@@ -42,7 +42,7 @@ describe SynapseClient::Customer do
42
42
  expect(@customer.id).to be_a Fixnum
43
43
  expect(@customer_dup.access_token).to be_a String
44
44
  expect(@customer_dup.refresh_token).to be_a String
45
- expect(@customer_dup.expires_in).to be_a Fixnum
45
+ expect(@customer_dup.expires_in).to be_a String
46
46
  expect(@customer_dup.username).to be_a String
47
47
  end
48
48
  end
@@ -77,7 +77,7 @@ describe SynapseClient::Customer do
77
77
 
78
78
  expect(response.access_token).to be_a String
79
79
  expect(response.refresh_token).to be_a String
80
- expect(response.expires_in).to be_a Fixnum
80
+ expect(response.expires_in).to be_a String
81
81
 
82
82
  expect(response.access_token).not_to be eq(old_access_token)
83
83
  expect(response.refresh_token).not_to be eq(old_refresh_token)
@@ -93,7 +93,7 @@ describe SynapseClient::Customer do
93
93
 
94
94
  expect(customer.access_token).to be_a String
95
95
  expect(customer.refresh_token).to be_a String
96
- expect(customer.expires_in).to be_a Fixnum
96
+ expect(customer.expires_in).to be_a String
97
97
 
98
98
  expect(customer.access_token).not_to be eq(old_access_token)
99
99
  expect(customer.refresh_token).not_to be eq(old_refresh_token)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse_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
  - Miles Matthias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
11
+ date: 2015-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client