dynarex 1.2.40 → 1.2.41
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 +10 -8
- metadata +2 -2
- 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: 5b6f790c1b8481bff75a00d91e88910510985eb1
|
|
4
|
+
data.tar.gz: 86c2f462448f1b3371c4e16085f1b589320659aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 01dd32b9eebf4385c67e1193239242b50a055b5f324b2e50ceb8f62b70e228bb72fc9441724029912bcc8b08b8ce7193555387974f90f623114556261eed84c1
|
|
7
|
+
data.tar.gz: b826a66dbf4c0aa507161393828df44785ed4c04b6aed4e07b18d50317a22d61f875a98ec288cff9eb478f52067d976149b3c60f938a4bcfb5e2117fc62413fb
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/dynarex.rb
CHANGED
|
@@ -506,8 +506,9 @@ EOF
|
|
|
506
506
|
#buffer = rowx if rowx
|
|
507
507
|
|
|
508
508
|
raw_lines = buffer.gsub(/^\s*#[^\n]+/,'').lines.to_a
|
|
509
|
-
|
|
509
|
+
|
|
510
510
|
if raw_summary then
|
|
511
|
+
|
|
511
512
|
a_summary = raw_summary.split(',').map(&:strip)
|
|
512
513
|
|
|
513
514
|
@summary = {}
|
|
@@ -515,8 +516,9 @@ EOF
|
|
|
515
516
|
|
|
516
517
|
# fetch any summary lines
|
|
517
518
|
while not raw_lines.empty? and \
|
|
518
|
-
raw_lines.first[/#{a_summary.join('|')}:\s
|
|
519
|
-
|
|
519
|
+
raw_lines.first[/#{a_summary.join('|')}:\s+\S+/] do
|
|
520
|
+
|
|
521
|
+
label, val = raw_lines.shift.chomp.match(/(\w+):\s+([^$]+)$/).captures
|
|
520
522
|
@summary[label] = val
|
|
521
523
|
end
|
|
522
524
|
end
|
|
@@ -552,7 +554,7 @@ EOF
|
|
|
552
554
|
@summary[:schema] = @schema
|
|
553
555
|
@summary[:format_mask] = @format_mask
|
|
554
556
|
|
|
555
|
-
raw_lines.shift
|
|
557
|
+
raw_lines.shift while raw_lines.first.strip.empty?
|
|
556
558
|
|
|
557
559
|
lines = case raw_lines.first.chomp
|
|
558
560
|
|
|
@@ -578,10 +580,9 @@ EOF
|
|
|
578
580
|
when '--+'
|
|
579
581
|
|
|
580
582
|
self.summary[:rawdoc_type] = 'rowx'
|
|
583
|
+
raw_lines.shift
|
|
581
584
|
|
|
582
|
-
raw_lines.
|
|
583
|
-
|
|
584
|
-
a3 = raw_lines.join.gsub(/^\-+$/,'').split(/\n\n/)
|
|
585
|
+
a3 = raw_lines.join.strip.gsub(/^\-+$/,'').split(/\n\n/)
|
|
585
586
|
# get the fields
|
|
586
587
|
a4 = a3.map{|x| x.scan(/\w+(?=:)/)}.flatten(1).uniq
|
|
587
588
|
a5 = a3.map do |xlines|
|
|
@@ -592,8 +593,9 @@ EOF
|
|
|
592
593
|
r.sort.join("\n")
|
|
593
594
|
|
|
594
595
|
end
|
|
595
|
-
|
|
596
|
+
|
|
596
597
|
xml = RowX.new(a5.join("\n")).to_xml
|
|
598
|
+
|
|
597
599
|
a2 = Rexle.new(xml).root.xpath('item').inject([]) do |r,x|
|
|
598
600
|
r << @fields.map do |field|
|
|
599
601
|
x.text(a4.all? {|x| x.length > 1} ? field.to_s : field.to_s.chr)
|
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.
|
|
4
|
+
version: 1.2.41
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
|
29
29
|
kUea9jZD+xTq1Js9t2BHCz3Ev/sgS7CaijrbQetbNwzasFGHRd30xBEwd4zANQOp
|
|
30
30
|
i0OBH0e4iIMkv+Q+PYlNRnlpQogsAdTs
|
|
31
31
|
-----END CERTIFICATE-----
|
|
32
|
-
date: 2013-08-
|
|
32
|
+
date: 2013-08-10 00:00:00.000000000 Z
|
|
33
33
|
dependencies:
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
35
|
name: rexle
|
metadata.gz.sig
CHANGED
|
Binary file
|