actionmcp 0.201.0 → 0.201.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: f43c9c7b1a96891c28d29f5c3c9e292d6eed0404540f0bc5c32b502c5d617106
4
- data.tar.gz: 806b9bec986aa74568aca0a9fc5959f1734638297f0c4318e2d4d324ffe0455b
3
+ metadata.gz: 23300ca3a38254cb24ded139a21cef8b5fc876936dfc24a47cfa3faa834aaee1
4
+ data.tar.gz: 2ff17b07add99768508b6f9dbc5e3f0d57377c8c8c2dba597cdd2b794a2c8309
5
5
  SHA512:
6
- metadata.gz: 1a3bcc5e984b69d10826170410506ea996f26a145552fbc608b228e72b1c6787370bbe7d5c1a3d6967a6f1c2a72b0f520a1e9566067a207ab33a46caab4722e7
7
- data.tar.gz: 7f15b59458d2fd70bcc86cd8ef545b12a0ad4467523a72a4461d664ae2610d10305c89355414e450adf5d479a97aa2d583bbc36085ba7a3696d872fc5d187ad7
6
+ metadata.gz: f9ec21482ddb688a69188f9f30ed5299f43b7fc972fccaf5863706f6414574bbf50c67edf426149787bc857c9e123fa34f67db412520282522c6688a993db31a
7
+ data.tar.gz: abe1eea4a7610d782f109006685edb7749377736c752b1bf5c6c398b16caa20d34cc153d17fd96370bd20ea9a021e9b39335feee7328f30ebae33555a57ed3f6
@@ -102,7 +102,10 @@ module ActionMCP
102
102
  raise ArgumentError, "content must respond to #to_h"
103
103
  end
104
104
 
105
- content.to_h.tap { |result| Content::Validation.validate_content_block!(result) }
105
+ result = content.to_h
106
+ # Built-in content validates itself in #to_h; anything else is checked here.
107
+ Content::Validation.validate_content_block!(result) unless content.is_a?(Content::Base)
108
+ result
106
109
  end
107
110
  end
108
111
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "gem_version"
4
4
  module ActionMCP
5
- VERSION = "0.201.0"
5
+ VERSION = "0.201.1"
6
6
 
7
7
  class << self
8
8
  alias version gem_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.201.0
4
+ version: 0.201.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih