ask-tools 0.2.1 → 0.2.3

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: 11f1c3c00fd6ac3f248ef34d23c4073110d6918669103a90bc2aeaacc1d2a622
4
- data.tar.gz: d2e1d7153711d7415482956b428542b00514120a066754aa4c9570a77e065f3b
3
+ metadata.gz: c3538cb8dc3573bbf8ef8bf087bd6986dd1bf371611bf9ae734e993c58362c09
4
+ data.tar.gz: d56d48529c455acafec46532fd985d07117864add7a7c86fc14b6190d3bba3b4
5
5
  SHA512:
6
- metadata.gz: af1f45a7d1ef8aa089304a43a0196243441b31344fdcf47f45ff05c2265e506b1aa8072e82c7c8d8891f4dae17012fd2259a60e801b0b0371f178fb5151b92b8
7
- data.tar.gz: 38df1b93e7a8be8f9b9ffac741db0e5a08f68529a450fd832d1f8b100b7713753c8816f51e36ee2d2fe4b0798bd2a0276de8a5b0efdc36827143b97a44432a39
6
+ metadata.gz: d371f9411f4c39394c46a728e5f48082547e7b94c6e73ac3fa2e117821e31cb828383faf43817f29cfe355367142e12a4d3739771623549d52fd36ffbfe0285c
7
+ data.tar.gz: 57e16846666f91165febc6c7615468d9bacbf1dd4a3d36406fa56fa03971a27b75b55e48187115447d17e5d7b429062903d03f1dee6b8f4d430bbba3cd4f2638
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.2.2] - 2026-06-23
2
+
3
+ ### Fixed
4
+
5
+ - Added `ask-schema` as a runtime dependency in gemspec. The `tool.rb` already
6
+ required `ask-schema` but it wasn't declared, causing `LoadError` for consumers
7
+ installing from Rubygems without local path resolution.
8
+
1
9
  ## [0.2.0] - 2026-06-21
2
10
 
3
11
  ### Added
@@ -21,7 +29,6 @@ All notable changes to this project will be documented in this file.
21
29
  - `Ask::Tool::Halt` for stopping conversation loops
22
30
  - `Ask::Tool::Parameter` value object for parameter metadata
23
31
  - Comprehensive test suite with 54+ tests using Minitest and Mocha
24
- - Zero runtime dependencies — stdlib only
25
32
 
26
33
  ## [0.1.3] - 2026-06-18
27
34
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ask-tools
2
2
 
3
- The foundational gem for the ask-rb ecosystem. Defines `Ask::Tool` — the base class every tool inherits from — along with `Ask::Result` (standardized return value), tool discovery/registration, and a scaffold generator. **Zero external dependencies.**
3
+ The foundational gem for the ask-rb ecosystem. Defines `Ask::Tool` — the base class every tool inherits from — along with `Ask::Result` (standardized return value), tool discovery/registration, and a scaffold generator.
4
4
 
5
5
  This gem does **not** ship any executable tools. It only provides the contract that tool gems (e.g., `ask-tools-shell`, `ask-tools-filesystem`) implement.
6
6
 
@@ -24,6 +24,14 @@ module Ask
24
24
 
25
25
  alias ok? ok
26
26
 
27
+ # @return [Boolean] whether the tool failed
28
+ def error?
29
+ !ok
30
+ end
31
+
32
+ # @return [String, nil] the error message (alias for +error+)
33
+ alias error_message error
34
+
27
35
  def initialize(ok:, output: nil, error: nil, metadata: {})
28
36
  @ok = ok
29
37
  @output = output
data/lib/ask/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ask
4
4
  module Tools
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ask-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto
@@ -9,6 +9,20 @@ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: ask-schema
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0.1'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0.1'
12
26
  - !ruby/object:Gem::Dependency
13
27
  name: minitest
14
28
  requirement: !ruby/object:Gem::Requirement
@@ -51,8 +65,7 @@ dependencies:
51
65
  - - "~>"
52
66
  - !ruby/object:Gem::Version
53
67
  version: '13.0'
54
- description: Defines Ask::Tool (base class), Ask::Result, and tool discovery. Zero
55
- dependencies.
68
+ description: Defines Ask::Tool (base class), Ask::Result, and tool discovery.
56
69
  email:
57
70
  - kaka@myrrlabs.com
58
71
  executables: []