posthog-ruby 2.5.0 → 2.5.1

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: 654b547b68b6d0ebcfd4ef3523fa46d32a825d01485138e80443cf494d295f4a
4
- data.tar.gz: 9ae165ba631600e2ee0f59ce6d80fe3defe5b2c42f8d99a7c6b30393b73d2760
3
+ metadata.gz: 78a70730ff0365203bb5af28ae5fadbb938950bb8980d048e3167878a1dc6645
4
+ data.tar.gz: e0a73f36a251b3280a21950c960c0a3f89172511a03f1c076898b769eb91ebbf
5
5
  SHA512:
6
- metadata.gz: 4ce3e4037abd6e861a0f38a9e51ed4c54ae84622b939768139e4bcdc215f32e69b7dabb1c144e291d8e1f832d766c188a01ce5076a70e0dba03add31e4f64587
7
- data.tar.gz: 90b385f84d8047eed291d280e07eef79d8c28c217e89bb53cc621c78a6457bf7542780aeee63b48fca53085ba13d625136ac50a8ea9decd47cfc88a999b5a97b
6
+ metadata.gz: 6f1b69643da1ed3dccfb38de8979436f9f0236676a2858931bea97215e617e6e97282e1b719bf1c811453731fe8e4873e7ac5a0fa021f9785899712b4ef43828
7
+ data.tar.gz: 7f016c7d172072f837f0780994d8018352356e19ae872578fd5befe2f657aab417c2aec350c357162d44fab52e59a3883236888e4a28a004b35e44b0e0a7bcf7
@@ -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
@@ -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 = "$#{group_type}_#{group_key}"
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
@@ -1,3 +1,3 @@
1
1
  class PostHog
2
- VERSION = '2.5.0'
2
+ VERSION = '2.5.1'
3
3
  end
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.0
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-03-15 00:00:00.000000000 Z
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.1.2
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: []