yaml_vault 1.2.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/yaml_vault +2 -2
- data/lib/yaml_vault.rb +3 -3
- data/lib/yaml_vault/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6f6b218e66a8b66fc3750491bf1cfa178587cf6e8fe39fd20f1f8fae41f5680
|
4
|
+
data.tar.gz: 59d4c140ab38f4ac7af5db8b52ebfc73c71226b713e7e11b53ed09c4dcbb1d10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0705f7f78580b264302dfc89835e2db1b0fbe9f65f1f51b476b73095152b24a445ff67de610cd3c2ebf7a8146bcd5fedb867171560d41610c6a0acc79f5c9ce0
|
7
|
+
data.tar.gz: eaf5bfd49c626c8333ab19a651083c889a8b9e467fa5ee2d6cf291b0b75c3b5f7e3f0ac9a6eae937294ad7fa4e94d5d18ea9e986154ef539c4ee3e3030516d1d
|
data/exe/yaml_vault
CHANGED
@@ -35,9 +35,9 @@ class YamlVault::Cli < Thor
|
|
35
35
|
encrypted_yaml = YamlVault::Main.from_file(
|
36
36
|
yaml_file,
|
37
37
|
target_keys,
|
38
|
+
options[:cryptor],
|
38
39
|
options[:prefix],
|
39
40
|
options[:suffix],
|
40
|
-
options[:cryptor],
|
41
41
|
passphrase: passphrase,
|
42
42
|
sign_passphrase: sign_passphrase,
|
43
43
|
salt: options[:salt], cipher: options[:cipher], key_len: options[:key_len],
|
@@ -61,9 +61,9 @@ class YamlVault::Cli < Thor
|
|
61
61
|
decrypted_yaml = YamlVault::Main.from_file(
|
62
62
|
yaml_file,
|
63
63
|
target_keys,
|
64
|
+
options[:cryptor],
|
64
65
|
options[:prefix],
|
65
66
|
options[:suffix],
|
66
|
-
options[:cryptor],
|
67
67
|
passphrase: passphrase,
|
68
68
|
sign_passphrase: sign_passphrase,
|
69
69
|
salt: options[:salt], cipher: options[:cipher], digest: options[:digest],
|
data/lib/yaml_vault.rb
CHANGED
@@ -11,16 +11,16 @@ require 'yaml_vault/yaml_tree_builder'
|
|
11
11
|
module YamlVault
|
12
12
|
class Main
|
13
13
|
class << self
|
14
|
-
def from_file(filename, keys,
|
14
|
+
def from_file(filename, keys, cryptor_name = nil, prefix = nil, suffix = nil, **options)
|
15
15
|
yaml_content = ERB.new(File.read(filename)).result
|
16
|
-
new(yaml_content, keys, prefix, suffix,
|
16
|
+
new(yaml_content, keys, cryptor_name, prefix, suffix, **options)
|
17
17
|
end
|
18
18
|
|
19
19
|
alias :from_content :new
|
20
20
|
end
|
21
21
|
|
22
22
|
def initialize(
|
23
|
-
yaml_content, keys,
|
23
|
+
yaml_content, keys, cryptor_name = nil, prefix = nil, suffix = nil,
|
24
24
|
passphrase: nil, sign_passphrase: nil, salt: nil, cipher: "aes-256-cbc", key_len: 32, signature_key_len: 64, digest: "SHA256",
|
25
25
|
aws_kms_key_id: nil, aws_region: nil, aws_access_key_id: nil, aws_secret_access_key: nil, aws_profile: nil,
|
26
26
|
gcp_kms_resource_id: nil, gcp_credential_file: nil
|
data/lib/yaml_vault/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaml_vault
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|