promoted-ruby-client 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6638e3f3f180e08d693f00d9d53caae30cfc737b2023adf0d181c18c1e379369
4
- data.tar.gz: 429c6c2cfc5022ea9f38913cbc0e4b7d218787f817152661f2624d8265fd1f8b
3
+ metadata.gz: 30ba0e172809a6aa76284b4b88980fa45dea5b2bf28cdda4fbe8e672b7510a83
4
+ data.tar.gz: e28586ed23f7db16b959bb9819072e502fc7af3805e68938f2bbf421fdc9e4d8
5
5
  SHA512:
6
- metadata.gz: 9e9e040d1c232767af0004c92c7b3a79277b7ac0e5a3c45509c46bf869a6a51ed7b5ad4273c68c03c86833482607a2b63da8c43f819f73e069ca6a3caf24ddd3
7
- data.tar.gz: 973bbfd858e00e5f81a42f221c5d2a90c8c2fb3bec93e5b1d8f38ca58c42c47382aa4ed777852ec3bee51483ff211b5da9041a075e285b738107be5f8c08567d
6
+ metadata.gz: 4e6b42f73ff30726aa81af1c08b97a0cd0e0307685dec1f90dcce5d0d61d4009c3a2e6179af77a600038531101db187a83dc52f46a7c0ad4a99f7c6c2530b43e
7
+ data.tar.gz: f3d304f0a2aad7acc15229750f97b021da4c0bfe8deae40c6ac1110bc7c1621ab0db19635464ba835e4e9a9ec07b9cfa0c231a9163fa0e1dcffeeebfdc1e51fc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- promoted-ruby-client (0.1.5)
4
+ promoted-ruby-client (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/dev.md CHANGED
@@ -1,9 +1,8 @@
1
-
2
- ## Deploy
1
+ # Deploy
3
2
 
4
3
  1. Update version number.
5
4
  2. Get credentials for deployment from 1password.
6
5
  3. Modify `promoted-ruby-client.gemspec`'s push block.
7
6
  4. Run `gem build promoted-ruby-client.gemspec` to generate `gem`.
8
- 5. Run (using new output) `gem push promoted-ruby-client-0.1.5.gem`
7
+ 5. Run (using new output) `gem push promoted-ruby-client-0.1.6.gem`
9
8
  6. Update README with new version.
@@ -119,7 +119,7 @@ module Promoted
119
119
 
120
120
  insertions_from_promoted = (response != nil && !deliver_err);
121
121
  response_insertions = delivery_request_builder.fill_details_from_response(
122
- response ? response[:insertion] : nil)
122
+ response ? response[:insertion] : [])
123
123
  end
124
124
  end
125
125
 
@@ -48,10 +48,16 @@ module Promoted
48
48
  params = {
49
49
  user_info: user_info,
50
50
  timing: timing,
51
- cohort_membership: @experiment,
52
- client_info: @client_info.merge({ :client_type => Promoted::Ruby::Client::CLIENT_TYPE['PLATFORM_SERVER'] })
51
+ client_info: @client_info.merge({ :client_type => Promoted::Ruby::Client::CLIENT_TYPE['PLATFORM_SERVER'] }),
52
+ platform_id: @platform_id,
53
+ request_id: @request_id,
54
+ view_id: @view_id,
55
+ session_id: @session_id,
56
+ use_case: @use_case,
57
+ search_query: request[:search_query],
58
+ properties: request[:properties],
59
+ paging: request[:paging]
53
60
  }
54
- params[:request] = request
55
61
  params[:insertion] = should_compact ? compact_delivery_insertions : full_insertion
56
62
 
57
63
  params.clean!
@@ -1,7 +1,7 @@
1
1
  module Promoted
2
2
  module Ruby
3
3
  module Client
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - scottmcmaster
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-02 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler