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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 765275edff7d091358d973ae6bdd3bf3d2bb23b6
4
- data.tar.gz: ca173cae9f5e36591342fb2c367edc97eca2cd53
3
+ metadata.gz: f102612e58c87752046fb8b217537091f4183725
4
+ data.tar.gz: c4b2968425c7e21103aa593e5d31c95a3a299395
5
5
  SHA512:
6
- metadata.gz: d441f4fa3b04a03202267fc794e0e5f457994b69fbe360e757f5a28b1a934bc8a2d75319f70b4ae118cc2dac8e624245f512a76e47ba9dee22d706971ae2a894
7
- data.tar.gz: 2e4f7fe01714c74ff60eff1a56f2461baec53a860e10e2af337f273e5ff251a0614a6ce9c01d1e1e65dfe1b0299a4789139b043271a2971945b269880a6a9164
6
+ metadata.gz: fb91f520aaaca7f1fb4e09e8a7c58f8605f2a9daa33a019a63f5899c364631bb8732b270def2f5fe90a0cba5460b8795dfa1465470713cf5680d6b13764b3c64
7
+ data.tar.gz: 8ab833d52f76f18428270bccb14f46568a80eda496059666ce90a3c604ab4cbff58f3517eca4e41cc33ab57cbf552fd5a5781ce0af90d5ae0249e3ca58b5e994
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -592,7 +592,9 @@ EOF
592
592
  def string_parse(buffer)
593
593
 
594
594
  buffer.gsub!("\r",'')
595
- buffer.gsub!("---\n", "--- ")
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(/</,'&lt;') : 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.gsub(/^\-+$/,'').split(/\n\n(?=\w+:)/)
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[/^--- /] ? YAML.load(t[/^--- (.*)/,1]) : unescape(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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.82
4
+ version: 1.2.83
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file