posthog-ruby 3.23.0 → 3.23.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 +5 -4
- data/lib/posthog/field_parser.rb +1 -1
- data/lib/posthog/noop_worker.rb +1 -1
- data/lib/posthog/send_worker.rb +1 -1
- data/lib/posthog/utils.rb +1 -1
- data/lib/posthog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8312afa290c47eecb33301291d002d8ae16c2131ea474e8363c1691e4a8310ab
|
|
4
|
+
data.tar.gz: 2ca7dc85f81596e0dd0e3660a369e5b57a77e9c36bfe38ed6efe7da1d920c3a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8932336a40c68e91b496b6c4edbf7d07916af5882c127180975fb2f83f7dbae6798000a8eeed92217affd9ec619572ff75b670b00d24df5c8e605c87cad881ac
|
|
7
|
+
data.tar.gz: 3cbdcfcbd72157b4c9745a2f65813dff3a759fbecb6330846865fbfb459df143dfd1bf808b7a7302e86d1f9f043c8b03a06f6214046f4673ec62a0fe05b64814
|
data/lib/posthog/client.rb
CHANGED
|
@@ -262,7 +262,8 @@ module PostHog
|
|
|
262
262
|
# invalid and `:message_id` is a valid UUID, it is sent as `uuid` for backwards compatibility.
|
|
263
263
|
# If neither value is valid, the SDK generates a `uuid`. SDK metadata is sent as `$lib` and
|
|
264
264
|
# `$lib_version` properties.
|
|
265
|
-
# @option attrs [Time] :timestamp When the event occurred (optional)
|
|
265
|
+
# @option attrs [Time] :timestamp When the event occurred (optional). UTC is preferred;
|
|
266
|
+
# non-UTC values are converted to the equivalent UTC instant before serialization.
|
|
266
267
|
# @option attrs [String] :distinct_id The ID for this user in your database
|
|
267
268
|
|
|
268
269
|
# Captures an event
|
|
@@ -472,7 +473,7 @@ module PostHog
|
|
|
472
473
|
# @param send_feature_flag_events [Boolean] Whether to capture `$feature_flag_called` for this access.
|
|
473
474
|
# @return [Boolean, nil] Whether the flag is enabled, or nil when the flag could not be evaluated.
|
|
474
475
|
# TODO: In future version, rename to `feature_flag_enabled?`
|
|
475
|
-
def is_feature_enabled( # rubocop:disable Naming/
|
|
476
|
+
def is_feature_enabled( # rubocop:disable Naming/PredicatePrefix
|
|
476
477
|
flag_key,
|
|
477
478
|
distinct_id,
|
|
478
479
|
groups: {},
|
|
@@ -712,8 +713,8 @@ module PostHog
|
|
|
712
713
|
enabled: ff.enabled ? true : false,
|
|
713
714
|
variant: ff.variant,
|
|
714
715
|
payload: FeatureFlagResult.parse_payload(ff.payload),
|
|
715
|
-
id: metadata
|
|
716
|
-
version: metadata
|
|
716
|
+
id: metadata&.id,
|
|
717
|
+
version: metadata&.version,
|
|
717
718
|
reason: reason ? (reason.description || reason.code) : nil,
|
|
718
719
|
locally_evaluated: false,
|
|
719
720
|
has_experiment: metadata&.has_experiment
|
data/lib/posthog/field_parser.rb
CHANGED
data/lib/posthog/noop_worker.rb
CHANGED
data/lib/posthog/send_worker.rb
CHANGED
|
@@ -113,7 +113,7 @@ module PostHog
|
|
|
113
113
|
#
|
|
114
114
|
# @return [Boolean] Whether the worker has outstanding requests.
|
|
115
115
|
# TODO: Rename to `requesting?` in future version
|
|
116
|
-
def is_requesting? # rubocop:disable Naming/
|
|
116
|
+
def is_requesting? # rubocop:disable Naming/PredicatePrefix
|
|
117
117
|
ensure_current_process!
|
|
118
118
|
|
|
119
119
|
@lock.synchronize { !@batch.empty? }
|
data/lib/posthog/utils.rb
CHANGED
|
@@ -111,7 +111,7 @@ module PostHog
|
|
|
111
111
|
UTC_OFFSET_WITHOUT_COLON = UTC_OFFSET_WITH_COLON.sub(':', '')
|
|
112
112
|
|
|
113
113
|
# TODO: Rename to `valid_regex?` in future version
|
|
114
|
-
def is_valid_regex(regex) # rubocop:disable Naming/
|
|
114
|
+
def is_valid_regex(regex) # rubocop:disable Naming/PredicatePrefix
|
|
115
115
|
Regexp.new(regex)
|
|
116
116
|
true
|
|
117
117
|
rescue RegexpError
|
data/lib/posthog/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: posthog-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.23.
|
|
4
|
+
version: 3.23.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ''
|
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
75
|
- !ruby/object:Gem::Version
|
|
76
76
|
version: '0'
|
|
77
77
|
requirements: []
|
|
78
|
-
rubygems_version: 4.0.
|
|
78
|
+
rubygems_version: 4.0.16
|
|
79
79
|
specification_version: 4
|
|
80
80
|
summary: PostHog library
|
|
81
81
|
test_files: []
|