posthog-ruby 2.5.0 → 2.5.1
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/client.rb +1 -0
- data/lib/posthog/field_parser.rb +1 -2
- data/lib/posthog/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78a70730ff0365203bb5af28ae5fadbb938950bb8980d048e3167878a1dc6645
|
4
|
+
data.tar.gz: e0a73f36a251b3280a21950c960c0a3f89172511a03f1c076898b769eb91ebbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f1b69643da1ed3dccfb38de8979436f9f0236676a2858931bea97215e617e6e97282e1b719bf1c811453731fe8e4873e7ac5a0fa021f9785899712b4ef43828
|
7
|
+
data.tar.gz: 7f016c7d172072f837f0780994d8018352356e19ae872578fd5befe2f657aab417c2aec350c357162d44fab52e59a3883236888e4a28a004b35e44b0e0a7bcf7
|
data/lib/posthog/client.rb
CHANGED
@@ -119,6 +119,7 @@ class PostHog
|
|
119
119
|
# @option attrs [String] :group_type Group type
|
120
120
|
# @option attrs [String] :group_key Group key
|
121
121
|
# @option attrs [Hash] :properties Group properties (optional)
|
122
|
+
# @option attrs [String] :distinct_id Distinct ID (optional)
|
122
123
|
# @macro common_attrs
|
123
124
|
def group_identify(attrs)
|
124
125
|
symbolize_keys! attrs
|
data/lib/posthog/field_parser.rb
CHANGED
@@ -64,8 +64,7 @@ class PostHog
|
|
64
64
|
check_presence!(group_key, 'group_key')
|
65
65
|
check_is_hash!(properties, 'properties')
|
66
66
|
|
67
|
-
distinct_id
|
68
|
-
fields[:distinct_id] = distinct_id
|
67
|
+
fields[:distinct_id] ||= "$#{group_type}_#{group_key}"
|
69
68
|
common = parse_common_fields(fields)
|
70
69
|
|
71
70
|
isoify_dates! 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: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -163,7 +163,7 @@ homepage: https://github.com/PostHog/posthog-ruby
|
|
163
163
|
licenses:
|
164
164
|
- MIT
|
165
165
|
metadata: {}
|
166
|
-
post_install_message:
|
166
|
+
post_install_message:
|
167
167
|
rdoc_options: []
|
168
168
|
require_paths:
|
169
169
|
- lib
|
@@ -178,8 +178,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
182
|
-
signing_key:
|
181
|
+
rubygems_version: 3.4.10
|
182
|
+
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: PostHog library
|
185
185
|
test_files: []
|