posthog-ruby 1.2.3 → 1.2.4
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/posthog/field_parser.rb +2 -2
- data/lib/posthog/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48c747d4d40d5c783c8f53c03fbc7324c5de7d41521293c8aef8d1d76a7b19dd
|
|
4
|
+
data.tar.gz: 03f2cf98045fa5bd21cac93fd0858453c5087950cd764d6144c8f98690deae65
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68b3a6223048f1e4a36f6ef7546d5f69651c12ce55e53e4cf9ae0518ac16fe08695071a1439feeb98ed0a0e656fdae34aa0a40f985c4d4e9e0b0876262dfb028
|
|
7
|
+
data.tar.gz: 0b5a18f99c9d208f8803c1f6d4e30db96efceec768b0a25b7de794de436da1ab323d176b90d854a4392e5931418a661ab9812771da75d4c6584a5be4bc5ea427
|
data/lib/posthog/field_parser.rb
CHANGED
|
@@ -54,7 +54,7 @@ class PostHog
|
|
|
54
54
|
def parse_for_alias(fields)
|
|
55
55
|
common = parse_common_fields(fields)
|
|
56
56
|
|
|
57
|
-
distinct_id = common[:distinct_id] # must move to properties
|
|
57
|
+
distinct_id = common[:distinct_id] # must both be set and move to properties
|
|
58
58
|
|
|
59
59
|
alias_field = fields[:alias]
|
|
60
60
|
check_presence! alias_field, 'alias'
|
|
@@ -63,7 +63,7 @@ class PostHog
|
|
|
63
63
|
{
|
|
64
64
|
type: 'alias',
|
|
65
65
|
event: '$create_alias',
|
|
66
|
-
distinct_id:
|
|
66
|
+
distinct_id: distinct_id,
|
|
67
67
|
properties:
|
|
68
68
|
{ distinct_id: distinct_id, alias: alias_field }.merge(
|
|
69
69
|
common[:properties] || {}
|
data/lib/posthog/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: posthog-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ''
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|
|
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
177
177
|
- !ruby/object:Gem::Version
|
|
178
178
|
version: '0'
|
|
179
179
|
requirements: []
|
|
180
|
-
rubygems_version: 3.0.3
|
|
180
|
+
rubygems_version: 3.0.3
|
|
181
181
|
signing_key:
|
|
182
182
|
specification_version: 4
|
|
183
183
|
summary: PostHog library
|