csvhuman 1.1.0 → 1.1.1
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/csvhuman/doc/schema.rb +18 -0
- data/lib/csvhuman/version.rb +1 -1
- 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: 021b28e14a1d152a9a01081aa0ab259b71f5e7e3
|
4
|
+
data.tar.gz: 30dc3e4ae6bc597a0d45e4cce9e297c344f5b1cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa53cbca5434de9246c2024a1e9f884744ccf88d9a28d5ebf98d0b33237fefa1ca370df25cff61f7089d4eb6dd60d884485ebcab75fc8356d08ae3d07a40922a
|
7
|
+
data.tar.gz: 52f6ad72c29c909f54fc2d0d41a6b15c5469949aa7d48f7bcf0797331a3c70eb5a776b75b7839e6153ba4fbc3d70c738fa11278fee2e9b6cdbb0968ea767f21c
|
data/lib/csvhuman/doc/schema.rb
CHANGED
@@ -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]}"
|
data/lib/csvhuman/version.rb
CHANGED