ollama-ruby 0.12.0 → 0.12.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: 417e37f903a49bd6cea779cbf15674cc89ebee9c9ea9bf8930fc2b1fb8007794
4
- data.tar.gz: f171af3e86996daf776df3f2b28dbf39c71c23139118a879b36e9cbabae5f376
3
+ metadata.gz: b1a5d95ed76e20288199c655d7a48751f403db0228999a2703c50288a9f4816e
4
+ data.tar.gz: '0727293192245719c82619e8cd71423f7e477dfef194504585d7a5f756c96cca'
5
5
  SHA512:
6
- metadata.gz: 7f236cf84e27feb750836fe695cf5812f4ac4af3fb63c6694e71ce6a077383abc14030aed184d668de59e9d082ba8ab890eddfc2052d817b27b708b69af540b9
7
- data.tar.gz: 585818aceb2af7d0cad69566d6bd62c8b443650b03f844650831a8e6fcdfcd370b93f8127b85726548ff2fe08a817d5c4f1333c8f8af81af5d8777e8cc57610b
6
+ metadata.gz: c6c9f7ba3da2ba8f87182ee7acc53536a8b30fcc227a467b7d1cae8dee14d8b7258ad3e97b7960d9a079cfa2d28b5a1dea2a5776a27a1119a7515f515d0f5c3e
7
+ data.tar.gz: 753a7812dbf850e21f042f8cbccec96163f21c7766a6a54d552cc0de98ba0581133140b5be9f11ae55a5faf98ea71101e13280bc673dd3ee67f2c26945e4005f
data/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changes
2
2
 
3
+ ## 2024-11-27 v0.12.1
4
+
5
+ * Added handling for empty links list:
6
+ + If the list is empty, print a message indicating that the list is empty.
7
+
3
8
  ## 2024-11-26 v0.12.0
4
9
 
5
10
  * **Upgrade display/clear links used in chat**:
data/bin/ollama_chat CHANGED
@@ -1174,9 +1174,14 @@ loop do
1174
1174
  end
1175
1175
  end
1176
1176
  when nil
1177
- format = "% #{Math.log10($links.size).ceil}s. %s"
1178
- connect = -> link { hyperlink(link) { link } }
1179
- puts $links.each_with_index.map { |x, i| format % [ i + 1, connect.(x) ] }
1177
+ if $links.empty?
1178
+ puts "List is empty."
1179
+ else
1180
+ Math.log10($links.size).ceil
1181
+ format = "% #{}s. %s"
1182
+ connect = -> link { hyperlink(link) { link } }
1183
+ puts $links.each_with_index.map { |x, i| format % [ i + 1, connect.(x) ] }
1184
+ end
1180
1185
  end
1181
1186
  next
1182
1187
  when %r(^/load\s+(.+)$)
@@ -1,6 +1,6 @@
1
1
  module Ollama
2
2
  # Ollama version
3
- VERSION = '0.12.0'
3
+ VERSION = '0.12.1'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
data/ollama-ruby.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: ollama-ruby 0.12.0 ruby lib
2
+ # stub: ollama-ruby 0.12.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "ollama-ruby".freeze
6
- s.version = "0.12.0".freeze
6
+ s.version = "0.12.1".freeze
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Florian Frank".freeze]
11
- s.date = "2024-11-26"
11
+ s.date = "2024-11-27"
12
12
  s.description = "Library that allows interacting with the Ollama API".freeze
13
13
  s.email = "flori@ping.de".freeze
14
14
  s.executables = ["ollama_console".freeze, "ollama_chat".freeze, "ollama_update".freeze, "ollama_cli".freeze]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ollama-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-26 00:00:00.000000000 Z
11
+ date: 2024-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar