trophy_api_client 1.0.13 → 1.0.14

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
  SHA256:
3
- metadata.gz: ae270f201bb634d2b667a263aaec23c186e6f50d1f03cfbf4cf5a6cda57fab4a
4
- data.tar.gz: eb947bbd65c3241cd686c6c9e7840e3e1607b2895a428ff2687bfc60b66d2718
3
+ metadata.gz: 8366072c3be65aa0e4fa350f5d0b0313f9d38e1d907cb59f63982b3da33f7700
4
+ data.tar.gz: ec64eee7eb6cd567cdbc765933a6ca983cdbdb82179b53390cde72627988e91d
5
5
  SHA512:
6
- metadata.gz: 94d63223fd90452a552ea85ef1422fdb0405c8cbb5919b0ff7b07fdc678a56045884c6e977af2c804c3587c1a5abd67e4c6ef7754de96869e1fd1646d626e8fc
7
- data.tar.gz: 82959fe745e88392886c27581412814789a71a25a3d23696b8c89a5a1d089387ca6ebc50c0daafe3279a1be1d10391b3db9152faac929655141184aa20ec6254
6
+ metadata.gz: f7049e227b0c5609be15587e82dd7c76ea4e4b3075eb6a94ba70b24eeb640a4ae0e1210d00bc58cc251f82334d8c2e8cbc7a31f03375b7f1195daf303c0007f2
7
+ data.tar.gz: '036865ebf9e563fb0feb20af8b457a732a9667a22521b6d0f757cf16a7f929b307f336b74c458a97f28a65b83b035e5ced77a00230b69fe76a97eef2b1d47b75'
data/lib/gemconfig.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  module TrophyApiClient
4
4
  module Gemconfig
5
- VERSION = "1.0.13"
5
+ VERSION = "1.0.14"
6
6
  AUTHORS = ["Trophy Labs, Inc"].freeze
7
7
  EMAIL = ""
8
8
  SUMMARY = "Ruby library for the Trophy API."
@@ -26,7 +26,7 @@ module TrophyApiClient
26
26
  @request_client = request_client
27
27
  end
28
28
 
29
- # Identify a new user.
29
+ # Create a new user.
30
30
  #
31
31
  # @param request [Hash] The user object.Request of type TrophyApiClient::UpsertedUser, as a Hash
32
32
  # * :id (String)
@@ -93,9 +93,9 @@ module TrophyApiClient
93
93
  TrophyApiClient::User.from_json(json_object: response.body)
94
94
  end
95
95
 
96
- # Upsert a user (create or update).
96
+ # Identify a user.
97
97
  #
98
- # @param id [String] ID of the user to upsert.
98
+ # @param id [String] ID of the user to identify.
99
99
  # @param request [Hash] The user object.Request of type TrophyApiClient::UpdatedUser, as a Hash
100
100
  # * :email (String)
101
101
  # * :name (String)
@@ -109,8 +109,8 @@ module TrophyApiClient
109
109
  # environment: TrophyApiClient::Environment::DEFAULT,
110
110
  # api_key: "YOUR_API_KEY"
111
111
  # )
112
- # api.users.upsert(id: "id", request: { email: "user@example.com", tz: "Europe/London" })
113
- def upsert(id:, request:, request_options: nil)
112
+ # api.users.identify(id: "id", request: { email: "user@example.com", tz: "Europe/London" })
113
+ def identify(id:, request:, request_options: nil)
114
114
  response = @request_client.conn.put do |req|
115
115
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
116
116
  req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
@@ -445,7 +445,7 @@ module TrophyApiClient
445
445
  @request_client = request_client
446
446
  end
447
447
 
448
- # Identify a new user.
448
+ # Create a new user.
449
449
  #
450
450
  # @param request [Hash] The user object.Request of type TrophyApiClient::UpsertedUser, as a Hash
451
451
  # * :id (String)
@@ -516,9 +516,9 @@ module TrophyApiClient
516
516
  end
517
517
  end
518
518
 
519
- # Upsert a user (create or update).
519
+ # Identify a user.
520
520
  #
521
- # @param id [String] ID of the user to upsert.
521
+ # @param id [String] ID of the user to identify.
522
522
  # @param request [Hash] The user object.Request of type TrophyApiClient::UpdatedUser, as a Hash
523
523
  # * :email (String)
524
524
  # * :name (String)
@@ -532,8 +532,8 @@ module TrophyApiClient
532
532
  # environment: TrophyApiClient::Environment::DEFAULT,
533
533
  # api_key: "YOUR_API_KEY"
534
534
  # )
535
- # api.users.upsert(id: "id", request: { email: "user@example.com", tz: "Europe/London" })
536
- def upsert(id:, request:, request_options: nil)
535
+ # api.users.identify(id: "id", request: { email: "user@example.com", tz: "Europe/London" })
536
+ def identify(id:, request:, request_options: nil)
537
537
  Async do
538
538
  response = @request_client.conn.put do |req|
539
539
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -1,3 +1,3 @@
1
1
  module MyGem
2
- VERSION = "1.0.13"
2
+ VERSION = "1.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trophy_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trophy Labs, Inc