kvx 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/lib/kvx.rb +10 -1
  5. metadata +1 -1
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96cfc3e8b1006b34c301f6753f35be06d1488fbfc3233094269c0d6cf61560a6
4
- data.tar.gz: d706f6a62e289443c0fc90a09a49ca29a2001de59e8f59420da4cd3cb345d3a0
3
+ metadata.gz: 771c274bf56fb9f8758aee53d0112cd88e6844e542325210c707a6af52dec20e
4
+ data.tar.gz: f87fa3a2078e512766f1eef4a48753472105aa37c194a5d290e9f2bd54fb7cd6
5
5
  SHA512:
6
- metadata.gz: da3953a0cbfbf07a8116eaa7365c8d0e0074c356d57e4f1c894f85c2eb6cbe6a218db580c1cf066ba15153eb193fe097c978e2d4f4cbe134fb7552052166831d
7
- data.tar.gz: 9291206b7516b575363a4965fc1d3fa816e888f35a768c286162df1bebc5528aa0e9dd70659f436472424e73a51e30711317fd18faea435bb4c47626983afe08
6
+ metadata.gz: bd1f304798404629150a18a8287670ed0102e34d67e6734e374b33f19c19e146385cb4fdd2c06f1dbed6c97969a831a20ac168b66d25e9081b4f5e20eb6e5a9d
7
+ data.tar.gz: b10f98724ecb9f052818b5b8c1fe6cbf841fa982772cd5c6e955d6836cc13b267085cb89dc213c38bd1a8479c5603cdf8cbf6d222464d86b187541c4799c9036
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/kvx.rb CHANGED
@@ -146,8 +146,17 @@ class Kvx
146
146
 
147
147
  @body.each do |key, value|
148
148
 
149
- h[key] = value.is_a?(String) ? value : \
149
+ h[key] = if value.is_a?(String) then
150
+
151
+ if value.lines.length < 2 then
152
+ value
153
+ else
154
+ "\n" + value.lines.map {|x| ' ' + x }.join
155
+ end
156
+
157
+ else
150
158
  "\n" + value[:description].lines.map {|x| ' ' + x }.join
159
+ end
151
160
 
152
161
  end
153
162
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kvx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file