brainiac-fizzy 0.0.42 → 0.0.43
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 +4 -4
- data/lib/brainiac/plugins/fizzy/hooks.rb +3 -3
- data/lib/brainiac/plugins/fizzy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a31ac01cdee77c3025a92097cece2c0f86d1fea3c479abcdeac306b09d7ef23
|
|
4
|
+
data.tar.gz: 8efaa4aa4338bbc2f731986507a305850b507883fb8169b78fdc8333c97589f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3fced8d93c21f0c9600619fdb9f1fa996bbc98fb393695d1d0c6b39c66ba6a74a1f4c032f575e4416ffe5cfa0f1fd80f9be4df7bf237794cbbdd53c6f56d862
|
|
7
|
+
data.tar.gz: c69760d16a0f0039a1eaab9daa1e30fd8346f43ce824ee031d6a1b2229ea636d3c01b46a3af987c0bd24ed6034bbddf0ea9ecc2a1afc312d5e75d36a4de68c7e
|
|
@@ -498,15 +498,15 @@ module Brainiac
|
|
|
498
498
|
LOG.warn "[Fizzy] Webhook reactivation check failed: #{e.message}"
|
|
499
499
|
end
|
|
500
500
|
|
|
501
|
-
# Detect CLI provider from Fizzy card tags (e.g., cli-grok tag)
|
|
501
|
+
# Detect CLI provider from Fizzy card tags (e.g., cli-grok or cli:grok tag)
|
|
502
502
|
def register_detect_cli_provider
|
|
503
503
|
Brainiac.on(:detect_cli_provider) do |ctx|
|
|
504
504
|
tags = ctx[:tags] || []
|
|
505
505
|
result = nil
|
|
506
506
|
tags.each do |tag|
|
|
507
507
|
name = (tag.is_a?(Hash) ? tag["name"] : tag).to_s.downcase
|
|
508
|
-
if name.
|
|
509
|
-
result =
|
|
508
|
+
if (match = name.match(/\Acli[-:]\s*(\w+)\z/))
|
|
509
|
+
result = match[1]
|
|
510
510
|
break
|
|
511
511
|
end
|
|
512
512
|
end
|