parameter_substitution 1.3.1 → 1.3.2.pre.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17b42efc01f38c7cfdf53998e37226907e7a94f3650d4530cb62c63b6904f5b4
|
4
|
+
data.tar.gz: a5f254f8cc0cf823bdc56f559fc0269c054ad998ae0fa9eefbb2cf1b13f25de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff587f35296e30204628c80d9800816071538244835276db3e4cad6711d4cd15714fe78b91dffb9cfeacc0b7ff227264e90331b35f1971666428f19ad937709a
|
7
|
+
data.tar.gz: f9bc8b90dbcc2b2576d2518cec22a57e9af06f996729a103f31eb45fb1fd1e353216d0ec218ab8b2e55e95122f908a47277d97921e0e069d637e41ebf6ccca18
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class ParameterSubstitution::Formatters::StringToBase64 < ParameterSubstitution::Formatters::Base
|
4
|
+
def self.description
|
5
|
+
"Converts strings to base64 encoding"
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.format(value)
|
9
|
+
return nil if value.nil?
|
10
|
+
|
11
|
+
[value].pack("m0")
|
12
|
+
end
|
13
|
+
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.3.
|
4
|
+
version: 1.3.2.pre.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca Development
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- lib/parameter_substitution/formatters/split_after_colon.rb
|
128
128
|
- lib/parameter_substitution/formatters/split_and_find.rb
|
129
129
|
- lib/parameter_substitution/formatters/split_before_colon.rb
|
130
|
+
- lib/parameter_substitution/formatters/string_to_base64.rb
|
130
131
|
- lib/parameter_substitution/formatters/time_with_seconds.rb
|
131
132
|
- lib/parameter_substitution/formatters/trim.rb
|
132
133
|
- lib/parameter_substitution/formatters/upper.rb
|
@@ -152,9 +153,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
152
153
|
version: '0'
|
153
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
155
|
requirements:
|
155
|
-
- - "
|
156
|
+
- - ">"
|
156
157
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
158
|
+
version: 1.3.1
|
158
159
|
requirements: []
|
159
160
|
rubygems_version: 3.1.6
|
160
161
|
signing_key:
|