posthog-rails 3.17.0 → 3.18.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: 4756b92a8d81f4af789c1433ef922a2ef8d021577b08866aeec9147ba883f0be
4
- data.tar.gz: b68df40b03deb1e16432ab6be1eba4d9e820dbdf6d12a30ad81fd2040edcbe73
3
+ metadata.gz: 39083887214818f6cd6251a610b87166f0e5c1496a5bae1fbc724c311c964dd3
4
+ data.tar.gz: 207e9ab104f2b4f0c075e847208624fb34270a6b3616c5cf5c7e7ece79300af5
5
5
  SHA512:
6
- metadata.gz: fbfb84c62c9a7416993277d5b6bba45bf10ae6822fd9f5d9dc7fd20fc23c5291612037ac6e2e06c24737451fb5c1460459f13d9f8b70f8e52b1589e770907a6c
7
- data.tar.gz: 5098a05084ff2054de47d9f70f639276eca5e8fe5d218331a32141f21d52e66249491db426143eee0d73a359a9c7f280feacd9348db4754d14ae3c12ba5aab51
6
+ metadata.gz: 41b32a4fd7c50c1ab08b233a909ab6fb518253c45ee0eae9054711686c03420defd92ec91d6bf679acfcfbdc6adeccc1d265fb036ebcdd69505bc67f6802c11f
7
+ data.tar.gz: 6488c4f6c22abe845c64e6feb35474696cddc35824e488ef1261b80395f781b9621fd03714d1208967f9426a96afa376c5ad603ab3e2cbf2c477391e2dc27486
@@ -18,7 +18,11 @@ module PostHog
18
18
  request_method = request_value(request, :request_method) || request_value(request, :method)
19
19
  add_property(properties, '$request_method', request_method)
20
20
  add_property(properties, '$request_path', request_value(request, :path) || request_value(request, :path_info))
21
- add_property(properties, '$user_agent', TracingHeaders.extract_header(request, 'User-Agent'))
21
+ user_agent = TracingHeaders.extract_header(request, 'User-Agent')
22
+ add_property(properties, '$user_agent', user_agent)
23
+ # Mirrored into $raw_user_agent, the standardized property PostHog's
24
+ # server-side classification (e.g. bot detection) reads
25
+ add_property(properties, '$raw_user_agent', user_agent)
22
26
  add_property(properties, '$ip', client_ip(request))
23
27
  properties
24
28
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PostHog
4
4
  module Rails
5
- VERSION = '3.17.0'
5
+ VERSION = '3.18.0'
6
6
  end
7
7
  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.17.0
4
+ version: 3.18.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.18.0
32
+ version: 3.22.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.18.0
39
+ version: 3.22.0
40
40
  description: Automatic exception tracking and instrumentation for Ruby on Rails applications
41
41
  using PostHog
42
42
  email: engineering@posthog.com