rake_gpg 0.1.0.pre.5 → 0.1.0.pre.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_gpg.rb +15 -1
- data/lib/rake_gpg/tasks/encryption/decrypt.rb +2 -3
- data/lib/rake_gpg/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: e70dbc799829d6395ad14d74e221fc1592a201fedc1830a367719c5ac23d033a
|
4
|
+
data.tar.gz: c180d21ccffaa74853283c1eede98036b3e83e8c0188524f85e3ee46aeed518f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1e212f1b201b24d5737272734985f34521a583af803038982e3286b7856d330d42d9f3ab0dafb17a48e8351f77a30d3ae4a589ff078d6aac08d48f9271cc0cf
|
7
|
+
data.tar.gz: 828cba828a2cf898ec5c130dc4ea5af0c5e0f5dfe67ab22ec5cdb21bf2b7d9173b9de061241c381d147350782ebe02a8f065e53d82e8e611e62bee091af33682
|
data/Gemfile.lock
CHANGED
data/lib/rake_gpg.rb
CHANGED
@@ -1,6 +1,20 @@
|
|
1
|
-
require 'rake_gpg/version'
|
2
1
|
require 'rake_gpg/tasks'
|
2
|
+
require 'rake_gpg/version'
|
3
3
|
|
4
4
|
module RakeGPG
|
5
|
+
def self.define_encrypt_task(opts = {}, &block)
|
6
|
+
RakeGPG::Tasks::Encryption::Encrypt.define(opts, &block)
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.define_decrypt_task(opts = {}, &block)
|
10
|
+
RakeGPG::Tasks::Encryption::Decrypt.define(opts, &block)
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.define_generate_key_task(opts = {}, &block)
|
14
|
+
RakeGPG::Tasks::Keys::Generate.define(opts, &block)
|
15
|
+
end
|
5
16
|
|
17
|
+
def self.define_import_key_task(opts = {}, &block)
|
18
|
+
RakeGPG::Tasks::Keys::Import.define(opts, &block)
|
19
|
+
end
|
6
20
|
end
|
@@ -36,8 +36,7 @@ module RakeGPG
|
|
36
36
|
RubyGPG2.import(
|
37
37
|
key_file_paths: [t.key_file_path],
|
38
38
|
work_directory: t.work_directory,
|
39
|
-
home_directory: home_directory
|
40
|
-
with_status: true)
|
39
|
+
home_directory: home_directory)
|
41
40
|
|
42
41
|
RubyGPG2.decrypt(
|
43
42
|
input_file_path: t.input_file_path,
|
@@ -45,7 +44,7 @@ module RakeGPG
|
|
45
44
|
home_directory: home_directory,
|
46
45
|
trust_mode: t.trust_mode,
|
47
46
|
passphrase: t.passphrase,
|
48
|
-
pinentry_mode: :loopback,
|
47
|
+
pinentry_mode: t.passphrase ? :loopback : nil,
|
49
48
|
without_passphrase: !t.passphrase)
|
50
49
|
puts "Done."
|
51
50
|
end
|
data/lib/rake_gpg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_gpg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.
|
4
|
+
version: 0.1.0.pre.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake_factory
|