promoted-ruby-client 2.0.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/dev.md +1 -1
- data/lib/promoted/ruby/client/request_builder.rb +1 -1
- data/lib/promoted/ruby/client/validator.rb +1 -1
- data/lib/promoted/ruby/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffd08d1b6e14b721172d2e30680541f1d087d14f7cdfe63dc96b60ada84b5b1a
|
4
|
+
data.tar.gz: d21fa553ef8e746c642605bb2de051d4bdc9901b5837c1db6f1ca11fe358fa98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf16053b5bef1560caf7e9a5eaf01b62dd4484d40069801310d4cc8b7eb0fdce91eb072ee4c8a1146188b5fc74a168b2769623379dfd8df2a9f493d1e214a012
|
7
|
+
data.tar.gz: f814b279bd1585402a381e8269c9c4664964381702fb5fb597845990ace9e56fdb5b8e0d24d8b2d4f3373523f764798092bcb5c324f2ca90d173b4008035993f
|
data/README.md
CHANGED
@@ -63,7 +63,7 @@ Basic information about the request user.
|
|
63
63
|
Field Name | Type | Optional? | Description
|
64
64
|
---------- | ---- | --------- | -----------
|
65
65
|
```:user_id``` | String | Yes | The platform user id, cleared from Promoted logs.
|
66
|
-
```:
|
66
|
+
```:anon_user_id``` | String | Yes | A different user id (presumably a UUID) disconnected from the platform user id, good for working with unauthenticated users or implementing right-to-be-forgotten.
|
67
67
|
```:is_internal_user``` | Boolean | Yes | If this user is a test user or not, defaults to false.
|
68
68
|
|
69
69
|
---
|
@@ -270,7 +270,7 @@ insertions = products.map { |product|
|
|
270
270
|
# Form a MetricsRequest
|
271
271
|
metrics_request = {
|
272
272
|
:request => {
|
273
|
-
:user_info => { :user_id => "912", :
|
273
|
+
:user_info => { :user_id => "912", :anon_user_id => "912191"},
|
274
274
|
:use_case => "FEED",
|
275
275
|
:paging => {
|
276
276
|
:offset => 0,
|
@@ -306,7 +306,7 @@ client.send_log_request(client_response[:log_request]) if client_response[:log_r
|
|
306
306
|
# Form a DeliveryRequest
|
307
307
|
delivery_request = {
|
308
308
|
:request => {
|
309
|
-
:user_info => { :user_id => "912", :
|
309
|
+
:user_info => { :user_id => "912", :anon_user_id => "912191"},
|
310
310
|
:use_case => "FEED",
|
311
311
|
:paging => {
|
312
312
|
:offset => 0,
|
data/dev.md
CHANGED
@@ -10,5 +10,5 @@ bundle exec rspec
|
|
10
10
|
2. Get credentials for deployment from 1password.
|
11
11
|
3. Modify `promoted-ruby-client.gemspec`'s push block.
|
12
12
|
4. Run `gem build promoted-ruby-client.gemspec` to generate `gem`.
|
13
|
-
5. Run (using new output) `gem push promoted-ruby-client-
|
13
|
+
5. Run (using new output) `gem push promoted-ruby-client-3.0.0.gem`
|
14
14
|
6. Update README with new version.
|
@@ -27,7 +27,7 @@ module Promoted
|
|
27
27
|
@view_id = request[:view_id]
|
28
28
|
@use_case = Promoted::Ruby::Client::USE_CASES[request[:use_case]] || Promoted::Ruby::Client::USE_CASES['UNKNOWN_USE_CASE']
|
29
29
|
@insertion = request[:insertion] || []
|
30
|
-
@user_info = request[:user_info] || { :user_id => nil, :
|
30
|
+
@user_info = request[:user_info] || { :user_id => nil, :anon_user_id => nil}
|
31
31
|
@timing = request[:timing] || { :client_log_timestamp => (Time.now.to_f * 1000).to_i }
|
32
32
|
|
33
33
|
# If the user didn't create a client request id, we do it for them.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: promoted-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- scottmcmaster
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|