parameter_substitution 1.3.0 → 1.3.1

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: 9b63fba8d03676790dc3e2dae080de2954298061b8c0d159b966eab4c33c70f5
4
- data.tar.gz: c00fe3373fe30323f8d7bb2f90c83dd43b575615b51752d6e63b6386f3f78cad
3
+ metadata.gz: 85c67efeaefb3f001e0463995bc4fb9f3e74f355a0d90f1e88c9758098bdfcce
4
+ data.tar.gz: d40e06c430ee77c4c5955de0564f5dc3ec9cd728dd61904838110839b68d9553
5
5
  SHA512:
6
- metadata.gz: 895c38f6d723c6dfa601ef6c974cd2c5764bc9e284ef498ea125ed630f70ffe7269b29340330e8b453ccdb82f50b92de3965aaa1ea19b6d5ec0e9b333723ee51
7
- data.tar.gz: 1eccaaeebd4644836d1a52db75ad3e28b39c05582ddad7a7a22a3dc4d4f27eda99130bbac71d3562e697f53eaed8b7efb293fbccefe14fddd88138869855147c
6
+ metadata.gz: fc93edd7f1370d8bc70bb5e54194dfd0931616951e91528849c7589de68be4b8d0dcdd5a1e02c20f3f696e4038f01e05a73914d1909d74132c02c59aea8213dd
7
+ data.tar.gz: 5409c67d415ba25c74369151dc109c32c3077967e56d449aaaf43bb8ef5213bbff69d002265bb5ca0e916f141f7fa110736637fd7ed434a162f3ccadadd7c0bf
@@ -6,6 +6,8 @@ class ParameterSubstitution::Formatters::HexToBase64 < ParameterSubstitution::Fo
6
6
  end
7
7
 
8
8
  def self.format(value)
9
+ raise ArgumentError, "Bad non-hex input to hex_to_base64" if value !~ /^\h+$/
10
+
9
11
  [[value].pack("H*")].pack("m0")
10
12
  end
11
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ParameterSubstitution
4
- VERSION = "1.3.0"
4
+ VERSION = "1.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parameter_substitution
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca Development