girb 0.1.0 → 0.1.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: 16db97a82963a642f3816a1083664d3434e94a8bbe6c589ef21cc2da21d0ba46
4
- data.tar.gz: f1bb07ca19f8c2af6d11cb0ba37738e9948a0bc0f286e38494a00bc7113ce482
3
+ metadata.gz: 3444545df799e66732b89937b28d45758677db42c567c855b18bbea51bb09a63
4
+ data.tar.gz: bc5b78829ab8739e2add32cd2aedc139705d749db0efe176b25e1da1dce25822
5
5
  SHA512:
6
- metadata.gz: ae327ef4bd1ac6d9cdfdf18a2135707ab6959a9af1390737a2e02bc4fc05dd586469d4196d94136b37d140c405dae379d2d987dd30dfb70253aa507637864cd7
7
- data.tar.gz: ab3de747ee65f5d5d77e72203261f0a2c110e6c3d5fa5b39a299aded75f38d64e6de91ce1ce854a3044556c57b8d28933663afca13ce5159b8006f4f38fea427
6
+ metadata.gz: 2a2b5fa25eab058edcc21e8ef06b95b1df8ca256ff5608fe89fe72eac7056429894e1b665087ca46e5dfc32586097e4e78652dfa59a3d92a008a7c981ab042c4
7
+ data.tar.gz: 770e74219dadc08011320fd3b48c8ad231055ccb0ed5827bce2221042cc8208b0eaca094015a4786bbfd6306a843df9d255106ca3f17659b5027df6ce6e85acf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.1] - 2026-02-03
4
+
5
+ ### Changed
6
+
7
+ - GIRB_PROVIDER environment variable is now required for `girb` command
8
+ - Recommend ~/.irbrc configuration instead of environment variables
9
+ - Remove legacy configuration (gemini_api_key, model accessors)
10
+ - Remove built-in provider auto-detection
11
+
12
+ ### Added
13
+
14
+ - GIRB_MODEL environment variable support
15
+
3
16
  ## [0.1.0] - 2025-02-02
4
17
 
5
18
  ### Added
data/README.md CHANGED
@@ -57,25 +57,42 @@ You can also [create your own provider](#custom-providers).
57
57
  girb-ruby_llm supports multiple LLM providers through RubyLLM.
58
58
 
59
59
  ```bash
60
- # Install
61
60
  gem install girb girb-ruby_llm
61
+ ```
62
62
 
63
- # Set provider and API key
64
- export GIRB_PROVIDER=girb-ruby_llm
65
- export GEMINI_API_KEY=your-api-key # or OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.
63
+ Add to your `~/.irbrc`:
64
+
65
+ ```ruby
66
+ require 'girb-ruby_llm'
67
+
68
+ RubyLLM.configure do |config|
69
+ config.gemini_api_key = 'your-api-key'
70
+ end
71
+
72
+ Girb.configure do |c|
73
+ c.provider = Girb::Providers::RubyLlm.new(model: 'gemini-2.5-flash')
74
+ end
66
75
  ```
67
76
 
68
- See [girb-ruby_llm README](https://github.com/rira100000000/girb-ruby_llm) for detailed configuration.
77
+ See [girb-ruby_llm README](https://github.com/rira100000000/girb-ruby_llm) for more options (OpenAI, Anthropic, Ollama, etc.).
69
78
 
70
79
  ### Using girb-gemini
71
80
 
72
81
  ```bash
73
- # Install
74
82
  gem install girb girb-gemini
83
+ ```
84
+
85
+ Add to your `~/.irbrc`:
75
86
 
76
- # Set provider and API key
77
- export GIRB_PROVIDER=girb-gemini
78
- export GEMINI_API_KEY=your-api-key
87
+ ```ruby
88
+ require 'girb-gemini'
89
+
90
+ Girb.configure do |c|
91
+ c.provider = Girb::Providers::Gemini.new(
92
+ api_key: 'your-api-key',
93
+ model: 'gemini-2.5-flash'
94
+ )
95
+ end
79
96
  ```
80
97
 
81
98
  ## Usage
@@ -151,6 +168,7 @@ girb --help # Show help
151
168
  | Variable | Description |
152
169
  |----------|-------------|
153
170
  | `GIRB_PROVIDER` | **Required.** Provider gem to load (e.g., `girb-ruby_llm`, `girb-gemini`) |
171
+ | `GIRB_MODEL` | Model to use (e.g., `gemini-2.5-flash`, `gpt-4o`). Required for girb-ruby_llm. |
154
172
  | `GIRB_DEBUG` | Set to `1` to enable debug output |
155
173
 
156
174
  ## Available Tools
data/README_ja.md CHANGED
@@ -55,25 +55,42 @@ export GIRB_PROVIDER=girb-ruby_llm
55
55
  girb-ruby_llmはRubyLLMを通じて複数のLLMプロバイダーをサポートしています。
56
56
 
57
57
  ```bash
58
- # インストール
59
58
  gem install girb girb-ruby_llm
59
+ ```
60
60
 
61
- # プロバイダーとAPIキーを設定
62
- export GIRB_PROVIDER=girb-ruby_llm
63
- export GEMINI_API_KEY=your-api-key # または OPENAI_API_KEY、ANTHROPIC_API_KEY 等
61
+ `~/.irbrc` に追加:
62
+
63
+ ```ruby
64
+ require 'girb-ruby_llm'
65
+
66
+ RubyLLM.configure do |config|
67
+ config.gemini_api_key = 'your-api-key'
68
+ end
69
+
70
+ Girb.configure do |c|
71
+ c.provider = Girb::Providers::RubyLlm.new(model: 'gemini-2.5-flash')
72
+ end
64
73
  ```
65
74
 
66
- 詳細な設定については [girb-ruby_llm README](https://github.com/rira100000000/girb-ruby_llm) を参照してください。
75
+ 詳細な設定(OpenAI、Anthropic、Ollama等)については [girb-ruby_llm README](https://github.com/rira100000000/girb-ruby_llm) を参照してください。
67
76
 
68
77
  ### girb-geminiを使用する場合
69
78
 
70
79
  ```bash
71
- # インストール
72
80
  gem install girb girb-gemini
81
+ ```
82
+
83
+ `~/.irbrc` に追加:
73
84
 
74
- # プロバイダーとAPIキーを設定
75
- export GIRB_PROVIDER=girb-gemini
76
- export GEMINI_API_KEY=your-api-key
85
+ ```ruby
86
+ require 'girb-gemini'
87
+
88
+ Girb.configure do |c|
89
+ c.provider = Girb::Providers::Gemini.new(
90
+ api_key: 'your-api-key',
91
+ model: 'gemini-2.5-flash'
92
+ )
93
+ end
77
94
  ```
78
95
 
79
96
  ## 使い方
@@ -149,6 +166,7 @@ girb --help # ヘルプを表示
149
166
  | 変数 | 説明 |
150
167
  |------|------|
151
168
  | `GIRB_PROVIDER` | **必須。** 読み込むプロバイダーgem(例: `girb-ruby_llm`、`girb-gemini`) |
169
+ | `GIRB_MODEL` | 使用するモデル(例: `gemini-2.5-flash`、`gpt-4o`)。girb-ruby_llmでは必須。 |
152
170
  | `GIRB_DEBUG` | `1`に設定するとデバッグ出力を有効化 |
153
171
 
154
172
  ## AIが使用できるツール
data/lib/girb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Girb
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: girb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - rira100000000