ollama-ruby 1.8.0 → 1.9.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 +4 -4
 - data/CHANGES.md +34 -0
 - data/README.md +5 -1
 - data/Rakefile +6 -3
 - data/lib/ollama/commands/embed.rb +10 -4
 - data/lib/ollama/version.rb +1 -1
 - data/ollama-ruby.gemspec +5 -5
 - data/spec/ollama/commands/embed_spec.rb +25 -0
 - data/spec/ollama/handlers/say_spec.rb +6 -1
 - metadata +4 -10
 - 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: 91ae1baa5bfbaca61fabd8b999527a323ba0ec345a62d7ba1d4fdd8a3f2afea0
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: d33bdaf8a42d9063acc125d90864fdf639e82a1362e51f731a85a3dd427bea60
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e604e07547c56818453993713847d6ce769f328f2872c652f37940c02983c41d56de5c630f0b735eee71c141753f28c51b9f6f8303a47e554ced93ab0c7164f3
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: ba902456a6f6a674668b9c8c97bf7d2f9d06beebac239fe908bc8456b6b4681a23da54447424d287fa926b7a1ef75779a496d37627cce77e09419e4e111997a6
         
     | 
    
        data/CHANGES.md
    CHANGED
    
    | 
         @@ -1,5 +1,39 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Changes
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
      
 3 
     | 
    
         
            +
            ## 2025-10-20 v1.9.0
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            - Added `dimensions` parameter to `Ollama::Commands::Embed#initialize`
         
     | 
| 
      
 6 
     | 
    
         
            +
              - Added `attr_reader :dimensions` for accessing the `dimensions` parameter
         
     | 
| 
      
 7 
     | 
    
         
            +
              - Updated JSON serialization to include `dimensions` field
         
     | 
| 
      
 8 
     | 
    
         
            +
              - Added specs for `dimensions` parameter instantiation and JSON conversion
         
     | 
| 
      
 9 
     | 
    
         
            +
              - Parameter defaults to `nil` following same pattern as other optional params
         
     | 
| 
      
 10 
     | 
    
         
            +
              - Supports truncating output embeddings to specified dimensions as per Ollama API
         
     | 
| 
      
 11 
     | 
    
         
            +
              - Maintains backward compatibility with existing code
         
     | 
| 
      
 12 
     | 
    
         
            +
              - Parameter type documented as `Integer, nil` in YARD comments
         
     | 
| 
      
 13 
     | 
    
         
            +
            - Added new GitHub Actions workflow file `.github/workflows/static.yml`
         
     | 
| 
      
 14 
     | 
    
         
            +
              - Configured workflow to deploy static content to GitHub Pages
         
     | 
| 
      
 15 
     | 
    
         
            +
              - Set up Ruby environment with version **3.4** for documentation generation
         
     | 
| 
      
 16 
     | 
    
         
            +
              - Added steps to install `gem_hadar`, run `bundle install`, and execute `rake doc`
         
     | 
| 
      
 17 
     | 
    
         
            +
              - Updated `README.md` to include documentation link at
         
     | 
| 
      
 18 
     | 
    
         
            +
                https://flori.github.io/ollama-ruby/
         
     | 
| 
      
 19 
     | 
    
         
            +
            - Updated comment style guideline for `initialize` methods
         
     | 
| 
      
 20 
     | 
    
         
            +
            - Skip `say` handler tests on non-macOS systems
         
     | 
| 
      
 21 
     | 
    
         
            +
              - Add conditional check for `say` command availability using `File.executable?`
         
     | 
| 
      
 22 
     | 
    
         
            +
              - Skip `Ollama::Handlers::Say` tests when `say` command is not found
         
     | 
| 
      
 23 
     | 
    
         
            +
              - Use `skip: skip_reason` metadata to control test execution
         
     | 
| 
      
 24 
     | 
    
         
            +
            - Update CI configuration
         
     | 
| 
      
 25 
     | 
    
         
            +
              - Add `openssl-dev` and `ghostscript` dependencies to Dockerfile
         
     | 
| 
      
 26 
     | 
    
         
            +
              - Change test command from `rake test` to `rake spec`
         
     | 
| 
      
 27 
     | 
    
         
            +
              - Enable `fail_fast: true` in CI configuration
         
     | 
| 
      
 28 
     | 
    
         
            +
              - Remove `rm -f Gemfile.lock` step from CI script
         
     | 
| 
      
 29 
     | 
    
         
            +
              - Update `build-base` and `yaml-dev` apk packages in Dockerfile
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            ## 2025-09-13 v1.8.1
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
            - Added `.yardopts` and `tmp` to `package_ignore` in `Rakefile`
         
     | 
| 
      
 34 
     | 
    
         
            +
            - Updated `gem_hadar` development dependency from "~> 2.4" to "~> 2.6" in
         
     | 
| 
      
 35 
     | 
    
         
            +
              gemspec
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
       3 
37 
     | 
    
         
             
            ## 2025-09-12 v1.8.0
         
     | 
| 
       4 
38 
     | 
    
         | 
| 
       5 
39 
     | 
    
         
             
            - Changed `tins` dependency from `~> 1.41` to `~> 1` in both `Rakefile` and
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -6,6 +6,10 @@ Ollama is a Ruby library gem that provides a client interface to interact with 
     | 
|
| 
       6 
6 
     | 
    
         
             
            an ollama server via the
         
     | 
| 
       7 
7 
     | 
    
         
             
            [Ollama API](https://github.com/ollama/ollama/blob/main/docs/api.md).
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
      
 9 
     | 
    
         
            +
            ## Documentation
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            Complete API documentation is available at: [GitHub.io](https://flori.github.io/ollama-ruby/)
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
       9 
13 
     | 
    
         
             
            ## Installation (gem & bundler)
         
     | 
| 
       10 
14 
     | 
    
         | 
| 
       11 
15 
     | 
    
         
             
            To install Ollama, you can use the following methods:
         
     | 
| 
         @@ -484,7 +488,7 @@ The homepage of this library is located at 
     | 
|
| 
       484 
488 
     | 
    
         | 
| 
       485 
489 
     | 
    
         
             
            ## License
         
     | 
| 
       486 
490 
     | 
    
         | 
| 
       487 
     | 
    
         
            -
            This software is licensed under the  
     | 
| 
      
 491 
     | 
    
         
            +
            This software is licensed under the [MIT License](./LICENSE).
         
     | 
| 
       488 
492 
     | 
    
         | 
| 
       489 
493 
     | 
    
         
             
            ---
         
     | 
| 
       490 
494 
     | 
    
         | 
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -13,14 +13,17 @@ GemHadar do 
     | 
|
| 
       13 
13 
     | 
    
         
             
              description 'Library that allows interacting with the Ollama API'
         
     | 
| 
       14 
14 
     | 
    
         
             
              test_dir    'spec'
         
     | 
| 
       15 
15 
     | 
    
         
             
              ignore      '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.AppleDouble', '.bundle',
         
     | 
| 
       16 
     | 
    
         
            -
                '.yardoc', 'doc', 'tags', 'errors.lst', 'cscope.out', 'coverage', 'tmp' 
     | 
| 
       17 
     | 
    
         
            -
                'yard'
         
     | 
| 
      
 16 
     | 
    
         
            +
                '.yardoc', 'doc', 'tags', 'errors.lst', 'cscope.out', 'coverage', 'tmp'
         
     | 
| 
       18 
17 
     | 
    
         
             
              package_ignore '.all_images.yml', '.tool-versions', '.gitignore', 'VERSION',
         
     | 
| 
       19 
     | 
    
         
            -
                '.rspec', '.github', '.contexts'
         
     | 
| 
      
 18 
     | 
    
         
            +
                '.rspec', '.github', '.contexts', '.yardopts'
         
     | 
| 
       20 
19 
     | 
    
         
             
              readme      'README.md'
         
     | 
| 
       21 
20 
     | 
    
         | 
| 
       22 
21 
     | 
    
         
             
              executables << 'ollama_console' << 'ollama_update' << 'ollama_cli' << 'ollama_browse'
         
     | 
| 
       23 
22 
     | 
    
         | 
| 
      
 23 
     | 
    
         
            +
              github_workflows(
         
     | 
| 
      
 24 
     | 
    
         
            +
                'static.yml' => {}
         
     | 
| 
      
 25 
     | 
    
         
            +
              )
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
       24 
27 
     | 
    
         
             
              required_ruby_version  '~> 3.1'
         
     | 
| 
       25 
28 
     | 
    
         | 
| 
       26 
29 
     | 
    
         
             
              dependency             'excon',                 '~> 1.0'
         
     | 
| 
         @@ -36,9 +36,10 @@ class Ollama::Commands::Embed 
     | 
|
| 
       36 
36 
     | 
    
         
             
              # @param options [ Ollama::Options, nil ] optional configuration parameters for the model
         
     | 
| 
       37 
37 
     | 
    
         
             
              # @param truncate [ Boolean, nil ] whether to truncate the input if it exceeds context length
         
     | 
| 
       38 
38 
     | 
    
         
             
              # @param keep_alive [ String, nil ] duration to keep the model loaded in memory
         
     | 
| 
       39 
     | 
    
         
            -
               
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
      
 39 
     | 
    
         
            +
              # @param dimensions [ Integer, nil ] truncates the output embedding to the specified dimension.
         
     | 
| 
      
 40 
     | 
    
         
            +
              def initialize(model:, input:, options: nil, truncate: nil, keep_alive: nil, dimensions: nil)
         
     | 
| 
      
 41 
     | 
    
         
            +
                @model, @input, @options, @truncate, @keep_alive, @dimensions =
         
     | 
| 
      
 42 
     | 
    
         
            +
                  model, input, options, truncate, keep_alive, dimensions
         
     | 
| 
       42 
43 
     | 
    
         
             
                @stream = false
         
     | 
| 
       43 
44 
     | 
    
         
             
              end
         
     | 
| 
       44 
45 
     | 
    
         | 
| 
         @@ -67,6 +68,12 @@ class Ollama::Commands::Embed 
     | 
|
| 
       67 
68 
     | 
    
         
             
              # @return [ String, nil ] duration to keep the model loaded in memory
         
     | 
| 
       68 
69 
     | 
    
         
             
              attr_reader :keep_alive
         
     | 
| 
       69 
70 
     | 
    
         | 
| 
      
 71 
     | 
    
         
            +
              # The dimensions attribute reader returns the dimensions associated with the
         
     | 
| 
      
 72 
     | 
    
         
            +
              # object.
         
     | 
| 
      
 73 
     | 
    
         
            +
              #
         
     | 
| 
      
 74 
     | 
    
         
            +
              # @return [ Integer, nil ] the dimensions value stored in the instance variable
         
     | 
| 
      
 75 
     | 
    
         
            +
              attr_reader :dimensions
         
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
       70 
77 
     | 
    
         
             
              # The stream attribute reader returns the streaming behavior setting
         
     | 
| 
       71 
78 
     | 
    
         
             
              # associated with the object.
         
     | 
| 
       72 
79 
     | 
    
         
             
              #
         
     | 
| 
         @@ -74,7 +81,6 @@ class Ollama::Commands::Embed 
     | 
|
| 
       74 
81 
     | 
    
         
             
              #         streaming is enabled for the command execution (always false for embed commands)
         
     | 
| 
       75 
82 
     | 
    
         
             
              attr_reader :stream
         
     | 
| 
       76 
83 
     | 
    
         | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
84 
     | 
    
         
             
              # The client attribute writer allows setting the client instance associated
         
     | 
| 
       79 
85 
     | 
    
         
             
              # with the object.
         
     | 
| 
       80 
86 
     | 
    
         
             
              #
         
     | 
    
        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. 
     | 
| 
      
 2 
     | 
    
         
            +
            # stub: ollama-ruby 1.9.0 ruby lib
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            Gem::Specification.new do |s|
         
     | 
| 
       5 
5 
     | 
    
         
             
              s.name = "ollama-ruby".freeze
         
     | 
| 
       6 
     | 
    
         
            -
              s.version = "1. 
     | 
| 
      
 6 
     | 
    
         
            +
              s.version = "1.9.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]
         
     | 
| 
         @@ -13,18 +13,18 @@ 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]
         
     | 
| 
       20 
20 
     | 
    
         
             
              s.required_ruby_version = Gem::Requirement.new("~> 3.1".freeze)
         
     | 
| 
       21 
     | 
    
         
            -
              s.rubygems_version = "3. 
     | 
| 
      
 21 
     | 
    
         
            +
              s.rubygems_version = "3.7.2".freeze
         
     | 
| 
       22 
22 
     | 
    
         
             
              s.summary = "Interacting with the Ollama API".freeze
         
     | 
| 
       23 
23 
     | 
    
         
             
              s.test_files = ["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]
         
     | 
| 
       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.8".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])
         
     | 
| 
         @@ -36,6 +36,31 @@ describe Ollama::Commands::Embed do 
     | 
|
| 
       36 
36 
     | 
    
         
             
                )
         
     | 
| 
       37 
37 
     | 
    
         
             
              end
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
      
 39 
     | 
    
         
            +
              it 'can be instantiated with dimensions' do
         
     | 
| 
      
 40 
     | 
    
         
            +
                embed = described_class.new(
         
     | 
| 
      
 41 
     | 
    
         
            +
                  model: 'all-minilm',
         
     | 
| 
      
 42 
     | 
    
         
            +
                  input: 'Why is the sky blue?',
         
     | 
| 
      
 43 
     | 
    
         
            +
                  dimensions: 128
         
     | 
| 
      
 44 
     | 
    
         
            +
                )
         
     | 
| 
      
 45 
     | 
    
         
            +
                expect(embed).to be_a described_class
         
     | 
| 
      
 46 
     | 
    
         
            +
                expect(embed.dimensions).to eq(128)
         
     | 
| 
      
 47 
     | 
    
         
            +
              end
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
              it 'can be converted to JSON with dimensions' do
         
     | 
| 
      
 50 
     | 
    
         
            +
                embed = described_class.new(
         
     | 
| 
      
 51 
     | 
    
         
            +
                  model: 'all-minilm',
         
     | 
| 
      
 52 
     | 
    
         
            +
                  input: 'Why is the sky blue?',
         
     | 
| 
      
 53 
     | 
    
         
            +
                  dimensions: 128
         
     | 
| 
      
 54 
     | 
    
         
            +
                )
         
     | 
| 
      
 55 
     | 
    
         
            +
                expect(embed.as_json).to include(
         
     | 
| 
      
 56 
     | 
    
         
            +
                  model: 'all-minilm',
         
     | 
| 
      
 57 
     | 
    
         
            +
                  input: 'Why is the sky blue?',
         
     | 
| 
      
 58 
     | 
    
         
            +
                  dimensions: 128
         
     | 
| 
      
 59 
     | 
    
         
            +
                )
         
     | 
| 
      
 60 
     | 
    
         
            +
                expect(embed.to_json).to eq(
         
     | 
| 
      
 61 
     | 
    
         
            +
                  '{"model":"all-minilm","input":"Why is the sky blue?","dimensions":128,"stream":false}'
         
     | 
| 
      
 62 
     | 
    
         
            +
                )
         
     | 
| 
      
 63 
     | 
    
         
            +
              end
         
     | 
| 
       39 
64 
     | 
    
         | 
| 
       40 
65 
     | 
    
         
             
              it 'can perform' do
         
     | 
| 
       41 
66 
     | 
    
         
             
                embed = described_class.new(
         
     | 
| 
         @@ -1,6 +1,11 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require 'spec_helper'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
      
 3 
     | 
    
         
            +
            skip_reason = nil
         
     | 
| 
      
 4 
     | 
    
         
            +
            unless File.executable?(`which say`.chomp)
         
     | 
| 
      
 5 
     | 
    
         
            +
              skip_reason = 'Command say not in path'
         
     | 
| 
      
 6 
     | 
    
         
            +
            end
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            describe Ollama::Handlers::Say, skip: skip_reason do
         
     | 
| 
       4 
9 
     | 
    
         
             
              let :say do
         
     | 
| 
       5 
10 
     | 
    
         
             
                described_class.new
         
     | 
| 
       6 
11 
     | 
    
         
             
              end
         
     | 
    
        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. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.9.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. 
     | 
| 
      
 18 
     | 
    
         
            +
                    version: '2.8'
         
     | 
| 
       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.8'
         
     | 
| 
       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
         
     | 
| 
         @@ -389,7 +383,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       389 
383 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       390 
384 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       391 
385 
     | 
    
         
             
            requirements: []
         
     | 
| 
       392 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 386 
     | 
    
         
            +
            rubygems_version: 3.7.2
         
     | 
| 
       393 
387 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       394 
388 
     | 
    
         
             
            summary: Interacting with the Ollama API
         
     | 
| 
       395 
389 
     | 
    
         
             
            test_files:
         
     | 
    
        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
         
     |