rails-informant 0.3.5 → 0.3.6

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: ea857ef174d2e518e21f2fe26054f552b9205f6e7f49e149946ead9e96c2f54b
4
- data.tar.gz: 57eef1fc423519f6482e0a1924264a82adce45c4425c7ff378ad7dbdb12f42d6
3
+ metadata.gz: 0163f0e11f497856fbd6813053bcae42a8138798a0a87d9f134969d91f7978d0
4
+ data.tar.gz: bf7dfe956232dc5c082a9aab38b101279335ed52a0e9081282e702d9218e1791
5
5
  SHA512:
6
- metadata.gz: f8e456b2a60539f4d75b29db25e76d2fb1020cf77639178a76a63cb136b1f74660b345b97defc655108790a57fe8df17911f501e6e2f5645d2dadd4476cd9cf2
7
- data.tar.gz: a131a76c62a54c402b4ebd79088dfde02a325d78b0bdc9e82cb493ccff4abe5be1c99a157fae31ba9addd05f49b7c7a134231d741b08adefeaefae7fa07ba8e6
6
+ metadata.gz: 56ec9dfe489907f0071a4b3f78cae5637e97d470a98f9e9a7d7801aba1e483fcf28d821a64e6ec158645517e143d06688ed835b124ad8f61ddcfc4341ed18d13
7
+ data.tar.gz: 60311f0621849b31788c5dd83add05ab58744da92906d9866b6d69db69d49fc96af5183768549497f49ddba2081af68547c42f8bbf84e9a1473589cd41ba6f9a
@@ -32,12 +32,9 @@ unresolved=$(echo "$response" | jq -r '.unresolved_count // 0') || exit 0
32
32
  # Format error summary
33
33
  label="error"
34
34
  [[ "$unresolved" -gt 1 ]] && label="errors"
35
- echo "🚨 Informant: ${unresolved} unresolved ${label} in production"
35
+ cat <<ALERT
36
+ 🚨 Informant: ${unresolved} unresolved ${label} in production
37
+ $(echo "$response" | jq -r '.top_errors[]? | " - \(.error_class) (\(.total_occurrences) \(if .total_occurrences == 1 then "occurrence" else "occurrences" end))"' 2>/dev/null || true)
36
38
 
37
- echo "$response" | jq -r '
38
- .top_errors[]? |
39
- " - \(.error_class) (\(.total_occurrences) \(if .total_occurrences == 1 then "occurrence" else "occurrences" end))"
40
- ' 2>/dev/null || true
41
-
42
- echo ""
43
- echo "IMPORTANT: Before responding to the user's request, briefly mention these unresolved production errors so they are aware."
39
+ START your response by casually mentioning these errors, then ask the user if they want to investigate or continue with their request. Do NOT proceed with the user's request until they answer.
40
+ ALERT
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-informant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel López Prat