rails_error_dashboard 0.18.0 → 0.18.1
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: d09e4887339da9aa66faa21cadbab9c8892c7fa2f7e407f960f7e495c3cf3a27
|
|
4
|
+
data.tar.gz: 35b2f8076cd700f5089846634c74846c485ec72754d88d24d0c9815c730c62d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 905313f1b7d5715863b031e9112b77a5e2de4b513ef0d4c934ea84c98a596c356af399bbfba6a40ca58520dbaf1f537c6c85c8ac674f139cf8480130c17bdfbb
|
|
7
|
+
data.tar.gz: 59526e826386fa31e157fff351ca7cda98a59a9d9d238b37925ca565e141865f207f4316edba97081348d4ec2dc7c489854f36088dd13eb7a876ae96d4508119
|
|
@@ -77,7 +77,7 @@ module RailsErrorDashboard
|
|
|
77
77
|
entry[:ips] << discriminator.to_s if discriminator.present?
|
|
78
78
|
entry[:path_counts][path.to_s] += count if path.present?
|
|
79
79
|
if user_agent.present?
|
|
80
|
-
agent = Services::AiAgentClassifier.
|
|
80
|
+
agent = Services::AiAgentClassifier.agent_name(user_agent) || user_agent.to_s
|
|
81
81
|
entry[:agent_counts][agent] += count
|
|
82
82
|
entry[:ai_count] += count if Services::AiAgentClassifier.ai?(user_agent)
|
|
83
83
|
end
|
|
@@ -130,7 +130,7 @@ module RailsErrorDashboard
|
|
|
130
130
|
#
|
|
131
131
|
# @param user_agent [String, nil]
|
|
132
132
|
# @return [String, nil]
|
|
133
|
-
def
|
|
133
|
+
def agent_name(user_agent)
|
|
134
134
|
ua = user_agent.to_s
|
|
135
135
|
return nil if ua.strip.empty?
|
|
136
136
|
|
|
@@ -156,7 +156,7 @@ module RailsErrorDashboard
|
|
|
156
156
|
k = kind(user_agent)
|
|
157
157
|
{
|
|
158
158
|
kind: k,
|
|
159
|
-
name:
|
|
159
|
+
name: agent_name(user_agent),
|
|
160
160
|
ai: %i[ai_assistant ai_crawler].include?(k)
|
|
161
161
|
}
|
|
162
162
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_error_dashboard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.18.
|
|
4
|
+
version: 0.18.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anjan Jagirdar
|
|
@@ -609,7 +609,7 @@ metadata:
|
|
|
609
609
|
funding_uri: https://github.com/sponsors/AnjanJ
|
|
610
610
|
post_install_message: |
|
|
611
611
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
612
|
-
RED (Rails Error Dashboard) v0.18.
|
|
612
|
+
RED (Rails Error Dashboard) v0.18.1
|
|
613
613
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
614
614
|
|
|
615
615
|
First install:
|