dotgpg 0.5.0 → 0.5.1
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/dotgpg.gemspec +1 -1
- data/lib/dotgpg/dir.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48a037835fdef38056c761c71cdfc41e2d89ebeb
|
|
4
|
+
data.tar.gz: 919fda0ab9bf3fcbb599b4a746f83b19e52e3ab0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4343d6eafe255048b2375caf4e84d4dee83485e876accf414e831d7a384be819c7ea405078c8b1f74228bc054a57e6294a9ac09fe0bb9bc7c28005d4cb648b5
|
|
7
|
+
data.tar.gz: 737f43db0c26b457b5c6ea37a45e4d7bde855adbed68185ec2c02941a7a0db5d7aab1cc7412030c43b4d85ffd0fe64a5ee2156508f2c5ea4b01a0fe6f8b4bcbc
|
data/dotgpg.gemspec
CHANGED
data/lib/dotgpg/dir.rb
CHANGED
|
@@ -53,6 +53,9 @@ class Dotgpg
|
|
|
53
53
|
# @param [IO] output The IO to write to
|
|
54
54
|
# @return [Boolean] false if decryption failed for an understandable reason
|
|
55
55
|
def decrypt(path, output)
|
|
56
|
+
# make sure all keys are imported before we try to decrypt - otherwise we
|
|
57
|
+
# might fail with an invalid signature
|
|
58
|
+
known_keys
|
|
56
59
|
File.open(path) do |f|
|
|
57
60
|
signature = false
|
|
58
61
|
temp = GPGME::Crypto.new.decrypt f, passphrase_callback: Dotgpg.method(:passfunc) do |s|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dotgpg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Conrad Irwin
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain:
|
|
11
11
|
- certs/gem-public_cert.pem
|
|
12
|
-
date: 2014-12-
|
|
12
|
+
date: 2014-12-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: thor
|