liveqa 1.9.4 → 1.9.5
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 +4 -4
- data/lib/liveqa/version.rb +1 -1
- data/lib/liveqa.rb +4 -2
- data/spec/lib/liveqa_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8348917e29e6010dc71be47847b9dba0f8816616
|
4
|
+
data.tar.gz: 7faba417c10c83120d8c4add967647c6a3d8202e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a0e27f2ed96eb61db14ae29d083c408fd0f945611f3d6e77bda0ab15a7c1f2a791c23e474c77c0122d4d8f2284732244fecb5500190cd81b07d4d94220064e2
|
7
|
+
data.tar.gz: '01792b83eb999086046d19812ec1deb642a4c6680e4867cd467b49cb29f563ee854a5015e3d22b6b08c4c06220ea29ab01cf2754e7375b87c8d8622fb7246d3a'
|
data/lib/liveqa/version.rb
CHANGED
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
|
)
|
data/spec/lib/liveqa_spec.rb
CHANGED
@@ -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',
|
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',
|
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
|
+
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-
|
11
|
+
date: 2018-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|