promoted-ruby-client 2.0.2 → 3.0.0

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: 11ce5ae07d4a391a8e052befa249acf77a5e1c2b8bd27af1cc5abb24d011551f
4
- data.tar.gz: b2526b7a4b3f2940283c27930a85bcd8e9b469e63c3276271e1ef1d9ffafb096
3
+ metadata.gz: ffd08d1b6e14b721172d2e30680541f1d087d14f7cdfe63dc96b60ada84b5b1a
4
+ data.tar.gz: d21fa553ef8e746c642605bb2de051d4bdc9901b5837c1db6f1ca11fe358fa98
5
5
  SHA512:
6
- metadata.gz: ca464c620e04043e7998bc12d9792931fd220b00d8fcfc9a777149a27c6b5b42710409ce48bf43787da346743837f6934df11ce56070bb725ba021c6de1c1908
7
- data.tar.gz: 0c3a880b7aa8b8b16523cbe60f75af5ef89849ce5de16a7d19a907aad1429e27a873136d95194fa3b21c4fdc01b663087000e10ae05cb713b638f7b8cbb980b0
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
- ```:log_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.
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", :log_user_id => "912191"},
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", :log_user_id => "912191"},
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-2.0.2.gem`
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, :log_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.
@@ -12,7 +12,7 @@ module Promoted
12
12
  :type => String
13
13
  },
14
14
  {
15
- :name => :log_user_id,
15
+ :name => :anon_user_id,
16
16
  :type => String
17
17
  },
18
18
  {
@@ -1,7 +1,7 @@
1
1
  module Promoted
2
2
  module Ruby
3
3
  module Client
4
- VERSION = "2.0.2"
4
+ VERSION = "3.0.0"
5
5
  SERVER_VERSION = "rb." + VERSION
6
6
  end
7
7
  end
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: 2.0.2
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-06-30 00:00:00.000000000 Z
11
+ date: 2023-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday