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: 1bab6cbbd2c971b3c691fdd7334ae1e03e3c17229960c9c4644cba0032c14101
4
- data.tar.gz: 8e768023307ae15975b06cd34c4ee131ff51c7c8e87a959041939e202f5453b6
3
+ metadata.gz: d09e4887339da9aa66faa21cadbab9c8892c7fa2f7e407f960f7e495c3cf3a27
4
+ data.tar.gz: 35b2f8076cd700f5089846634c74846c485ec72754d88d24d0c9815c730c62d1
5
5
  SHA512:
6
- metadata.gz: 87efc6620fe86138f7d48efb24404b60a290204b14a44b3778f08d254edc9913cd348f72f12727d61229448d4bc2b5ad702e48f9292dd39f79f6372fa3ba3f73
7
- data.tar.gz: a8c6843d6b155767ca54de9bdb046995038adaa6032caf46e2ea6dbf3067cdfe31b81f66918b9c5dc96e7f882afa6e013e2441ef702e4dacc8435495e681d3c8
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.name(user_agent) || user_agent.to_s
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 name(user_agent)
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: name(user_agent),
159
+ name: agent_name(user_agent),
160
160
  ai: %i[ai_assistant ai_crawler].include?(k)
161
161
  }
162
162
  end
@@ -1,3 +1,3 @@
1
1
  module RailsErrorDashboard
2
- VERSION = "0.18.0"
2
+ VERSION = "0.18.1"
3
3
  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.0
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.0
612
+ RED (Rails Error Dashboard) v0.18.1
613
613
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
614
614
 
615
615
  First install: