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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d971a272200b74721608df31003f4fe36c267debc941b249e046c9d3c0eda87
4
- data.tar.gz: 05e9089f383a10b942b63c6378a876d23a9d24c00dd6bd5135c83955f3d857ce
3
+ metadata.gz: a6f6b218e66a8b66fc3750491bf1cfa178587cf6e8fe39fd20f1f8fae41f5680
4
+ data.tar.gz: 59d4c140ab38f4ac7af5db8b52ebfc73c71226b713e7e11b53ed09c4dcbb1d10
5
5
  SHA512:
6
- metadata.gz: 8c2604b1ecc2f4c85968fa4a673a3a6f34ad29c18805c63fbffb2a82a896fde931a0c45c77d4c64aa3f413ba2ba13010474f92cdc84f11b9cdf7f431e20c61da
7
- data.tar.gz: 24102ad777468b515c728d686d496d93c92a77e5c5864899406a90e49200fa6dca6a9ee44fa237210b763084fe9be2fbe65fffba4112ea1c9b7786176b1de46e
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, prefix = nil, suffix = nil, cryptor_name = nil, **options)
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, cryptor_name, **options)
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, prefix = nil, suffix = nil, cryptor_name = nil,
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
@@ -1,3 +1,3 @@
1
1
  module YamlVault
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.1"
3
3
  end
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.2.0
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-04-27 00:00:00.000000000 Z
11
+ date: 2021-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport