content_signals 0.1.16 → 0.1.17

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: d7945f02992d545325945620c459b4beedb253c6b3190e5db838c60a630ce29c
4
- data.tar.gz: 0d0ba40d9228a1d1f2697abbbee707f4d6e7e90c3d03d42ba2697f68553224d1
3
+ metadata.gz: f3565eb23ff50453ff5b35f84e77483dea0075f9ecd4c2dd6183662b12f796cc
4
+ data.tar.gz: 1f1c09c743778eb5599f3e1a150fc990aeffdbb6d1ff37ac7bde4789a39dcb07
5
5
  SHA512:
6
- metadata.gz: 30d5ac5e8732b6686902647064edecd2b05e7cfe5404411595212aa038d72bd56d5a482406a0d0531da80a5606ef853c01f5a21f2d341f51a58a62bb3dc7fe77
7
- data.tar.gz: e07c5fc5dd301900c3be3a06e51120bfcd41985ba1d4783c9a67f373f78c763717c93ab71d1c8379f1b9ba5c2344c2facc1b9b0bdb62188a4d3daf26bd15c583
6
+ metadata.gz: 0c73705946dd1e5cc8beef7619681452e7a57c9b9a505cbd6840f5625be540fcf14444dbaf5f900ac246e95db705ae0425d10a84feef3d9f1829680bebbd1537
7
+ data.tar.gz: 94fc972805318cac08df4e11d23c2e4838c235241ceac1bcea2e21e84b9286021f1d7800b36176ff7fc44d6dd7c42bef9554297a71ccf5130db6a4d17d754dd1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.17]
4
+
5
+ ### Fixed
6
+
7
+ - A request from a Hotwire Native app is recognised by the name every one of them sends. Detection matched only `Turbo Native`, which the webview appends but the app's own HTTP client does not send at all, so those requests were read by device instead: an Android one as a phone, an iOS one as a **desktop**.
8
+
9
+ ## [0.1.16]
10
+
11
+ ### Fixed
12
+
13
+ - A page view from a mobile app is no longer thrown away. `PageView` validated `device_type` as `desktop/mobile/tablet` while `scope :app` queried for `hybrid_app`, so the value the detector produced for an app could never be stored — and `TrackPageViewJob` rescues the failure, so the view vanished with only a log line. `app_platform` had the same mismatch against every value `detect_platform_from_ua` returns.
14
+
3
15
  ## [0.1.0] - 2026-01-06
4
16
 
5
17
  - Initial release
@@ -119,12 +119,13 @@ 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
+ return 'turbo_native' if ua.include?('hotwire native')
123
123
  return 'capacitor' if ua.include?('capacitor')
124
124
  return 'cordova' if ua.include?('cordova')
125
125
  return 'react_native' if ua.include?('react-native')
126
126
  return 'flutter' if ua.include?('flutter')
127
127
  return 'webview' if ua.match?(/wv|webview/)
128
+
128
129
  nil
129
130
  end
130
131
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentSignals
4
- VERSION = "0.1.16"
4
+ VERSION = "0.1.17"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: content_signals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ionuț Munteanu Alexandru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-03-27 00:00:00.000000000 Z
11
+ date: 2026-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails