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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8d4725bdea1f686ef8317a7107bd6c4a72e09d6
4
- data.tar.gz: 8493b231b024297a3d96671c6d20521c3379f979
3
+ metadata.gz: 7e18f8e3b190eb03c611925bebdd4640578b7a88
4
+ data.tar.gz: 433c609d9f5f12d32a83b655f6a21387240b7102
5
5
  SHA512:
6
- metadata.gz: 06049c7a18f0695b55a479bbab6a8955822d5bb84766da5093e76c7b33c1d14200a1b234f4dded97fc7b9b93ec22308e2868b9578ae5b6417f7d2c4471a5234b
7
- data.tar.gz: fa30d8cbd24b7356d0c756c4670f235fb650ed17d5c723e0cb26ad01fd0faf5db3318e8fb7cfcedf30448f575e7c3026405ac0cb0793ac2f8dfb367a1019dc71
6
+ metadata.gz: f9ad0108d4eabe81e898927471089755613b09f5cc7f11c25e41e94ae7bfc0b9ee1e20950361ddb6dbd65e51bc1de208a73666cfda2bf8c8228a26510d4d20c8
7
+ data.tar.gz: e5b05a18a5f0cca689241764acb49f6e4d17d6de63d6ae0cd68d2a23c2c3912325917a9a5ecf8f5156f2cfc09ab150e8a8195ae24b061809442dbf5149323244
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
@@ -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.refresh.email
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
@@ -1,3 +1,3 @@
1
1
  module Round
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
3
3
  end
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.3
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-23 00:00:00.000000000 Z
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