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 +4 -4
- data/CHANGELOG.md +8 -1
- data/README.md +1 -1
- data/lib/ask/tools/result.rb +8 -0
- data/lib/ask/version.rb +1 -1
- metadata +16 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3538cb8dc3573bbf8ef8bf087bd6986dd1bf371611bf9ae734e993c58362c09
|
|
4
|
+
data.tar.gz: d56d48529c455acafec46532fd985d07117864add7a7c86fc14b6190d3bba3b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
|
data/lib/ask/tools/result.rb
CHANGED
|
@@ -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
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.
|
|
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.
|
|
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: []
|