synapse_client 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/synapse_client/customer.rb +1 -1
- data/lib/synapse_client/version.rb +1 -1
- data/spec/synapse_client_customer_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 81c43fbd4dcf5abc9d1c1d3476ba43c156af5eab
|
|
4
|
+
data.tar.gz: 0b6ed066ae241f0e9b43d51c7d705ed64ad946fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2015-06-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|