prompt_manager 0.5.3 → 0.5.5
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 +5 -0
- data/lib/prompt_manager/prompt.rb +3 -2
- data/lib/prompt_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5163d8125c7442be07115fd1fb8a20c143f28a05bd6cf9918ff987893ddb3ba9
|
4
|
+
data.tar.gz: 5b5135be217b02f326c415d0a0eb902eadd57f3621b0787346ee2e0a38b6a419
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71a5744768aad0b1459d8b1dd0043070ec69f871e2723dff0ca1720c55f0d2aaa1a6080b4f00f6ee3eaa770872fa5cbf267b9a89a6cefdb3b5321a06192a942a
|
7
|
+
data.tar.gz: 9a711c31b0a1029e2561bb5c0b2debe6239e5ed036ce49861c939bd56db8190b4d34e498d269ceb7556adf7bed500c47a0d52e65921a08558013479f7f14dc6c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
## Unreleased
|
2
2
|
|
3
3
|
## Released
|
4
|
+
### [0.5.5] = 2025-05-21
|
5
|
+
- fixed bug in parameter substitution when value is an Array now uses last entry
|
6
|
+
|
7
|
+
### [0.5.4] = 2025-05-18
|
8
|
+
- fixed typo in the Prompt class envvar should have been envar which prevented shell integration from taking place.
|
4
9
|
|
5
10
|
### [0.5.3] = 2025-05-14
|
6
11
|
- fixed issue were directives were not getting their content added to the prompt text
|
@@ -146,6 +146,7 @@ class PromptManager::Prompt
|
|
146
146
|
def substitute_values(input_text, values_hash)
|
147
147
|
if values_hash.is_a?(Hash) && !values_hash.empty?
|
148
148
|
values_hash.each do |key, value|
|
149
|
+
value = value.last if value.is_a?(Array)
|
149
150
|
input_text = input_text.gsub(key, value)
|
150
151
|
end
|
151
152
|
end
|
@@ -153,10 +154,10 @@ class PromptManager::Prompt
|
|
153
154
|
end
|
154
155
|
|
155
156
|
def erb? = @erb_flag
|
156
|
-
def
|
157
|
+
def envar? = @envar_flag
|
157
158
|
|
158
159
|
def substitute_env_vars(input_text)
|
159
|
-
return input_text unless
|
160
|
+
return input_text unless envar?
|
160
161
|
|
161
162
|
input_text.gsub(/\$(\w+)|\$\{(\w+)\}/) do |match|
|
162
163
|
env_var = $1 || $2
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prompt_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dewayne VanHoozer
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
- !ruby/object:Gem::Version
|
174
174
|
version: '0'
|
175
175
|
requirements: []
|
176
|
-
rubygems_version: 3.6.
|
176
|
+
rubygems_version: 3.6.9
|
177
177
|
specification_version: 4
|
178
178
|
summary: Manage prompts for use with gen-AI processes
|
179
179
|
test_files: []
|