pedicab 0.3.3 → 0.3.4

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: f02a2dcd924ea83d8d045d1366f1ea6043141f8887c1d5ae40e36372d49deac6
4
- data.tar.gz: 5487597657aaec6b3474599a4d2d74d7b99822f4a876e10037825147603c6e2b
3
+ metadata.gz: 936bc08bf87c90f68dbd9752b421c2af8b9d9955e759df84e85842471665aab3
4
+ data.tar.gz: 35b23e28b1a7bfa61b120fa2156dfcab3bf4e11521c61a4f2b8d45e1bb742a7a
5
5
  SHA512:
6
- metadata.gz: 3bcf9fc60bf98a9bd1e864343752a01ab1971c9e071dc778623a70500e5b06eb0f1161cbe0a82e38ee4e9f555a46ba866ec4b3f69bee76a839cef57be96224dc
7
- data.tar.gz: 3be66f8fcaf8bfb84905c13eb0c7ad5d476d1b521126cd014ee891caa67043ace0ce9953f6c4fbf82b056582a6259e837c52583105d31260c26ab51708ed4f3f
6
+ metadata.gz: 72e3f11a28dda3266193174a03cc4d430e015338edbb72fd747d49d5dd7e4beef04b8ef9d4eddb228b3b6a6c0a430de830d10cbf1c610140d6f27dcbcefd2e8b
7
+ data.tar.gz: 1e903bd9eab13554bb8ca01ec7e287de4f59fc2b789df1e3c648bbef080348525e2afb29baa35067a0532269937418f432c947041a5647febe8e4daa0e55c5ea
data/EXAMPLES.md CHANGED
@@ -16,6 +16,14 @@
16
16
 
17
17
  ## Basic Conversations
18
18
 
19
+ ### Simple IO
20
+
21
+ ```
22
+ require 'pedicab'
23
+
24
+ puts Pedicab << "What is the meaning of life?" => "The question of the meaning of life is of deep philosophical importance..."
25
+ ```
26
+
19
27
  ### Simple Q&A
20
28
 
21
29
  ```ruby
data/README.md CHANGED
@@ -66,6 +66,13 @@ Pry.start
66
66
  # ... that's it.
67
67
  ```
68
68
 
69
+ ### Ad-hoc Usage
70
+
71
+ ```
72
+ require 'pedicab'
73
+ puts Pedicab << "What is the meaning of life?"
74
+ ```
75
+
69
76
  ### Basic Usage
70
77
 
71
78
  ```ruby
data/lib/pedicab/ride.rb CHANGED
@@ -23,6 +23,7 @@ module Pedicab
23
23
  @state[:content]
24
24
  end
25
25
  end
26
+
26
27
  def if?(condition, &b)
27
28
  @state[:action] = "gate: #{condition}"
28
29
  @state[:yes] = false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pedicab
4
- VERSION = "0.3.3"
4
+ VERSION = "0.3.4"
5
5
  end
data/lib/pedicab.rb CHANGED
@@ -168,6 +168,16 @@ module Pedicab
168
168
  @out
169
169
  end
170
170
  end
171
+
172
+ # Prompt without context (convenience method)
173
+ #
174
+ # @param i [String] Prompt input
175
+ # @return [String] Prompt output
176
+ # @example
177
+ # ai = Pedicab['my_assistant']
178
+ def self.<< i
179
+ Preicab['subconscious'].go(i)
180
+ end
171
181
 
172
182
  # Create a new conversation instance (convenience method)
173
183
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pedicab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-01-26 00:00:00.000000000 Z
11
+ date: 2026-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark