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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd5840ff8112c851eff8400d9be4fd1bd3b1233dbdfc663a92a6d274a43e41a0
4
- data.tar.gz: 938965e69f73c101d85f68ac7d9832e8f036155cbcc8967d473056177966a53c
3
+ metadata.gz: 7a31ac01cdee77c3025a92097cece2c0f86d1fea3c479abcdeac306b09d7ef23
4
+ data.tar.gz: 8efaa4aa4338bbc2f731986507a305850b507883fb8169b78fdc8333c97589f1
5
5
  SHA512:
6
- metadata.gz: 1fefa175a1bcab72083fec372845a1872445de3b83fadc2ae1d8f038c88ec6451c30acb8fc06421fd691b4f808d5587be671b01b5a175bcdaabfd633e758219d
7
- data.tar.gz: 8c06a60d5741a63c73b10dd1ac5ffd0494486632451b1a929e60de241a85ad566f0ed978be7a4f9dfc98bb1eccbd28824795b4d52a77233ed4c9b327d8402aa5
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.start_with?("cli-")
509
- result = name.sub("cli-", "")
508
+ if (match = name.match(/\Acli[-:]\s*(\w+)\z/))
509
+ result = match[1]
510
510
  break
511
511
  end
512
512
  end
@@ -3,7 +3,7 @@
3
3
  module Brainiac
4
4
  module Plugins
5
5
  module Fizzy
6
- VERSION = "0.0.42"
6
+ VERSION = "0.0.43"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brainiac-fizzy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.42
4
+ version: 0.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Davis