ollama-ruby 1.6.0 → 1.7.0

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: 4a174884d564679a1043d7a7efe61bdcdb9924e692e75918ca59d11c7af02509
4
- data.tar.gz: fce0f1c512683a77fe1c074a9ea6f839432652de6e5ba2e8ae5b368f6c4febd9
3
+ metadata.gz: d69471296c78369866e4e987a2090979d7cfdf624bd85af0568d9d89b4958732
4
+ data.tar.gz: 95ca4371960d61f37bace06bf2b0dc36f46c315957e9415690f4f2f42df077a1
5
5
  SHA512:
6
- metadata.gz: 1d9d8c43b1bc35626c97b6974d80894890e4b76dbbcc021ded7db22eed54d2bf0e82cb163a0fde53bfddda5ff8ecd34773929f29bc49efbc8b34b0823e376045
7
- data.tar.gz: 0fc66f6d378a9cc0e31bb130d5cb8fa0f6b847b8cb30328bf3b0713483272d5eae6edcf5bf139a2d565e27de9b89722176806e9656e45242f8102c24c804ad9d
6
+ metadata.gz: ee90bd06ab129da798ed94e4c84ed61b9c37255c7178ab1295de00d15ef320b6ed36c984b96c83b77631141d53ca8140bd4582783cc7f793939bbf1afcd45f18
7
+ data.tar.gz: b6441cb51d51ca9c717483f003c0757415766cf9f1e09476abd4636616e9f335b2776c57f1b4c8ef594f78cc49367f1fa221508e09a9d42be063d115de7a50ad
data/CHANGES.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changes
2
2
 
3
+ ## 2025-09-09 v1.7.0
4
+
5
+ - Updated `required_ruby_version` from ~> **3.0** to ~> **3.1** in `Rakefile`
6
+ and `ollama-ruby.gemspec`
7
+ - Added `context_spook` as a development dependency in `ollama-ruby.gemspec`
8
+ - Removed `ruby:3.0-alpine` image configuration from `.all_images.yml`
9
+ - Updated gem system and bundle in Dockerfile build steps
10
+ - Ran `bundle update` in script section of `.all_images.yml`
11
+
12
+ ## 2025-09-09 v1.6.1
13
+
14
+ - Updated required Ruby version from **3.1** to **3.0** in `Rakefile` and
15
+ `ollama-ruby.gemspec`
16
+ - Added `bundler` to the gems installed in `.all_images.yml`
17
+ - Added support for Ruby **3.1** and **3.0** Alpine images in `.all_images.yml`
18
+ - Updated `gem_hadar` version requirement from **2.0** to **2.2** in
19
+ `ollama-ruby.gemspec`
20
+ - Modified `as_json` and `to_json` methods in `lib/ollama/dto.rb` and
21
+ `lib/ollama/response.rb` to accept ignored arguments
22
+ - Added documentation comments for ignored arguments in `as_json` methods
23
+
3
24
  ## 2025-08-18 v1.6.0
4
25
 
5
26
  - Added **context_spook** gem as development dependency for documentation management
data/lib/ollama/dto.rb CHANGED
@@ -111,8 +111,9 @@ module Ollama::DTO
111
111
  # This method gathers all defined attributes of the object and constructs a
112
112
  # hash representation, excluding any nil values or empty collections.
113
113
  #
114
+ # @param ignored [ Array ] ignored arguments
114
115
  # @return [ Hash ] a hash containing the object's non-nil and non-empty attributes
115
- def as_json(*)
116
+ def as_json(*ignored)
116
117
  self.class.attributes.each_with_object({}) { |a, h| h[a] = send(a) }.
117
118
  reject { _2.nil? || _2.ask_and_send(:size) == 0 }
118
119
  end
@@ -151,8 +152,9 @@ module Ollama::DTO
151
152
  # applies the standard JSON serialization to produce a formatted JSON string
152
153
  # output.
153
154
  #
155
+ # @param args [ Array ] pass-through args
154
156
  # @return [ String ] a JSON string representation of the object
155
- def to_json(*)
156
- as_json.to_json(*)
157
+ def to_json(*args)
158
+ as_json.to_json(*args)
157
159
  end
158
160
  end
@@ -15,8 +15,10 @@ class Ollama::Response < JSON::GenericObject
15
15
  # hash representation, excluding any nil values or empty collections.
16
16
  #
17
17
  # @note This removes "json_class" attribute from hash for responses.
18
+ #
19
+ # @param ignored [ Array ] ignored arguments
18
20
  # @return [ Hash ] a hash containing the object's non-nil and non-empty attributes
19
- def as_json(*)
21
+ def as_json(*ignored)
20
22
  to_hash
21
23
  end
22
24
  end
@@ -1,6 +1,6 @@
1
1
  module Ollama
2
2
  # Ollama version
3
- VERSION = '1.6.0'
3
+ VERSION = '1.7.0'
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,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: ollama-ruby 1.6.0 ruby lib
2
+ # stub: ollama-ruby 1.7.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "ollama-ruby".freeze
6
- s.version = "1.6.0".freeze
6
+ s.version = "1.7.0".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]
@@ -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.0".freeze])
27
+ s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 2.2".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.6.0
4
+ version: 1.7.0
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.0'
18
+ version: '2.2'
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.0'
25
+ version: '2.2'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: all_images
28
28
  requirement: !ruby/object:Gem::Requirement