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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c602869b8458c83a1edb189caa51a7fa98caf3d0d845f92e2357029bf7ec4643
4
- data.tar.gz: fe5093e467d1ff376ba134528ee613adb8e05c78e6c97e214f329e3c4492b0e9
3
+ metadata.gz: e70dbc799829d6395ad14d74e221fc1592a201fedc1830a367719c5ac23d033a
4
+ data.tar.gz: c180d21ccffaa74853283c1eede98036b3e83e8c0188524f85e3ee46aeed518f
5
5
  SHA512:
6
- metadata.gz: 6428779bd92058e85aac0ed2868e94948f719c23986864571d7f27ce9bd8f475ae3611908ead648bc5a6a6c3acfbf66d0a74f286ecc550a09c9ca2807a0f7381
7
- data.tar.gz: 9fce6b5ca4d87423abc936d2c40536f017f905d467d031456d447ce08be2d739cd581537a4fb482e2281285bf67d591b70bc459950296c5ffa0f3578e0ef6b50
6
+ metadata.gz: f1e212f1b201b24d5737272734985f34521a583af803038982e3286b7856d330d42d9f3ab0dafb17a48e8351f77a30d3ae4a589ff078d6aac08d48f9271cc0cf
7
+ data.tar.gz: 828cba828a2cf898ec5c130dc4ea5af0c5e0f5dfe67ab22ec5cdb21bf2b7d9173b9de061241c381d147350782ebe02a8f065e53d82e8e611e62bee091af33682
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_gpg (0.1.0.pre.5)
4
+ rake_gpg (0.1.0.pre.6)
5
5
  rake_factory (>= 0.23, < 1)
6
6
  ruby_gpg2 (= 0.1.0.pre.27)
7
7
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RakeGPG
2
- VERSION = '0.1.0.pre.5'
2
+ VERSION = '0.1.0.pre.6'
3
3
  end
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.5
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-06 00:00:00.000000000 Z
11
+ date: 2020-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake_factory