kvx 0.6.0 → 0.6.1

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: 0332555ae6e3a14d142fb639998869d365397bc1
4
- data.tar.gz: 93c4bd3a9c506a1fe3bef1b078d38d62c98486c3
3
+ metadata.gz: d4333efd3e04cf785d5ba2983b6b50832758ab74
4
+ data.tar.gz: 4c3394a3a4d4492134d4169799d36a197b070d3c
5
5
  SHA512:
6
- metadata.gz: 673d379090deb9fb0d74e7d86a58b53acbf5576fe1818161da486a198164df4d465b4d52ee3b5af180c15e285030109f0f788af9c927984002e9e4ace007dd04
7
- data.tar.gz: d53ab185df32e4a9d57631920514a56336e523f279625612a079d25039cef5279ac14c63ab1a9bb595ff9ce661663ce88645796a336bd949badfad39d5f389ab
6
+ metadata.gz: 7440cb6b41c5eedab6c44c87a491ea59868d6547ac6b003b5bfbec4a7cb4098c6b6053212dc2fc4c7259c48361f0c466b1625db2ac01a0ebf9e4e20204df7601
7
+ data.tar.gz: ec9deefa85728ca2004517bae55d36b3374113ec6b48eccef93f47963658895a64803966aae2eab623fb7102db60a5b3463596d35a40206691528469fb44c5d6
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/kvx.rb CHANGED
@@ -43,6 +43,10 @@ class Kvx
43
43
 
44
44
  alias body item
45
45
 
46
+ def save(filename)
47
+ File.write filename, self.to_s
48
+ end
49
+
46
50
  def to_h()
47
51
 
48
52
  if @summary.empty? then
@@ -84,7 +88,7 @@ class Kvx
84
88
 
85
89
  header = ''
86
90
 
87
- if @header or @summary then
91
+ if @header or @summary.any? then
88
92
 
89
93
  attr = @attributes ? ' ' + @attributes\
90
94
  .map {|x| "%s='%s'" % x }.join(' ') : ''
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  AVQkWU5uq/gAml+uIbIFZNr8t1zTIqowuUQyBS0YvXS+huGl2hdHYy83zDSQGIL+
32
32
  6LJYV84ZCOUsdw==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-07-01 00:00:00.000000000 Z
34
+ date: 2016-07-19 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: line-tree
@@ -59,20 +59,20 @@ dependencies:
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '0.3'
62
+ version: '0.4'
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: 0.3.0
65
+ version: 0.4.0
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - "~>"
71
71
  - !ruby/object:Gem::Version
72
- version: '0.3'
72
+ version: '0.4'
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 0.3.0
75
+ version: 0.4.0
76
76
  description:
77
77
  email: james@r0bertson.co.uk
78
78
  executables: []
metadata.gz.sig CHANGED
Binary file