round 0.8.3 → 0.8.4
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/round/client.rb +4 -4
- data/lib/round/user.rb +7 -2
- data/lib/round/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7e18f8e3b190eb03c611925bebdd4640578b7a88
|
|
4
|
+
data.tar.gz: 433c609d9f5f12d32a83b655f6a21387240b7102
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9ad0108d4eabe81e898927471089755613b09f5cc7f11c25e41e94ae7bfc0b9ee1e20950361ddb6dbd65e51bc1de208a73666cfda2bf8c8228a26510d4d20c8
|
|
7
|
+
data.tar.gz: e5b05a18a5f0cca689241764acb49f6e4d17d6de63d6ae0cd68d2a23c2c3912325917a9a5ecf8f5156f2cfc09ab150e8a8195ae24b061809442dbf5149323244
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/round/client.rb
CHANGED
|
@@ -22,7 +22,7 @@ module Round
|
|
|
22
22
|
def authenticate_application(api_token:, admin_token:)
|
|
23
23
|
@patchboard_client
|
|
24
24
|
.context
|
|
25
|
-
.authorize(Context::Scheme::APPLICATION,
|
|
25
|
+
.authorize(Context::Scheme::APPLICATION,
|
|
26
26
|
api_token: api_token, admin_token: admin_token)
|
|
27
27
|
authenticate_identify(api_token: api_token)
|
|
28
28
|
|
|
@@ -42,11 +42,11 @@ module Round
|
|
|
42
42
|
def authenticate_device(email:, api_token:, device_token:)
|
|
43
43
|
@patchboard_client
|
|
44
44
|
.context
|
|
45
|
-
.authorize(Context::Scheme::DEVICE,
|
|
45
|
+
.authorize(Context::Scheme::DEVICE,
|
|
46
46
|
api_token: api_token, device_token: device_token)
|
|
47
47
|
@patchboard_client
|
|
48
48
|
.context
|
|
49
|
-
.authorize(Context::Scheme::IDENTIFY,
|
|
49
|
+
.authorize(Context::Scheme::IDENTIFY,
|
|
50
50
|
api_token: api_token)
|
|
51
51
|
self.user(email).refresh
|
|
52
52
|
end
|
|
@@ -64,7 +64,7 @@ module Round
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def user(email)
|
|
67
|
-
User.new(resource: resources.user_query(email: email), client: self)
|
|
67
|
+
User.new(resource: resources.user_query(email: email), client: self, email: email)
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
class Context
|
data/lib/round/user.rb
CHANGED
|
@@ -6,16 +6,21 @@ module Round
|
|
|
6
6
|
'email'
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
+
def initialize(resource:, client:, **kwargs)
|
|
10
|
+
super
|
|
11
|
+
@resource.attributes.merge! kwargs
|
|
12
|
+
end
|
|
13
|
+
|
|
9
14
|
def devices
|
|
10
15
|
resource = @client.resources.devices_query(
|
|
11
|
-
email: self.
|
|
16
|
+
email: self.email
|
|
12
17
|
)
|
|
13
18
|
Round::DeviceCollection.new(
|
|
14
19
|
resource: resource,
|
|
15
20
|
client: @client
|
|
16
21
|
)
|
|
17
22
|
end
|
|
18
|
-
|
|
23
|
+
|
|
19
24
|
def wallet
|
|
20
25
|
default_wallet
|
|
21
26
|
end
|
data/lib/round/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: round
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthew King
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
tdc4VS7IlSRxlZ3dBOgiigy9GXpJ+7F831AqjxL39EPwdr7RguTNz+pi//RKaT/U
|
|
32
32
|
IlpVB+Xfk0vQdP7iYfjGxDzUf0FACMjsR95waJmadKW1Iy6STw2hwPhYIQz1Hu1A
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-07-
|
|
34
|
+
date: 2015-07-24 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: patchboard
|
metadata.gz.sig
CHANGED
|
Binary file
|