parameter_substitution 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28e66926e2dc18a7902f3670410a6290b34d44da4f490045d15787085eacf800
4
- data.tar.gz: b3618e294a0c4f07573382bacc574f8684abebf1dd8da4e1eb5752027c9e2470
3
+ metadata.gz: 9b63fba8d03676790dc3e2dae080de2954298061b8c0d159b966eab4c33c70f5
4
+ data.tar.gz: c00fe3373fe30323f8d7bb2f90c83dd43b575615b51752d6e63b6386f3f78cad
5
5
  SHA512:
6
- metadata.gz: 2b383ce1da83355a4c5db67561491cfc83636bb4b7ab97d1fe72e1ecc622b44451c8ff1be54083be0b69648a16e925eb1253552b35feadacdfb13a91e86afe67
7
- data.tar.gz: 3fb0bd0c28df9e4b6b8b4155894717aa31e1d5f0773b5060769956b55c58ceec835537cd9574506e568191375673205823b9edf7bc7be57ae64b6f2f9c75e65f
6
+ metadata.gz: 895c38f6d723c6dfa601ef6c974cd2c5764bc9e284ef498ea125ed630f70ffe7269b29340330e8b453ccdb82f50b92de3965aaa1ea19b6d5ec0e9b333723ee51
7
+ data.tar.gz: 1eccaaeebd4644836d1a52db75ad3e28b39c05582ddad7a7a22a3dc4d4f27eda99130bbac71d3562e697f53eaed8b7efb293fbccefe14fddd88138869855147c
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ParameterSubstitution::Formatters::HexToBase64 < ParameterSubstitution::Formatters::Base
4
+ def self.description
5
+ "Converts hex encoded strings to base64 encoding"
6
+ end
7
+
8
+ def self.format(value)
9
+ [[value].pack("H*")].pack("m0")
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ParameterSubstitution
4
- VERSION = "1.2.0"
4
+ VERSION = "1.3.0"
5
5
  end
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: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca Development
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-29 00:00:00.000000000 Z
11
+ date: 2022-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '5.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '7'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.2'
29
+ version: '5.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '7'
@@ -110,6 +110,7 @@ files:
110
110
  - lib/parameter_substitution/formatters/duration_as_time.rb
111
111
  - lib/parameter_substitution/formatters/duration_grouped_by_description.rb
112
112
  - lib/parameter_substitution/formatters/greater_than_value.rb
113
+ - lib/parameter_substitution/formatters/hex_to_base64.rb
113
114
  - lib/parameter_substitution/formatters/if_nil.rb
114
115
  - lib/parameter_substitution/formatters/if_truthy.rb
115
116
  - lib/parameter_substitution/formatters/in_timezone.rb
@@ -140,7 +141,7 @@ homepage: https://github.com/Invoca/parameter_substitution
140
141
  licenses: []
141
142
  metadata:
142
143
  allowed_push_host: https://rubygems.org
143
- post_install_message:
144
+ post_install_message:
144
145
  rdoc_options: []
145
146
  require_paths:
146
147
  - lib
@@ -155,8 +156,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
156
  - !ruby/object:Gem::Version
156
157
  version: '0'
157
158
  requirements: []
158
- rubygems_version: 3.0.3
159
- signing_key:
159
+ rubygems_version: 3.1.6
160
+ signing_key:
160
161
  specification_version: 4
161
162
  summary: Handles parsing an input strings with embedded substitution parameters and
162
163
  replacing them with values from a provided mapping.