posthog-rails 3.16.1 → 3.17.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4756b92a8d81f4af789c1433ef922a2ef8d021577b08866aeec9147ba883f0be
|
|
4
|
+
data.tar.gz: b68df40b03deb1e16432ab6be1eba4d9e820dbdf6d12a30ad81fd2040edcbe73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbfb84c62c9a7416993277d5b6bba45bf10ae6822fd9f5d9dc7fd20fc23c5291612037ac6e2e06c24737451fb5c1460459f13d9f8b70f8e52b1589e770907a6c
|
|
7
|
+
data.tar.gz: 5098a05084ff2054de47d9f70f639276eca5e8fe5d218331a32141f21d52e66249491db426143eee0d73a359a9c7f280feacd9348db4754d14ae3c12ba5aab51
|
|
@@ -21,7 +21,7 @@ module Posthog
|
|
|
21
21
|
say ' 1. Edit config/initializers/posthog.rb with your PostHog API key'
|
|
22
22
|
say ' 2. Set environment variables:'
|
|
23
23
|
say ' - POSTHOG_API_KEY (required)'
|
|
24
|
-
say ' -
|
|
24
|
+
say ' - POSTHOG_SECRET_KEY (optional, for feature flags)'
|
|
25
25
|
say ''
|
|
26
26
|
say 'Optional: forward Rails.logger to PostHog Logs', :yellow
|
|
27
27
|
say ' - Add to your Gemfile (requires Ruby 3.3+):'
|
|
@@ -120,10 +120,10 @@ PostHog.init do |config|
|
|
|
120
120
|
# For PostHog Cloud, use: https://us.i.posthog.com or https://eu.i.posthog.com
|
|
121
121
|
config.host = ENV.fetch('POSTHOG_HOST', 'https://us.i.posthog.com')
|
|
122
122
|
|
|
123
|
-
#
|
|
124
|
-
#
|
|
125
|
-
#
|
|
126
|
-
config.
|
|
123
|
+
# Secret key (optional, but required for local feature flag evaluation).
|
|
124
|
+
# Accepts a Personal API Key (phx_...) or a Project Secret API Key (phs_...).
|
|
125
|
+
# Get this from: PostHog Settings > Personal API Keys / Project API Keys
|
|
126
|
+
config.secret_key = ENV.fetch('POSTHOG_SECRET_KEY', nil)
|
|
127
127
|
|
|
128
128
|
# Maximum number of events to queue before dropping (default: 10000)
|
|
129
129
|
config.max_queue_size = 10_000
|
|
@@ -277,6 +277,16 @@ module PostHog
|
|
|
277
277
|
@base_options[:api_key] = value
|
|
278
278
|
end
|
|
279
279
|
|
|
280
|
+
# The credential used for local feature flag evaluation and remote config. Accepts either a
|
|
281
|
+
# Personal API Key (`phx_...`) or a Project Secret API Key (`phs_...`).
|
|
282
|
+
#
|
|
283
|
+
# @param value [String, nil]
|
|
284
|
+
# @return [String, nil]
|
|
285
|
+
def secret_key=(value)
|
|
286
|
+
@base_options[:secret_key] = value
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# @deprecated Use {#secret_key=} instead. Retained as an alias.
|
|
280
290
|
# @param value [String, nil]
|
|
281
291
|
# @return [String, nil]
|
|
282
292
|
def personal_api_key=(value)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: posthog-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.17.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- PostHog
|
|
@@ -29,14 +29,14 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 3.
|
|
32
|
+
version: 3.18.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 3.
|
|
39
|
+
version: 3.18.0
|
|
40
40
|
description: Automatic exception tracking and instrumentation for Ruby on Rails applications
|
|
41
41
|
using PostHog
|
|
42
42
|
email: engineering@posthog.com
|