dynarex 1.2.82 → 1.2.83
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dynarex.rb +6 -3
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f102612e58c87752046fb8b217537091f4183725
|
|
4
|
+
data.tar.gz: c4b2968425c7e21103aa593e5d31c95a3a299395
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb91f520aaaca7f1fb4e09e8a7c58f8605f2a9daa33a019a63f5899c364631bb8732b270def2f5fe90a0cba5460b8795dfa1465470713cf5680d6b13764b3c64
|
|
7
|
+
data.tar.gz: 8ab833d52f76f18428270bccb14f46568a80eda496059666ce90a3c604ab4cbff58f3517eca4e41cc33ab57cbf552fd5a5781ce0af90d5ae0249e3ca58b5e994
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/dynarex.rb
CHANGED
|
@@ -592,7 +592,9 @@ EOF
|
|
|
592
592
|
def string_parse(buffer)
|
|
593
593
|
|
|
594
594
|
buffer.gsub!("\r",'')
|
|
595
|
-
buffer.gsub!(
|
|
595
|
+
buffer.gsub!(/\n-{4,}\n/,"\n\n")
|
|
596
|
+
buffer.gsub!(/---\n/m, "--- ")
|
|
597
|
+
|
|
596
598
|
buffer.gsub!(/.>/) {|x| x[0] != '?' ? x.sub(/>/,'>') : x }
|
|
597
599
|
buffer.gsub!(/<./) {|x| x[1] != '?' ? x.sub(/</,'<') : x }
|
|
598
600
|
|
|
@@ -704,7 +706,7 @@ EOF
|
|
|
704
706
|
self.summary[:rawdoc_type] = 'rowx'
|
|
705
707
|
raw_lines.shift
|
|
706
708
|
|
|
707
|
-
a3 = raw_lines.join.strip.
|
|
709
|
+
a3 = raw_lines.join.strip.split(/\n\n(?=\w+:)/)
|
|
708
710
|
|
|
709
711
|
# get the fields
|
|
710
712
|
a4 = a3.map{|x| x.scan(/\w+(?=:)/)}.flatten(1).uniq
|
|
@@ -735,6 +737,7 @@ EOF
|
|
|
735
737
|
a2
|
|
736
738
|
|
|
737
739
|
else
|
|
740
|
+
|
|
738
741
|
raw_lines = raw_lines.join("\n").gsub(/^\s*#[^\n]+/,'').lines.to_a
|
|
739
742
|
a2 = raw_lines.map.with_index do |x,i|
|
|
740
743
|
|
|
@@ -763,7 +766,7 @@ EOF
|
|
|
763
766
|
@fields.zip(
|
|
764
767
|
x.map do |t|
|
|
765
768
|
|
|
766
|
-
t.to_s[/^---
|
|
769
|
+
t.to_s[/^---(?:\s|\n)/] ? YAML.load(t[/^---(?:\s|\n)(.*)/,1]) : unescape(t.to_s)
|
|
767
770
|
end
|
|
768
771
|
)
|
|
769
772
|
]
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|