neh 0.0.9 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e276a780f06cdaf6b55f81947526a962de0918b09409e3e5a5e70275ec7fa4a3
4
- data.tar.gz: 3d85fd18e7d6f236e08adf32d371ace95490c6183b335d98ba753217607b4a18
3
+ metadata.gz: 93c44325fa63190f3f4ea3ac1360e5f79ba873f7631aa6123ca77db7bfd54e1e
4
+ data.tar.gz: 94eadfd75816415b851bbb86571d262b6b86c476662efcc4f207138f8d9066d7
5
5
  SHA512:
6
- metadata.gz: 3129452874d64f2804670335f4be1b213d2ad7e7ded7cd653b3d463db1e99ad5fb3715e2d94be28b8b63e60f3fe5dced91b503fc989c5481ce363865ce4dddf3
7
- data.tar.gz: 80dd28451646cb272cab30176c4a6e55714bc425d90b06a622c4c5d8843664a533f34f14ef7ae9421906697cf9fb2c74883833b38359507e4f23a7483ed13fcd
6
+ metadata.gz: 6224764c0498bbe90b39f3a13feb71c77a42e0a2103e57e647335c7ae5f07049155734ceb854b8b7b584bf37a916311005bffef5e7397ffcde9b1311dcafd8c7
7
+ data.tar.gz: 7b093d1222b7ccf38cc29904b38c69357c3c7a7caad51ea5a44ec866079f008b48d2186175158b4161e0c79c3db2768973b10158f833c24262c036f0fe29083f
data/exe/neh CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- $VERBOSE = nil
4
+ $VERBOSE = nil if ENV['NEH_DEBUG'].nil? && RUBY_VERSION == '3.2.2'
5
5
 
6
6
  require "neh/thor"
7
7
 
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Neh
4
+ module Cli
5
+ class Version
6
+ def execute
7
+ puts "neh version #{Neh::VERSION}"
8
+ end
9
+ end
10
+ end
11
+ end
data/lib/neh/thor.rb CHANGED
@@ -4,8 +4,16 @@ require 'thor'
4
4
 
5
5
  require_relative 'cli'
6
6
  require_relative 'cli/o'
7
+ require_relative 'cli/version'
7
8
 
8
9
  class Neh::Thor < Thor
10
+ map %w[--version -v] => :version
11
+
12
+ desc 'version', 'Displays the current version of the application.'
13
+ def version
14
+ Neh::Cli::Version.new.execute
15
+ end
16
+
9
17
  desc 'o', 'This is the most standard command you can use to query an LLM AI.'
10
18
  def o(*)
11
19
  Neh::Cli::O.new(*, options:).execute
data/lib/neh/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neh
4
- VERSION = "0.0.9"
4
+ VERSION = "0.0.11"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atsushi Ishida
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-01 00:00:00.000000000 Z
11
+ date: 2024-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-io
@@ -85,6 +85,7 @@ files:
85
85
  - lib/neh.rb
86
86
  - lib/neh/cli.rb
87
87
  - lib/neh/cli/o.rb
88
+ - lib/neh/cli/version.rb
88
89
  - lib/neh/thor.rb
89
90
  - lib/neh/version.rb
90
91
  - sig/neh.rbs
@@ -95,7 +96,7 @@ metadata:
95
96
  source_code_uri: https://github.com/gipcompany/neh
96
97
  changelog_uri: https://github.com/gipcompany/neh/blob/main/CHANGELOG.md
97
98
  rubygems_mfa_required: 'true'
98
- post_install_message:
99
+ post_install_message:
99
100
  rdoc_options: []
100
101
  require_paths:
101
102
  - lib
@@ -110,8 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
111
  - !ruby/object:Gem::Version
111
112
  version: '0'
112
113
  requirements: []
113
- rubygems_version: 3.5.14
114
- signing_key:
114
+ rubygems_version: 3.4.10
115
+ signing_key:
115
116
  specification_version: 4
116
117
  summary: CLI client for AI with large language models
117
118
  test_files: []