yaml_recrypt 0.1.5 → 0.1.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
  SHA1:
3
- metadata.gz: 1db8dd480340b428b1c8c134850b9c031cc94ef0
4
- data.tar.gz: 56f65ae727335746b613ea106190618b420c7c20
3
+ metadata.gz: 6e2a16431a5634aae120548c40a1f63edd54c481
4
+ data.tar.gz: 2a556d1ae3783fe4320ee4fd3f6a0dc36ced848b
5
5
  SHA512:
6
- metadata.gz: b28d227c03885ffb3f16fe204755333c6e9a2589f0cca97ba913d92b25477ed12c3798e02ffee369b7d7963e0382d268cf71355ca91fae6e0de4a2792c07ca9b
7
- data.tar.gz: 838064fd2ae6061d8c3d56e3c5ed0957e330da346ca5f7827ec966356e0b1d7020aeb634f44cd3c4c5e8ab45789758eff311237259458648bb8dd14455201f8b
6
+ metadata.gz: 107773fe07db8d52d904b07714156c4128904f5c7b0439ca680c1f31fc45f4fe1ca7b1a98a45b61e51851c75dc3d73d355d9425276cf45d3070876c26838ef66
7
+ data.tar.gz: 18d8e52777b04e4d470b04b191074a32338d59be87b37823e0002b2301d2b969f5fa1b59c2d99326a245cf28161f280d459399c45ad9af244d96803fa656dde2
@@ -1,3 +1,3 @@
1
1
  module YamlRecrypt
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_recrypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Williams