csvhuman 1.1.0 → 1.1.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: eac10294bb4add6317df3fd1eb2dcab35f75315d
4
- data.tar.gz: 2072e628e65873a95584fa70fec0bf11a66e2322
3
+ metadata.gz: 021b28e14a1d152a9a01081aa0ab259b71f5e7e3
4
+ data.tar.gz: 30dc3e4ae6bc597a0d45e4cce9e297c344f5b1cc
5
5
  SHA512:
6
- metadata.gz: 931ada0926ae767b7b2348c237694ec35222ff06dfdbac7298527744c0ab99444778d5031355b106ed148551646e301c12d2cc32df8b0dd7001e2b91003c259f
7
- data.tar.gz: 0ba952f578bfafb466a99073792d9c0173b24bf689571ec140ed8e61a7ef00f7addea40979bb8ce495d1a8a1266ce01845f5e551653f02afb15c0ea516021bf3
6
+ metadata.gz: fa53cbca5434de9246c2024a1e9f884744ccf88d9a28d5ebf98d0b33237fefa1ca370df25cff61f7089d4eb6dd60d884485ebcab75fc8356d08ae3d07a40922a
7
+ data.tar.gz: 52f6ad72c29c909f54fc2d0d41a6b15c5469949aa7d48f7bcf0797331a3c70eb5a776b75b7839e6153ba4fbc3d70c738fa11278fee2e9b6cdbb0968ea767f21c
@@ -68,6 +68,12 @@ def parse_attributes
68
68
 
69
69
  next_line = nil
70
70
  elsif (m=match_heading( line ))
71
+ ## note: new category ends attribute definition
72
+ if attrib
73
+ attribs << [attrib, version, category, tags.join( ' ' ), descr]
74
+ attrib = nil
75
+ end
76
+
71
77
  category = "(#{m[:level2]}) #{m[:title]}"
72
78
  elsif (m=match_attribute( line ))
73
79
  if attrib
@@ -76,6 +82,9 @@ def parse_attributes
76
82
 
77
83
  attrib = m[:name]
78
84
  tags = []
85
+ descr = nil
86
+ version = nil
87
+
79
88
  next_line = :descr ## reset descr to nil - will auto-capture next line
80
89
  elsif (m=match_hashtag( line ))
81
90
  tags << "##{m[:name]}"
@@ -123,6 +132,12 @@ def parse_tags
123
132
 
124
133
  next_line = nil
125
134
  elsif (m=match_heading( line ))
135
+ ## note: new category ends tag definition
136
+ if tag
137
+ tags << [tag, type, version, category, attribs.join( ' ' ), descr]
138
+ tag = nil
139
+ end
140
+
126
141
  category = "(#{m[:level2]}) #{m[:title]}"
127
142
  elsif (m=match_type( line ))
128
143
  type = m[:type]
@@ -134,6 +149,9 @@ def parse_tags
134
149
  tag = m[:name]
135
150
  attribs = []
136
151
  type = nil
152
+ descr = nil
153
+ version = nil
154
+
137
155
  next_line = :descr ## reset descr to nil - will auto-capture next line
138
156
  elsif (m=match_attribute( line ))
139
157
  attribs << "+#{m[:name]}"
@@ -5,7 +5,7 @@ class CsvHuman
5
5
 
6
6
  MAJOR = 1
7
7
  MINOR = 1
8
- PATCH = 0
8
+ PATCH = 1
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csvhuman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer