posthog-rails 3.5.4 → 3.6.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: 73b3698f8394559833943f6d02e405620ee11772e92f05bfb88d1e20293d49a4
4
- data.tar.gz: 3315690f7eb8c851b2c8f23179a9ed8ceb6d730177b800ddec883f5e21e7db5b
3
+ metadata.gz: 32c8090638dc6456a2cfe2abdfe0dec901ee549b44f3d52f8c1728019a931d57
4
+ data.tar.gz: 2371da2d51b6977fd8a2544270fae72c8c6e5e9465783ca9fd32bf118b85ae8c
5
5
  SHA512:
6
- metadata.gz: 0eb6a62fba135f4ff4c6b1830080d4a7272daf05d4a8b295e9e69212617cd8aa6b33ba9e0a485a4523d7e1d7c056a7f110c50abef0d59bff22cf93c4421adfed
7
- data.tar.gz: 6c1ac4517141425d1b2528083cf3d8d9e97fa57ba8b73ff53913bd0c34b61735241e3e32043af932dea430441b3f8be0e2e64d99b70d9b5efeb8ce3920aacd3b
6
+ metadata.gz: 2cf658e5f2ebce148a07e221b3458925b22affb61196f1771691e0988e161a2024c29dcc021cf30c30e62f13ab71e01b5f8c2a10faeb02996f5ace063360dae2
7
+ data.tar.gz: '0338af574847d6c9f52e1c3f43b7f7b7401ee9966a1d0816d3b1a5967b3a4689d584e1801cfa50101e0106f4692239eb0ac2a9be5e7f7533099bca7266730705'
@@ -46,6 +46,8 @@ end
46
46
  # CORE POSTHOG CONFIGURATION
47
47
  # ============================================================================
48
48
  # Initialize the PostHog client with core SDK options.
49
+ # IMPORTANT: Use PostHog.init once — creating multiple clients can cause dropped events.
50
+ # PostHog.init provides a singleton-like pattern; use PostHog.capture, PostHog.identify, etc.
49
51
 
50
52
  PostHog.init do |config|
51
53
  # ============================================================================
@@ -160,6 +160,10 @@ module PostHog
160
160
  @base_options[:test_mode] = value
161
161
  end
162
162
 
163
+ def sync_mode=(value)
164
+ @base_options[:sync_mode] = value
165
+ end
166
+
163
167
  def on_error=(value)
164
168
  @base_options[:on_error] = value
165
169
  end
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.5.4
4
+ version: 3.6.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.5'
32
+ version: '3.6'
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.5'
39
+ version: '3.6'
40
40
  description: Automatic exception tracking and instrumentation for Ruby on Rails applications
41
41
  using PostHog
42
42
  email: hey@posthog.com
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
- rubygems_version: 4.0.3
77
+ rubygems_version: 4.0.6
78
78
  specification_version: 4
79
79
  summary: PostHog integration for Rails
80
80
  test_files: []