ollama_chat 0.0.20 → 0.0.21

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.
@@ -4,8 +4,7 @@ describe OllamaChat::Switches do
4
4
  describe OllamaChat::Switches::Switch do
5
5
  let :switch do
6
6
  described_class.new(
7
- :test,
8
- config: config,
7
+ value: config.test,
9
8
  msg: {
10
9
  true => "Enabled.",
11
10
  false => "Disabled.",
@@ -15,7 +14,7 @@ describe OllamaChat::Switches do
15
14
 
16
15
  context 'default to false' do
17
16
  let :config do
18
- double(test?: false)
17
+ double(test: false)
19
18
  end
20
19
 
21
20
  it 'can be switched on' do
@@ -38,7 +37,7 @@ describe OllamaChat::Switches do
38
37
 
39
38
  context 'default to false' do
40
39
  let :config do
41
- double(test?: true)
40
+ double(test: true)
42
41
  end
43
42
 
44
43
  it 'can be switched on' do
@@ -63,13 +62,12 @@ describe OllamaChat::Switches do
63
62
  describe OllamaChat::Switches::CombinedSwitch do
64
63
  describe 'off' do
65
64
  let :config do
66
- double(test1?: true, test2?: false)
65
+ double(test1: true, test2: false)
67
66
  end
68
67
 
69
68
  let :switch1 do
70
69
  OllamaChat::Switches::Switch.new(
71
- :test1,
72
- config: config,
70
+ value: config.test1,
73
71
  msg: {
74
72
  true => "Enabled.",
75
73
  false => "Disabled.",
@@ -79,8 +77,7 @@ describe OllamaChat::Switches do
79
77
 
80
78
  let :switch2 do
81
79
  OllamaChat::Switches::Switch.new(
82
- :test2,
83
- config: config,
80
+ value: config.test2,
84
81
  msg: {
85
82
  true => "Enabled.",
86
83
  false => "Disabled.",
@@ -117,13 +114,12 @@ describe OllamaChat::Switches do
117
114
 
118
115
  describe 'on' do
119
116
  let :config do
120
- double(test1?: false, test2?: true)
117
+ double(test1: false, test2: true)
121
118
  end
122
119
 
123
120
  let :switch1 do
124
121
  OllamaChat::Switches::Switch.new(
125
- :test1,
126
- config: config,
122
+ value: config.test1,
127
123
  msg: {
128
124
  true => "Enabled.",
129
125
  false => "Disabled.",
@@ -133,8 +129,7 @@ describe OllamaChat::Switches do
133
129
 
134
130
  let :switch2 do
135
131
  OllamaChat::Switches::Switch.new(
136
- :test2,
137
- config: config,
132
+ value: config.test2,
138
133
  msg: {
139
134
  true => "Enabled.",
140
135
  false => "Disabled.",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ollama_chat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
@@ -401,6 +401,7 @@ extra_rdoc_files:
401
401
  - lib/ollama_chat/utils/fetcher.rb
402
402
  - lib/ollama_chat/utils/file_argument.rb
403
403
  - lib/ollama_chat/version.rb
404
+ - lib/ollama_chat/vim.rb
404
405
  - lib/ollama_chat/web_searching.rb
405
406
  files:
406
407
  - ".all_images.yml"
@@ -439,6 +440,7 @@ files:
439
440
  - lib/ollama_chat/utils/fetcher.rb
440
441
  - lib/ollama_chat/utils/file_argument.rb
441
442
  - lib/ollama_chat/version.rb
443
+ - lib/ollama_chat/vim.rb
442
444
  - lib/ollama_chat/web_searching.rb
443
445
  - ollama_chat.gemspec
444
446
  - redis/redis.conf