ollama-ruby 1.8.0 → 1.8.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 +4 -4
- data/CHANGES.md +6 -0
- data/Rakefile +1 -1
- data/lib/ollama/version.rb +1 -1
- data/ollama-ruby.gemspec +4 -4
- metadata +3 -9
- data/.contexts/code_comment.rb +0 -25
- data/.contexts/full.rb +0 -43
- data/.contexts/info.rb +0 -17
- data/.contexts/lib.rb +0 -27
- data/.contexts/yard.md +0 -93
- data/.yardopts +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88a823911175700e401b5b07a47b9b7c9b3303c781384fa5f99d51b1ebbc1822
|
4
|
+
data.tar.gz: dfa6fc2fc22dcd0d89dbbaa2260238c11746682d53339b1cb059d679c013d38b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0152e3bf64b1094852872cc3e58391d6e8464815d6377324eeddda4ed7f1b401727ae2c12db7a322e8eef6b54af67fde2bfacc49565cbe71480d2d1785c03976
|
7
|
+
data.tar.gz: cd351d0b035f528f2fe16ec345424bdcbe084c2aa885809adb035fa37c4d6daab80b70e69c4b19ae40e8b2c7b628d91bc60feb06ff3cce432cd5009ad18e9521
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changes
|
2
2
|
|
3
|
+
## 2025-09-13 v1.8.1
|
4
|
+
|
5
|
+
- Added `.yardopts` and `tmp` to `package_ignore` in `Rakefile`
|
6
|
+
- Updated `gem_hadar` development dependency from "~> 2.4" to "~> 2.6" in
|
7
|
+
gemspec
|
8
|
+
|
3
9
|
## 2025-09-12 v1.8.0
|
4
10
|
|
5
11
|
- Changed `tins` dependency from `~> 1.41` to `~> 1` in both `Rakefile` and
|
data/Rakefile
CHANGED
@@ -16,7 +16,7 @@ GemHadar do
|
|
16
16
|
'.yardoc', 'doc', 'tags', 'errors.lst', 'cscope.out', 'coverage', 'tmp',
|
17
17
|
'yard'
|
18
18
|
package_ignore '.all_images.yml', '.tool-versions', '.gitignore', 'VERSION',
|
19
|
-
'.rspec', '.github', '.contexts'
|
19
|
+
'.rspec', '.github', '.contexts', '.yardopts'
|
20
20
|
readme 'README.md'
|
21
21
|
|
22
22
|
executables << 'ollama_console' << 'ollama_update' << 'ollama_cli' << 'ollama_browse'
|
data/lib/ollama/version.rb
CHANGED
data/ollama-ruby.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: ollama-ruby 1.8.
|
2
|
+
# stub: ollama-ruby 1.8.1 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "ollama-ruby".freeze
|
6
|
-
s.version = "1.8.
|
6
|
+
s.version = "1.8.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]
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.executables = ["ollama_console".freeze, "ollama_update".freeze, "ollama_cli".freeze, "ollama_browse".freeze]
|
15
15
|
s.extra_rdoc_files = ["README.md".freeze, "lib/ollama.rb".freeze, "lib/ollama/client.rb".freeze, "lib/ollama/client/command.rb".freeze, "lib/ollama/client/configuration/config.rb".freeze, "lib/ollama/client/doc.rb".freeze, "lib/ollama/commands/chat.rb".freeze, "lib/ollama/commands/copy.rb".freeze, "lib/ollama/commands/create.rb".freeze, "lib/ollama/commands/delete.rb".freeze, "lib/ollama/commands/embed.rb".freeze, "lib/ollama/commands/embeddings.rb".freeze, "lib/ollama/commands/generate.rb".freeze, "lib/ollama/commands/ps.rb".freeze, "lib/ollama/commands/pull.rb".freeze, "lib/ollama/commands/push.rb".freeze, "lib/ollama/commands/show.rb".freeze, "lib/ollama/commands/tags.rb".freeze, "lib/ollama/commands/version.rb".freeze, "lib/ollama/dto.rb".freeze, "lib/ollama/errors.rb".freeze, "lib/ollama/handlers.rb".freeze, "lib/ollama/handlers/collector.rb".freeze, "lib/ollama/handlers/concern.rb".freeze, "lib/ollama/handlers/dump_json.rb".freeze, "lib/ollama/handlers/dump_yaml.rb".freeze, "lib/ollama/handlers/markdown.rb".freeze, "lib/ollama/handlers/nop.rb".freeze, "lib/ollama/handlers/print.rb".freeze, "lib/ollama/handlers/progress.rb".freeze, "lib/ollama/handlers/say.rb".freeze, "lib/ollama/handlers/single.rb".freeze, "lib/ollama/image.rb".freeze, "lib/ollama/json_loader.rb".freeze, "lib/ollama/message.rb".freeze, "lib/ollama/options.rb".freeze, "lib/ollama/response.rb".freeze, "lib/ollama/tool.rb".freeze, "lib/ollama/tool/function.rb".freeze, "lib/ollama/tool/function/parameters.rb".freeze, "lib/ollama/tool/function/parameters/property.rb".freeze, "lib/ollama/version.rb".freeze]
|
16
|
-
s.files = ["
|
16
|
+
s.files = ["CHANGES.md".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "bin/ollama_browse".freeze, "bin/ollama_cli".freeze, "bin/ollama_console".freeze, "bin/ollama_update".freeze, "lib/ollama.rb".freeze, "lib/ollama/client.rb".freeze, "lib/ollama/client/command.rb".freeze, "lib/ollama/client/configuration/config.rb".freeze, "lib/ollama/client/doc.rb".freeze, "lib/ollama/commands/chat.rb".freeze, "lib/ollama/commands/copy.rb".freeze, "lib/ollama/commands/create.rb".freeze, "lib/ollama/commands/delete.rb".freeze, "lib/ollama/commands/embed.rb".freeze, "lib/ollama/commands/embeddings.rb".freeze, "lib/ollama/commands/generate.rb".freeze, "lib/ollama/commands/ps.rb".freeze, "lib/ollama/commands/pull.rb".freeze, "lib/ollama/commands/push.rb".freeze, "lib/ollama/commands/show.rb".freeze, "lib/ollama/commands/tags.rb".freeze, "lib/ollama/commands/version.rb".freeze, "lib/ollama/dto.rb".freeze, "lib/ollama/errors.rb".freeze, "lib/ollama/handlers.rb".freeze, "lib/ollama/handlers/collector.rb".freeze, "lib/ollama/handlers/concern.rb".freeze, "lib/ollama/handlers/dump_json.rb".freeze, "lib/ollama/handlers/dump_yaml.rb".freeze, "lib/ollama/handlers/markdown.rb".freeze, "lib/ollama/handlers/nop.rb".freeze, "lib/ollama/handlers/print.rb".freeze, "lib/ollama/handlers/progress.rb".freeze, "lib/ollama/handlers/say.rb".freeze, "lib/ollama/handlers/single.rb".freeze, "lib/ollama/image.rb".freeze, "lib/ollama/json_loader.rb".freeze, "lib/ollama/message.rb".freeze, "lib/ollama/options.rb".freeze, "lib/ollama/response.rb".freeze, "lib/ollama/tool.rb".freeze, "lib/ollama/tool/function.rb".freeze, "lib/ollama/tool/function/parameters.rb".freeze, "lib/ollama/tool/function/parameters/property.rb".freeze, "lib/ollama/version.rb".freeze, "ollama-ruby.gemspec".freeze, "spec/assets/client.json".freeze, "spec/assets/kitten.jpg".freeze, "spec/assets/options.json".freeze, "spec/ollama/client/doc_spec.rb".freeze, "spec/ollama/client_spec.rb".freeze, "spec/ollama/commands/chat_spec.rb".freeze, "spec/ollama/commands/copy_spec.rb".freeze, "spec/ollama/commands/create_spec.rb".freeze, "spec/ollama/commands/delete_spec.rb".freeze, "spec/ollama/commands/embed_spec.rb".freeze, "spec/ollama/commands/embeddings_spec.rb".freeze, "spec/ollama/commands/generate_spec.rb".freeze, "spec/ollama/commands/ps_spec.rb".freeze, "spec/ollama/commands/pull_spec.rb".freeze, "spec/ollama/commands/push_spec.rb".freeze, "spec/ollama/commands/show_spec.rb".freeze, "spec/ollama/commands/tags_spec.rb".freeze, "spec/ollama/commands/version_spec.rb".freeze, "spec/ollama/handlers/collector_spec.rb".freeze, "spec/ollama/handlers/dump_json_spec.rb".freeze, "spec/ollama/handlers/dump_yaml_spec.rb".freeze, "spec/ollama/handlers/markdown_spec.rb".freeze, "spec/ollama/handlers/nop_spec.rb".freeze, "spec/ollama/handlers/print_spec.rb".freeze, "spec/ollama/handlers/progress_spec.rb".freeze, "spec/ollama/handlers/say_spec.rb".freeze, "spec/ollama/handlers/single_spec.rb".freeze, "spec/ollama/image_spec.rb".freeze, "spec/ollama/message_spec.rb".freeze, "spec/ollama/options_spec.rb".freeze, "spec/ollama/tool_spec.rb".freeze, "spec/spec_helper.rb".freeze, "tmp/.keep".freeze]
|
17
17
|
s.homepage = "https://github.com/flori/ollama-ruby".freeze
|
18
18
|
s.licenses = ["MIT".freeze]
|
19
19
|
s.rdoc_options = ["--title".freeze, "Ollama-ruby - Interacting with the Ollama API".freeze, "--main".freeze, "README.md".freeze]
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
|
25
25
|
s.specification_version = 4
|
26
26
|
|
27
|
-
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 2.
|
27
|
+
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 2.6".freeze])
|
28
28
|
s.add_development_dependency(%q<all_images>.freeze, ["~> 0.6".freeze])
|
29
29
|
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.2".freeze])
|
30
30
|
s.add_development_dependency(%q<kramdown>.freeze, ["~> 2.0".freeze])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ollama-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
@@ -15,14 +15,14 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: '2.
|
18
|
+
version: '2.6'
|
19
19
|
type: :development
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: '2.
|
25
|
+
version: '2.6'
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: all_images
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -277,12 +277,6 @@ extra_rdoc_files:
|
|
277
277
|
- lib/ollama/tool/function/parameters/property.rb
|
278
278
|
- lib/ollama/version.rb
|
279
279
|
files:
|
280
|
-
- ".contexts/code_comment.rb"
|
281
|
-
- ".contexts/full.rb"
|
282
|
-
- ".contexts/info.rb"
|
283
|
-
- ".contexts/lib.rb"
|
284
|
-
- ".contexts/yard.md"
|
285
|
-
- ".yardopts"
|
286
280
|
- CHANGES.md
|
287
281
|
- Gemfile
|
288
282
|
- LICENSE
|
data/.contexts/code_comment.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
context do
|
2
|
-
namespace "lib" do
|
3
|
-
Dir['lib/**/*.rb'].each do |filename|
|
4
|
-
file filename, tags: 'lib'
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
namespace "spec" do
|
9
|
-
Dir['spec/**/*.rb'].each do |filename|
|
10
|
-
file filename, tags: 'spec'
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
file 'README.md', tags: 'documentation'
|
15
|
-
|
16
|
-
file '.contexts/yard.md', tags: [ 'yard', 'cheatsheet' ]
|
17
|
-
|
18
|
-
meta guidelins: <<~EOT
|
19
|
-
# Guidelines for creating YARD documentation
|
20
|
-
|
21
|
-
- Look into the file, with tags yard and cheatsheet for how comment ruby
|
22
|
-
constructs.
|
23
|
-
- In comments above initialize methods never omit @return
|
24
|
-
EOT
|
25
|
-
end
|
data/.contexts/full.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
context do
|
2
|
-
variable project_name: Pathname.pwd.basename
|
3
|
-
|
4
|
-
variable project_version: File.read('VERSION').chomp
|
5
|
-
|
6
|
-
variable branch: `git rev-parse --abbrev-ref HEAD`.chomp
|
7
|
-
|
8
|
-
namespace "structure" do
|
9
|
-
command "tree", tags: %w[ project_structure ]
|
10
|
-
end
|
11
|
-
|
12
|
-
namespace "bin" do
|
13
|
-
Dir['bin/**/*'].each do |filename|
|
14
|
-
file filename, tags: 'bin'
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
namespace "lib" do
|
19
|
-
Dir['lib/**/*.rb'].each do |filename|
|
20
|
-
file filename, tags: 'lib'
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
namespace "spec" do
|
25
|
-
Dir['spec/**/*.rb'].each do |filename|
|
26
|
-
file filename, tags: 'spec'
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
namespace "gems" do
|
31
|
-
file Dir['*.gemspec'].first
|
32
|
-
file 'Gemfile'
|
33
|
-
file 'Gemfile.lock'
|
34
|
-
end
|
35
|
-
|
36
|
-
file 'Rakefile', tags: 'gem_hadar'
|
37
|
-
|
38
|
-
file 'README.md', tags: 'documentation'
|
39
|
-
|
40
|
-
meta ruby: RUBY_DESCRIPTION
|
41
|
-
|
42
|
-
meta code_coverage: json('coverage/coverage_context.json')
|
43
|
-
end
|
data/.contexts/info.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
context do
|
2
|
-
variable project_name: Pathname.pwd.basename
|
3
|
-
|
4
|
-
variable project_version: File.read('VERSION').chomp
|
5
|
-
|
6
|
-
variable branch: `git rev-parse --abbrev-ref HEAD`.chomp
|
7
|
-
|
8
|
-
namespace "structure" do
|
9
|
-
command "tree", tags: %w[ project_structure ]
|
10
|
-
end
|
11
|
-
|
12
|
-
file 'Rakefile', tags: 'gem_hadar'
|
13
|
-
|
14
|
-
file 'README.md', tags: 'documentation'
|
15
|
-
|
16
|
-
meta ruby: RUBY_DESCRIPTION
|
17
|
-
end
|
data/.contexts/lib.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
context do
|
2
|
-
variable branch: `git rev-parse --abbrev-ref HEAD`.chomp
|
3
|
-
|
4
|
-
namespace "structure" do
|
5
|
-
command "tree", tags: %w[ project_structure ]
|
6
|
-
end
|
7
|
-
|
8
|
-
namespace "lib" do
|
9
|
-
Dir['lib/**/*.rb'].each do |filename|
|
10
|
-
file filename, tags: 'lib'
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
namespace "gems" do
|
15
|
-
file Dir['*.gemspec'].first
|
16
|
-
file 'Gemfile'
|
17
|
-
file 'Gemfile.lock'
|
18
|
-
end
|
19
|
-
|
20
|
-
file 'Rakefile', tags: 'gem_hadar'
|
21
|
-
|
22
|
-
file 'README.md', tags: 'documentation'
|
23
|
-
|
24
|
-
meta ruby: RUBY_DESCRIPTION
|
25
|
-
|
26
|
-
meta code_coverage: json('coverage/coverage_context.json')
|
27
|
-
end
|
data/.contexts/yard.md
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
# YARD CHEATSHEET http://yardoc.org
|
2
|
-
|
3
|
-
## May 2020 - updated fork: https://gist.github.com/phansch/db18a595d2f5f1ef16646af72fe1fb0e
|
4
|
-
|
5
|
-
cribbed from http://pastebin.com/xgzeAmBn
|
6
|
-
|
7
|
-
Templates to remind you of the options and formatting for the different types of objects you might
|
8
|
-
want to document using YARD.
|
9
|
-
|
10
|
-
## Modules
|
11
|
-
|
12
|
-
# Namespace for classes and modules that handle serving documentation over HTTP
|
13
|
-
# @since 0.6.0
|
14
|
-
|
15
|
-
## Classes
|
16
|
-
|
17
|
-
# Abstract base class for CLI utilities. Provides some helper methods for
|
18
|
-
# the option parser
|
19
|
-
#
|
20
|
-
# @author Full Name
|
21
|
-
# @abstract
|
22
|
-
# @since 0.6.0
|
23
|
-
# @attr [Types] attribute_name a full description of the attribute
|
24
|
-
# @attr_reader [Types] name description of a readonly attribute
|
25
|
-
# @attr_writer [Types] name description of writeonly attribute
|
26
|
-
# @deprecated Describe the reason or provide alt. references here
|
27
|
-
|
28
|
-
## Methods
|
29
|
-
|
30
|
-
# An alias to {Parser::SourceParser}'s parsing method
|
31
|
-
#
|
32
|
-
# @author Donovan Bray
|
33
|
-
#
|
34
|
-
# @see http://example.com Description of URL
|
35
|
-
# @see SomeOtherClass#method
|
36
|
-
#
|
37
|
-
# @deprecated Use {#my_new_method} instead of this method because
|
38
|
-
# it uses a library that is no longer supported in Ruby 1.9.
|
39
|
-
# The new method accepts the same parameters.
|
40
|
-
#
|
41
|
-
# @abstract
|
42
|
-
# @private
|
43
|
-
#
|
44
|
-
# @param opts [Hash] the options to create a message with.
|
45
|
-
# @option opts [String] :subject The subject
|
46
|
-
# @option opts [String] :from ('nobody') From address
|
47
|
-
# @option opts [String] :to Recipient email
|
48
|
-
# @option opts [String] :body ('') The email's body
|
49
|
-
#
|
50
|
-
# @param (see User#initialize)
|
51
|
-
# @param [OptionParser] opts the option parser object
|
52
|
-
# @param [Array<String>] args the arguments passed from input. This
|
53
|
-
# array will be modified.
|
54
|
-
# @param [Array<String, Symbol>] list the list of strings and symbols.
|
55
|
-
#
|
56
|
-
# The options parsed out of the commandline.
|
57
|
-
# Default options are:
|
58
|
-
# :format => :dot
|
59
|
-
#
|
60
|
-
# @example Reverse a string
|
61
|
-
# "mystring.reverse" #=> "gnirtsym"
|
62
|
-
#
|
63
|
-
# @example Parse a glob of files
|
64
|
-
# YARD.parse('lib/**/*.rb')
|
65
|
-
#
|
66
|
-
# @raise [ExceptionClass] description
|
67
|
-
#
|
68
|
-
# @return [optional, types, ...] description
|
69
|
-
# @return [true] always returns true
|
70
|
-
# @return [void]
|
71
|
-
# @return [String, nil] the contents of our object or nil
|
72
|
-
# if the object has not been filled with data.
|
73
|
-
#
|
74
|
-
# We don't care about the "type" here:
|
75
|
-
# @return the object
|
76
|
-
#
|
77
|
-
# @return [String, #read] a string or object that responds to #read
|
78
|
-
# @return description here with no types
|
79
|
-
|
80
|
-
## Anywhere
|
81
|
-
|
82
|
-
# @todo Add support for Jabberwocky service
|
83
|
-
# There is an open source Jabberwocky library available
|
84
|
-
# at http://somesite.com that can be integrated easily
|
85
|
-
# into the project.
|
86
|
-
|
87
|
-
## Blocks
|
88
|
-
|
89
|
-
# for block {|a, b, c| ... }
|
90
|
-
# @yield [a, b, c] Description of block
|
91
|
-
#
|
92
|
-
# @yieldparam [optional, types, ...] argname description
|
93
|
-
# @yieldreturn [optional, types, ...] description
|
data/.yardopts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--markup markdown
|