pedicab 0.3.0 → 0.3.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: 702ea275719220820fd42a4619ff3d1bc23ec7436effb74b1c6df2e67a6aad96
4
- data.tar.gz: 5c1c20e35ae8d24c7011f45b1dab63d30f3306dcdc72a2d9016ed05cc413681e
3
+ metadata.gz: da75fafc6970ba8d338d12aa98e4283941cad71d6d1c93f68bb14412eec1fd0b
4
+ data.tar.gz: 120cc841ff0f8ccec121798d818dc6b5037c7312c6c1486dee3fd720c25eab32
5
5
  SHA512:
6
- metadata.gz: ad3f2468798402d8f14e6f566e22ce2cd8c9c8aadced16cc882b2fff0daa0468d993788f10ee4d2edab84dffbffe9ae7e7e011c49198ae01aa08447c0c95a5c3
7
- data.tar.gz: 7e0ea54c87fdaf6f54f25afa1df7cf91f09f1c902c88b161d2ae178b5a9565fb3f2b54ffeb931c4e18792645acdcbf5c5a4bd51fbf3db73d85d8cf6fa263e96a
6
+ metadata.gz: 33faf480921f078b2ad437686f2a0be708adacd3c1863445b7f64c795c452d68f671a281b3f3070b199109fdbfcf726360cd98db11d6b808ac9a03061ab10361
7
+ data.tar.gz: a5fdabc1cd88f6e6e02a06893cad5838a09e47c13aeefe0e9ea8dd0f22018698e5d30b8ca2e2d537cb6d7132988a8c09bb120d312055fc1c9735b49b60459188
data/lib/pedicab/ride.rb CHANGED
@@ -33,7 +33,7 @@ module Pedicab
33
33
  @path << "go #{i}"
34
34
  @state[:action] = "go"
35
35
  @state[:input] = i
36
- puts %[#===============[work]>\n#{i}\n#===============[work]];
36
+ # puts %[#===============[work]>\n#{i}\n#===============[work]];
37
37
  Pedicab.on[:work].call(self)
38
38
  @state[:output] = rider(role: 'user', model: 'work', content: "#{@info}#{tale}#{i}")
39
39
  @ride << @state
@@ -47,7 +47,7 @@ module Pedicab
47
47
  @state[:action] = "go?"
48
48
  @state[:input] = i
49
49
  @state[:yes] = false
50
- puts %[#>>>>>[gate]>\n#{i}\n#>>>>>[gate]];
50
+ # puts %[#>>>>>[gate]>\n#{i}\n#>>>>>[gate]];
51
51
  Pedicab.on[:gate].call(self)
52
52
  if rider(role: 'system', model: 'gate', content: %[#{@info}#{tale}if the following statement is true respond 'yes', otherwise respond 'no':\n#{i}], response: 'bool' ) == 'yes'
53
53
  @state[:yes] = true
@@ -66,7 +66,7 @@ module Pedicab
66
66
  Pedicab.on[:fork].call(self)
67
67
  @state[:list] = rider(role: 'user', model: 'fork', content: @state[:input]).split("\n").uniq.map { |e|
68
68
  if e.strip.length > 0;
69
- puts %[#----------[fork]>\nfor: #{i}\nin: #{p}\nat: #{e}\n#----------[fork]];
69
+ # puts %[#----------[fork]>\nfor: #{i}\nin: #{p}\nat: #{e}\n#----------[fork]];
70
70
  Pedicab.on[:with].call(self);
71
71
  b.call(e.strip);
72
72
  end;
@@ -79,7 +79,7 @@ module Pedicab
79
79
 
80
80
  def rider h={}, &b
81
81
  @state[:content] = "I don't know."
82
- puts %[#====[ #{@ride.length} ][#{@state[:action]}]\n#{@state[:input]}]
82
+ # puts %[#====[ #{@ride.length} ][#{@state[:action]}]\n#{@state[:input]}]
83
83
  Pedicab.on[:before].call(self)
84
84
  @state[:took] = Benchmark.realtime do
85
85
  Open3.popen3("pedicab /models/#{h[:model]}.gguf") do |stdin, stdout, stderr, wait_thread|
@@ -95,7 +95,7 @@ module Pedicab
95
95
  end
96
96
  end
97
97
  Pedicab.on[:after].call(self)
98
- puts %[#====[ #{@ride.length} ] took: #{@state[:took]} seconds.\n#{@state[:content].gsub(/\n+/,"\n")}]
98
+ # puts %[#====[ #{@ride.length} ] took: #{@state[:took]} seconds.\n#{@state[:content].gsub(/\n+/,"\n")}]
99
99
  if block_given?
100
100
  return b.call(self).gsub(/\n+/, "\n")
101
101
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pedicab
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pedicab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson