parameter_substitution 3.0.0.pre.0 → 3.0.0.pre.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: b7d5937f29714849ed0f6dcb964e0976a010cf106cf0c7a3abc8fc431d93b770
4
- data.tar.gz: b5410f60e594f40f6becd805a050b0e385ad58f71e049a421b6a7c07f76d8542
3
+ metadata.gz: ffc3265d1621830cdaed145097ef5b3d5f1b565112e761428128e60a41ec5ea2
4
+ data.tar.gz: 84a25b5cdb7be43c5cb1e8391bdfa00fbfdd7802470c26d013b56363620c0a8b
5
5
  SHA512:
6
- metadata.gz: 385b533cc23ad5c51c9e3e8de2aa4898617b375d1692523cd4f1c34df0a20256cb074e73fb7d5c7303b18540797164c58e2fca212392b35a74d685439c31c014
7
- data.tar.gz: 8b4f90595113426f82ca45c691056f0fcb602bdad90df6f0e15e7996edb0d2f60b3f09fc432a0defd023ef5a8f5ce048e6482b792340f29a1e0daa395c8afc46
6
+ metadata.gz: cfcc848d6aa17e0508123d4ec52b516ce02e971a4111fbf56be893168487612a8ef3179b798dcca80ee7d961f5f89f50a188ddfa82156f5ec36cc27440e81a77
7
+ data.tar.gz: 7dfda5d74dc1863861fd451a20e80d1f4d73f9d28e98e2b16c8dac2688840506c0eec5c86c79cbd2eca10b95f9bd4230bbd37932004380d033c83e28e45ab0a1
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ParameterSubstitution
4
- VERSION = "3.0.0-0"
4
+ VERSION = "3.0.0-1"
5
5
  end
@@ -86,14 +86,16 @@ class ParameterSubstitution
86
86
  # @param [Hash, nil] context_overrides Optional overrides for context attributes
87
87
  # @return [ParameterSubstitution::Context] The constructed context
88
88
  def build_context(string_with_tokens, mapping, context_overrides)
89
+ override_options = context_overrides || {}
89
90
  base_options = {
90
91
  input: string_with_tokens,
91
92
  mapping: mapping
92
93
  }
93
94
 
94
- ParameterSubstitution::Context.new(**base_options.merge(context_overrides || {}))
95
+ ParameterSubstitution::Context.new(**override_options.merge(base_options))
95
96
  end
96
97
 
98
+
97
99
  def parse_expression(context)
98
100
  cst = ParameterSubstitution::Parser.new(
99
101
  parameter_start: context.parameter_start,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parameter_substitution
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.0
4
+ version: 3.0.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca Development
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-15 00:00:00.000000000 Z
11
+ date: 2025-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport