yaml_recrypt 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yaml_recrypt.rb +5 -3
- data/lib/yaml_recrypt/gpg.rb +5 -2
- data/lib/yaml_recrypt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38094fc05c4882b33ceca99f2b8c579cc295fda2
|
4
|
+
data.tar.gz: cf8a2c6f7d78bea1a3744d01680baea099181c13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad778d97437779369a0667fc5af1fcb9bc4c4f9046b97d04da136449e7fd19156fada99e0ac6a7d02733ba2c71b1a31f5143a1c7029b80002ea90b26dbc2db68
|
7
|
+
data.tar.gz: 2b00d35beaf9c967adedc85b8f4c534f899ff3962f21f22ec207a0157acc26e2e098410cd58f591021e5176cc896827e57e7fc89cf2fdaf5d5ae35cfe25cbddf
|
data/lib/yaml_recrypt.rb
CHANGED
@@ -51,8 +51,9 @@ module YamlRecrypt
|
|
51
51
|
r, subtree = descend(gpg_home, eyaml_pub_key, v)
|
52
52
|
value[i] = subtree
|
53
53
|
replaced += r
|
54
|
-
rescue GPGME::Error::NoData
|
55
|
-
|
54
|
+
rescue GPGME::Error::NoData => e
|
55
|
+
warn("Invalid GPG data detected in element #{i} or damaged cypher ")
|
56
|
+
raise e
|
56
57
|
end
|
57
58
|
i += 1
|
58
59
|
}
|
@@ -63,7 +64,8 @@ module YamlRecrypt
|
|
63
64
|
value[k] = subtree
|
64
65
|
replaced += r
|
65
66
|
rescue GPGME::Error::NoData
|
66
|
-
|
67
|
+
warn("Invalid GPG data detected in element #{k} or damaged cypher ")
|
68
|
+
raise e
|
67
69
|
end
|
68
70
|
}
|
69
71
|
else
|
data/lib/yaml_recrypt/gpg.rb
CHANGED
@@ -48,8 +48,11 @@ module YamlRecrypt
|
|
48
48
|
txt.seek 0
|
49
49
|
txt.read
|
50
50
|
else
|
51
|
-
|
52
|
-
|
51
|
+
raise "No usable keys found in #{gpg_home}. Things to check: permissions, "\
|
52
|
+
"correct paths, file integrity, trying to use an older gpg to read files "\
|
53
|
+
"from a newer one (export first). Some verions of gpg insist on having the "\
|
54
|
+
"--gpg-home directory as ~/.gnupg so please try moving your directory of gpg "\
|
55
|
+
"stuff to that location"
|
53
56
|
end
|
54
57
|
end
|
55
58
|
|
data/lib/yaml_recrypt/version.rb
CHANGED