relishable 0.43 → 0.44
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 +4 -4
- data/Gemfile.lock +18 -18
- data/lib/relish/encryption_helper.rb +4 -5
- data/lib/relish/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f86a33178d81efd6d22a01cda3f4e254251b8f153afd1e4bddb6581c56468972
|
|
4
|
+
data.tar.gz: ad2c949dad4dcd6e6bb51c9f9c8f71eab32990ccc6d7ac82104a2bd90225772e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8f999b98885c32e2b6c3382fe24dd5f1c2a35b792dc2698839d316a9a82dec9a8c8d03e7f633ac1967a7a1ed1547d1b48dee26ea65d6ac594859c5e16a3f9f6
|
|
7
|
+
data.tar.gz: 81c2ba2e9622151895c271f16927e46ac3a506c0cb568253ba50f7586f4b1661e06c5e059db3a4b6e5f10305fd2f48f4e76d491c6f0c792182ef77deb6fd31a0
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
relishable (0.
|
|
4
|
+
relishable (0.44)
|
|
5
5
|
fernet (~> 2.3)
|
|
6
6
|
fog-aws (~> 3.12.0)
|
|
7
7
|
net-ssh (~> 6.1.0)
|
|
@@ -15,8 +15,8 @@ GEM
|
|
|
15
15
|
coderay (1.1.3)
|
|
16
16
|
crack (0.4.5)
|
|
17
17
|
rexml
|
|
18
|
-
diff-lcs (1.
|
|
19
|
-
excon (0.
|
|
18
|
+
diff-lcs (1.5.0)
|
|
19
|
+
excon (0.92.3)
|
|
20
20
|
fernet (2.3)
|
|
21
21
|
valcro (~> 0.1)
|
|
22
22
|
fog-aws (3.12.0)
|
|
@@ -24,10 +24,10 @@ GEM
|
|
|
24
24
|
fog-json (~> 1.1)
|
|
25
25
|
fog-xml (~> 0.1)
|
|
26
26
|
ipaddress (~> 0.8)
|
|
27
|
-
fog-core (2.
|
|
27
|
+
fog-core (2.3.0)
|
|
28
28
|
builder
|
|
29
29
|
excon (~> 0.71)
|
|
30
|
-
formatador (
|
|
30
|
+
formatador (>= 0.2, < 2.0)
|
|
31
31
|
mime-types
|
|
32
32
|
fog-json (1.2.0)
|
|
33
33
|
fog-core
|
|
@@ -35,24 +35,24 @@ GEM
|
|
|
35
35
|
fog-xml (0.1.4)
|
|
36
36
|
fog-core
|
|
37
37
|
nokogiri (>= 1.5.11, < 2.0.0)
|
|
38
|
-
formatador (
|
|
38
|
+
formatador (1.1.0)
|
|
39
39
|
hashdiff (1.0.1)
|
|
40
40
|
ipaddress (0.8.3)
|
|
41
41
|
method_source (1.0.0)
|
|
42
|
-
mime-types (3.
|
|
42
|
+
mime-types (3.4.1)
|
|
43
43
|
mime-types-data (~> 3.2015)
|
|
44
|
-
mime-types-data (3.
|
|
45
|
-
mini_portile2 (2.
|
|
44
|
+
mime-types-data (3.2022.0105)
|
|
45
|
+
mini_portile2 (2.8.0)
|
|
46
46
|
multi_json (1.15.0)
|
|
47
47
|
net-ssh (6.1.0)
|
|
48
|
-
nokogiri (1.
|
|
49
|
-
mini_portile2 (~> 2.
|
|
48
|
+
nokogiri (1.13.6)
|
|
49
|
+
mini_portile2 (~> 2.8.0)
|
|
50
50
|
racc (~> 1.4)
|
|
51
51
|
power_assert (2.0.1)
|
|
52
52
|
pry (0.14.1)
|
|
53
53
|
coderay (~> 1.1)
|
|
54
54
|
method_source (~> 1.0)
|
|
55
|
-
public_suffix (4.0.
|
|
55
|
+
public_suffix (4.0.7)
|
|
56
56
|
racc (1.6.0)
|
|
57
57
|
rake (13.0.6)
|
|
58
58
|
rexml (3.2.5)
|
|
@@ -60,16 +60,16 @@ GEM
|
|
|
60
60
|
rspec-core (~> 3.10.0)
|
|
61
61
|
rspec-expectations (~> 3.10.0)
|
|
62
62
|
rspec-mocks (~> 3.10.0)
|
|
63
|
-
rspec-core (3.10.
|
|
63
|
+
rspec-core (3.10.2)
|
|
64
64
|
rspec-support (~> 3.10.0)
|
|
65
|
-
rspec-expectations (3.10.
|
|
65
|
+
rspec-expectations (3.10.2)
|
|
66
66
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
67
67
|
rspec-support (~> 3.10.0)
|
|
68
|
-
rspec-mocks (3.10.
|
|
68
|
+
rspec-mocks (3.10.3)
|
|
69
69
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
70
70
|
rspec-support (~> 3.10.0)
|
|
71
|
-
rspec-support (3.10.
|
|
72
|
-
test-unit (3.5.
|
|
71
|
+
rspec-support (3.10.3)
|
|
72
|
+
test-unit (3.5.3)
|
|
73
73
|
power_assert
|
|
74
74
|
valcro (0.1.1)
|
|
75
75
|
webmock (3.14.0)
|
|
@@ -89,4 +89,4 @@ DEPENDENCIES
|
|
|
89
89
|
webmock (~> 3.14.0)
|
|
90
90
|
|
|
91
91
|
BUNDLED WITH
|
|
92
|
-
2.
|
|
92
|
+
2.3.14
|
|
@@ -7,8 +7,8 @@ class RelishDecryptionFailed < RuntimeError; end
|
|
|
7
7
|
class Relish
|
|
8
8
|
class EncryptionHelper
|
|
9
9
|
|
|
10
|
-
def initialize(
|
|
11
|
-
@
|
|
10
|
+
def initialize(static_secrets, secrets)
|
|
11
|
+
@static_secrets = static_secrets.is_a?(String) ? [static_secrets] : static_secrets
|
|
12
12
|
@secrets = secrets
|
|
13
13
|
end
|
|
14
14
|
|
|
@@ -35,9 +35,8 @@ class Relish
|
|
|
35
35
|
protected
|
|
36
36
|
|
|
37
37
|
def hmac_secrets
|
|
38
|
-
@hmac_secrets ||= @secrets.map
|
|
39
|
-
OpenSSL::HMAC.hexdigest('sha256',
|
|
40
|
-
end
|
|
38
|
+
@hmac_secrets ||= @static_secrets.product(@secrets).map {|static_secret, secret|
|
|
39
|
+
OpenSSL::HMAC.hexdigest('sha256', static_secret, secret)}
|
|
41
40
|
end
|
|
42
41
|
|
|
43
42
|
def decrypt_with_secret(secret, token)
|
data/lib/relish/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relishable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.44'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Fine
|
|
8
8
|
- Blake Gentry
|
|
9
9
|
- Pedro Belo
|
|
10
10
|
- Joshua Tobin
|
|
11
|
-
autorequire:
|
|
11
|
+
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2022-06-09 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: fog-aws
|
|
@@ -146,7 +146,7 @@ files:
|
|
|
146
146
|
homepage: http://github.com/heroku/relish
|
|
147
147
|
licenses: []
|
|
148
148
|
metadata: {}
|
|
149
|
-
post_install_message:
|
|
149
|
+
post_install_message:
|
|
150
150
|
rdoc_options: []
|
|
151
151
|
require_paths:
|
|
152
152
|
- lib
|
|
@@ -161,8 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
161
|
- !ruby/object:Gem::Version
|
|
162
162
|
version: '0'
|
|
163
163
|
requirements: []
|
|
164
|
-
rubygems_version: 3.2.
|
|
165
|
-
signing_key:
|
|
164
|
+
rubygems_version: 3.2.22
|
|
165
|
+
signing_key:
|
|
166
166
|
specification_version: 4
|
|
167
167
|
summary: releases
|
|
168
168
|
test_files: []
|