content_signals 0.1.15 → 0.1.16

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: e2c1d01c7f6f684b573250d04429a365fa3ab703cb8dddac8ddac0a7131580b8
4
- data.tar.gz: bb343e43a050d8007817062d8de52f64f3ed54ee51d459b1a4988689e420083d
3
+ metadata.gz: d7945f02992d545325945620c459b4beedb253c6b3190e5db838c60a630ce29c
4
+ data.tar.gz: 0d0ba40d9228a1d1f2697abbbee707f4d6e7e90c3d03d42ba2697f68553224d1
5
5
  SHA512:
6
- metadata.gz: 4ca85cd8372d706ff93c3c9faa11ecf2920eff399fd7fa276f7f6cd09d7e81b569a8977cb1998189c43790c510500b8530f00a88a2d9860819909bc656eaa85e
7
- data.tar.gz: 86dd62f5920ddc4565f4a619ba34ff9c57ef130e12f3a08af719fa11e6895bb28cd869d3278f338f3ef7004e231122b97cf9f1fe399f0d737d771cea3bff21c2
6
+ metadata.gz: 30d5ac5e8732b6686902647064edecd2b05e7cfe5404411595212aa038d72bd56d5a482406a0d0531da80a5606ef853c01f5a21f2d341f51a58a62bb3dc7fe77
7
+ data.tar.gz: e07c5fc5dd301900c3be3a06e51120bfcd41985ba1d4783c9a67f373f78c763717c93ab71d1c8379f1b9ba5c2344c2facc1b9b0bdb62188a4d3daf26bd15c583
@@ -15,8 +15,8 @@ module ContentSignals
15
15
  # Validations
16
16
  validates :trackable_type, :trackable_id, :visitor_id, :viewed_at, presence: true
17
17
  validates :country_code, length: { maximum: 2 }, allow_nil: true
18
- validates :device_type, inclusion: { in: %w[desktop mobile tablet] }, allow_nil: true
19
- validates :app_platform, inclusion: { in: %w[hybrid native] }, allow_nil: true
18
+ validates :device_type, inclusion: { in: %w[desktop mobile tablet hybrid_app] }, allow_nil: true
19
+ validates :app_platform, inclusion: { in: %w[hybrid native turbo_native capacitor cordova react_native flutter webview] }, allow_nil: true
20
20
 
21
21
  # Tenant filtering — use explicitly instead of default_scope to avoid
22
22
  # silent NULL filtering in background jobs, console, and migrations.
@@ -119,6 +119,7 @@ module ContentSignals
119
119
 
120
120
  def detect_platform_from_ua
121
121
  ua = @request.user_agent.to_s.downcase
122
+ return 'turbo_native' if ua.include?('turbo native')
122
123
  return 'capacitor' if ua.include?('capacitor')
123
124
  return 'cordova' if ua.include?('cordova')
124
125
  return 'react_native' if ua.include?('react-native')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentSignals
4
- VERSION = "0.1.15"
4
+ VERSION = "0.1.16"
5
5
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: content_signals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ionuț Munteanu Alexandru
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-03-27 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: rails
@@ -144,6 +145,7 @@ metadata:
144
145
  changelog_uri: https://github.com/eventya/content_signals/blob/main/CHANGELOG.md
145
146
  bug_tracker_uri: https://github.com/eventya/content_signals/issues
146
147
  documentation_uri: https://github.com/eventya/content_signals#readme
148
+ post_install_message:
147
149
  rdoc_options: []
148
150
  require_paths:
149
151
  - lib
@@ -158,7 +160,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
160
  - !ruby/object:Gem::Version
159
161
  version: '0'
160
162
  requirements: []
161
- rubygems_version: 3.7.2
163
+ rubygems_version: 3.5.22
164
+ signing_key:
162
165
  specification_version: 4
163
166
  summary: Content analytics for Rails - track page views, demographics, and engagement
164
167
  metrics