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 +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +27 -9
- data/README_ja.md +27 -9
- data/lib/girb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3444545df799e66732b89937b28d45758677db42c567c855b18bbea51bb09a63
|
|
4
|
+
data.tar.gz: bc5b78829ab8739e2add32cd2aedc139705d749db0efe176b25e1da1dce25822
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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