liveqa 1.9.4 → 1.9.5

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
  SHA1:
3
- metadata.gz: 46d9bc855dce533eaf940cc977b28d8904fed773
4
- data.tar.gz: eaf6c87c0118f7a48e3e699101653fb99c89cf9a
3
+ metadata.gz: 8348917e29e6010dc71be47847b9dba0f8816616
4
+ data.tar.gz: 7faba417c10c83120d8c4add967647c6a3d8202e
5
5
  SHA512:
6
- metadata.gz: cb08f5e030859cd1c0b1939b0c3d325a1e35b77e916c2358d08135221c1265a047f7d396e322dd8662002b3e47d1c25d379e9c35631e21faed18b0edc4f6d26f
7
- data.tar.gz: 5dce2d321778216a67beab91f2243ba167bbcb12612d0d3aec024d0952e81527320e50eeb50a7e95d06b666f45329f843c0bd59111709c1bc5e43e3cd764ccbc
6
+ metadata.gz: 9a0e27f2ed96eb61db14ae29d083c408fd0f945611f3d6e77bda0ab15a7c1f2a791c23e474c77c0122d4d8f2284732244fecb5500190cd81b07d4d94220064e2
7
+ data.tar.gz: '01792b83eb999086046d19812ec1deb642a4c6680e4867cd467b49cb29f563ee854a5015e3d22b6b08c4c06220ea29ab01cf2754e7375b87c8d8622fb7246d3a'
@@ -1,3 +1,3 @@
1
1
  module LiveQA # :nodoc:
2
- VERSION = '1.9.4'.freeze
2
+ VERSION = '1.9.5'.freeze
3
3
  end
data/lib/liveqa.rb CHANGED
@@ -141,9 +141,10 @@ module LiveQA
141
141
  payload = Message.base.merge(payload)
142
142
 
143
143
  if configurations.async
144
+ payload[:id] = group_id
145
+
144
146
  return processor.enqueue(
145
147
  action: GROUPS_UPDATE_ACTION,
146
- id: group_id,
147
148
  payload: payload,
148
149
  options: options.select { |k, _v| %i[space_name environment_name].include?(k) },
149
150
  )
@@ -167,9 +168,10 @@ module LiveQA
167
168
  payload = Message.base.merge(payload)
168
169
 
169
170
  if configurations.async
171
+ payload[:id] = user_id
172
+
170
173
  return processor.enqueue(
171
174
  action: IDENTITIES_UPDATE_ACTION,
172
- id: user_id,
173
175
  payload: payload,
174
176
  options: options.select { |k, _v| %i[space_name environment_name].include?(k) },
175
177
  )
@@ -130,7 +130,7 @@ describe LiveQA::Event do
130
130
  LiveQA.set_group(42, { properties: { name: 'John Group' }}, no_ssl: true, space_name: 'test')
131
131
  end
132
132
 
133
- it { expect(processor_mock).to have_received(:enqueue).with(action: 'groups:update', id: 42, payload: hash_including(expected_arg), options: { space_name: 'test' }) }
133
+ it { expect(processor_mock).to have_received(:enqueue).with(action: 'groups:update', payload: hash_including(expected_arg.merge(id: 42)), options: { space_name: 'test' }) }
134
134
  end
135
135
 
136
136
  context 'without async' do
@@ -171,7 +171,7 @@ describe LiveQA::Event do
171
171
  LiveQA.set_identity(42, { properties: { name: 'John Doe' }}, no_ssl: true, space_name: 'test')
172
172
  end
173
173
 
174
- it { expect(processor_mock).to have_received(:enqueue).with(action: 'identities:update', id: 42, payload: hash_including(expected_arg), options: { space_name: 'test' }) }
174
+ it { expect(processor_mock).to have_received(:enqueue).with(action: 'identities:update', payload: hash_including(expected_arg.merge(id: 42)), options: { space_name: 'test' }) }
175
175
  end
176
176
 
177
177
  context 'without async' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liveqa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.4
4
+ version: 1.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - LiveQA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-03 00:00:00.000000000 Z
11
+ date: 2018-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby