yaml_recrypt 0.1.5 → 0.1.6
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/lib/yaml_recrypt/version.rb +1 -1
- data/lib/yaml_recrypt.rb +7 -0
- 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: 6e2a16431a5634aae120548c40a1f63edd54c481
|
4
|
+
data.tar.gz: 2a556d1ae3783fe4320ee4fd3f6a0dc36ced848b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 107773fe07db8d52d904b07714156c4128904f5c7b0439ca680c1f31fc45f4fe1ca7b1a98a45b61e51851c75dc3d73d355d9425276cf45d3070876c26838ef66
|
7
|
+
data.tar.gz: 18d8e52777b04e4d470b04b191074a32338d59be87b37823e0002b2301d2b969f5fa1b59c2d99326a245cf28161f280d459399c45ad9af244d96803fa656dde2
|
data/lib/yaml_recrypt/version.rb
CHANGED
data/lib/yaml_recrypt.rb
CHANGED
@@ -83,6 +83,13 @@ module YamlRecrypt
|
|
83
83
|
|
84
84
|
# PGP values are always broken onto newlines
|
85
85
|
if split[0].strip == '' and split[1].strip == GPG_MAGIC
|
86
|
+
|
87
|
+
# yaml and its crazy space encoding rules mean that sometimes you may
|
88
|
+
# get double whitespace IF you've done something clever like put the
|
89
|
+
# gpg version in your ascii armor. See:
|
90
|
+
# http://stackoverflow.com/a/21699210/3441106
|
91
|
+
# for the gory details
|
92
|
+
value = value.gsub(/\n\n/,"\n")
|
86
93
|
value = recrypt(value, gpg_home, eyaml_pub_key)
|
87
94
|
changed = 1
|
88
95
|
end
|