promoted-ruby-client 0.1.22 → 0.1.23

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: e4cc088a08f160f3a238022f030e042df9a583fdbe22310b007027a9b908b406
4
- data.tar.gz: 3b9434274cef7986cceea4876170b9061d873bfa533f0047adff546fd1f20d77
3
+ metadata.gz: 280c1b17bece86732743246173338746e1ab9d414b9515bc9fc77c8c598ae319
4
+ data.tar.gz: 1fed11fd16de69732e6f61d1d1e33b31c812151413a34d881b8dd7aace712daa
5
5
  SHA512:
6
- metadata.gz: b9b3a44c22c7bbbb632024b21aa6062253f2cd9e6f3cba73f015eccb1f4fa3a91bfc14cfdabee57a64510ae53a16fe2f01e30f645002b1dc40ea511f8854e54b
7
- data.tar.gz: d20bb330c762ea83cf75246a256a20d250d1d3b0e2b1af7fa7ca8d2f5840671505a10584c2d8c3f30fa040daf7d10bbdcd5859454dd822c7898b711e300257eb
6
+ metadata.gz: 997ca8c047a62a08b2f5e008184719c3e3f1f1dac45cfbccf41c4f451b8fad3f9a8aab7737e148a6281b4a9600e8c2ff6b8bfe9a269aba417ab7bf21f735fcd3
7
+ data.tar.gz: 274d3ce469128a6fa7da5fc127b65e9a3e1cc2327b322af5719182f06a37ada713806458c754d2efed6d6a21ad7ab945890541d5e3d1247844b66fa6b3a77a16
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- promoted-ruby-client (0.1.22)
4
+ promoted-ruby-client (0.1.23)
5
5
  concurrent-ruby (~> 1)
6
6
  faraday (>= 0.9.0)
7
7
  faraday_middleware (>= 0.9.0)
data/dev.md CHANGED
@@ -4,5 +4,5 @@
4
4
  2. Get credentials for deployment from 1password.
5
5
  3. Modify `promoted-ruby-client.gemspec`'s push block.
6
6
  4. Run `gem build promoted-ruby-client.gemspec` to generate `gem`.
7
- 5. Run (using new output) `gem push promoted-ruby-client-0.1.22.gem`
7
+ 5. Run (using new output) `gem push promoted-ruby-client-0.1.23.gem`
8
8
  6. Update README with new version.
@@ -105,7 +105,12 @@ module Promoted
105
105
  user_info: user_info,
106
106
  timing: timing,
107
107
  client_info: merge_client_info_defaults,
108
- device: @device
108
+ device: @device,
109
+ delivery_log: [{
110
+ execution: {
111
+ execution_server: Promoted::Ruby::Client::EXECUTION_SERVER['SDK']
112
+ }
113
+ }]
109
114
  }
110
115
 
111
116
  if @experiment
@@ -115,12 +120,16 @@ module Promoted
115
120
  # Log request allows for multiple requests but here we only send one.
116
121
  if include_request
117
122
  request[:request_id] = request[:request_id] || @id_generator.newID
118
- params[:request] = [request]
123
+ # Set request on delivery log.
124
+ params[:delivery_log][0][:request] = request
119
125
  end
120
126
 
121
127
  if include_insertions
122
- params[:insertion] = compact_metrics_properties if include_insertions
123
- add_missing_ids_on_insertions! request, params[:insertion]
128
+ # Add a response containing compacted insertions to delivery log.
129
+ params[:delivery_log][0][:response] = {
130
+ insertion: compact_metrics_properties
131
+ }
132
+ add_missing_ids_on_insertions! request, params[:delivery_log][0][:response][:insertion]
124
133
  end
125
134
 
126
135
  params.clean!
@@ -59,6 +59,14 @@ module Promoted
59
59
  {
60
60
  :name => :delivery_score,
61
61
  :type => Integer
62
+ },
63
+ {
64
+ :name => :retrieval_rank,
65
+ :type => Integer
66
+ },
67
+ {
68
+ :name => :retrieval_score,
69
+ :type => Float
62
70
  }
63
71
  ]
64
72
  )
@@ -1,7 +1,7 @@
1
1
  module Promoted
2
2
  module Ruby
3
3
  module Client
4
- VERSION = "0.1.22"
4
+ VERSION = "0.1.23"
5
5
  end
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: 0.1.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - scottmcmaster
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-13 00:00:00.000000000 Z
11
+ date: 2021-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday