prompt_manager 0.5.4 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1961ec15cc2c3915f9fbc7d4c062b8652843684e39ba885abb5c2d470bf3b1f
4
- data.tar.gz: 3fc189bc89a8eb11c374fd5d27e857cc6da77757c46420f485ff8507eacd0f47
3
+ metadata.gz: 5163d8125c7442be07115fd1fb8a20c143f28a05bd6cf9918ff987893ddb3ba9
4
+ data.tar.gz: 5b5135be217b02f326c415d0a0eb902eadd57f3621b0787346ee2e0a38b6a419
5
5
  SHA512:
6
- metadata.gz: cc25a726fc9a7ff1d29f05f636eba74edf40035a78d6918927ea79b1009c863d465860b4561c4ef1672c8df5c7f2dd69acc4457045c44177717eee83c2699729
7
- data.tar.gz: 29598f9c4d15e1f4781a028fa42c2c65f46ba2883880c8ed10f9e9c31353be1488256f6c3212a180615eff21a09a6681a1beb793b8417d0b50674469b002bdcb
6
+ metadata.gz: 71a5744768aad0b1459d8b1dd0043070ec69f871e2723dff0ca1720c55f0d2aaa1a6080b4f00f6ee3eaa770872fa5cbf267b9a89a6cefdb3b5321a06192a942a
7
+ data.tar.gz: 9a711c31b0a1029e2561bb5c0b2debe6239e5ed036ce49861c939bd56db8190b4d34e498d269ceb7556adf7bed500c47a0d52e65921a08558013479f7f14dc6c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
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
+
4
7
  ### [0.5.4] = 2025-05-18
5
8
  - fixed typo in the Prompt class envvar should have been envar which prevented shell integration from taking place.
6
9
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PromptManager
4
- VERSION = "0.5.4"
4
+ VERSION = "0.5.5"
5
5
  end
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
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dewayne VanHoozer