dynarex 1.5.44 → 1.5.45
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 -37
- 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: 66b00f71bc1dc1e06868ff15f64a7ceeadcb023a
|
|
4
|
+
data.tar.gz: b5db365240c1d6b8381e48e3708f5a325d8d5a51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec67afb8e2ad43cf5a0dfad45bbae7a6f64cd88fd162cefe50e46184fae69cb66782b88bca581967d784defc5279adf06caae4893759d240bb2f3cd05b49a119
|
|
7
|
+
data.tar.gz: 04bbbbe1d69047d83e73c3f870897a6003e3d63f83c364722a45a9a8351a93cf1c8c38ca89fecdea61b0362c1c9d718f3c903044accbd9d5963929c47e642e2b
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/dynarex.rb
CHANGED
|
@@ -465,7 +465,7 @@ EOF
|
|
|
465
465
|
|
|
466
466
|
@doc.root.add records
|
|
467
467
|
|
|
468
|
-
load_records
|
|
468
|
+
load_records if @dirty_flag
|
|
469
469
|
self
|
|
470
470
|
end
|
|
471
471
|
|
|
@@ -576,10 +576,6 @@ EOF
|
|
|
576
576
|
h = {limit: 11}.merge(opt)
|
|
577
577
|
doc = Rexle.new(self.to_xslt)
|
|
578
578
|
e = doc.element('//xsl:apply-templates[2]')
|
|
579
|
-
|
|
580
|
-
#jr311015 order = self.order || 'descending'
|
|
581
|
-
#jr311015 doc2 = Rexle.new "<xsl:sort order='#{order}' data-type='number' select='@id'/>"
|
|
582
|
-
#jr311015 e.add doc2.root
|
|
583
579
|
|
|
584
580
|
e2 = doc.root.element('xsl:template[3]')
|
|
585
581
|
item = e2.element('item')
|
|
@@ -816,35 +812,6 @@ EOF
|
|
|
816
812
|
or @summary[:xsl]
|
|
817
813
|
end
|
|
818
814
|
|
|
819
|
-
=begin 170315
|
|
820
|
-
if @type == 'checklist' then
|
|
821
|
-
|
|
822
|
-
# extract the brackets from the line
|
|
823
|
-
|
|
824
|
-
checked = []
|
|
825
|
-
raw_lines.map! do |x|
|
|
826
|
-
raw_checked, raw_line = x.partition(/\]/).values_at 0,2
|
|
827
|
-
checked << (raw_checked[/x/] ? true : false)
|
|
828
|
-
raw_line
|
|
829
|
-
end
|
|
830
|
-
|
|
831
|
-
end
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
if @order == 'descending' then
|
|
835
|
-
rl = raw_lines
|
|
836
|
-
|
|
837
|
-
if rl.first =~ /--/ then
|
|
838
|
-
raw_lines = [rl[0]] + rl[1..-1].each_slice(@fields.count).inject([])\
|
|
839
|
-
{|r,x| r += x.reverse }.reverse
|
|
840
|
-
else
|
|
841
|
-
raw_lines = rl.each_slice(@fields.count).inject([])\
|
|
842
|
-
{|r,x| r += x.reverse }.reverse
|
|
843
|
-
end
|
|
844
|
-
checked.reverse! if @type == 'checklist'
|
|
845
|
-
|
|
846
|
-
end
|
|
847
|
-
=end
|
|
848
815
|
@summary[:recordx_type] = 'dynarex'
|
|
849
816
|
@summary[:schema] = @schema
|
|
850
817
|
@summary[:format_mask] = @format_mask
|
|
@@ -1100,9 +1067,11 @@ EOF
|
|
|
1100
1067
|
|
|
1101
1068
|
def load_records
|
|
1102
1069
|
|
|
1103
|
-
@
|
|
1104
|
-
|
|
1070
|
+
@dirty_flag = false
|
|
1071
|
+
self.sort_by! {|x| x.element(@default_key.to_s).text } if @summary.has_key? :order
|
|
1105
1072
|
|
|
1073
|
+
@records = records_to_h
|
|
1074
|
+
|
|
1106
1075
|
@records.instance_eval do
|
|
1107
1076
|
def delete_item(i)
|
|
1108
1077
|
self.delete self.keys[i]
|
|
@@ -1111,7 +1080,7 @@ EOF
|
|
|
1111
1080
|
|
|
1112
1081
|
#Returns a ready-only snapshot of records as a simple Hash.
|
|
1113
1082
|
@flat_records = @records.values.map{|x| x[:body]}
|
|
1114
|
-
|
|
1083
|
+
|
|
1115
1084
|
end
|
|
1116
1085
|
|
|
1117
1086
|
def display()
|
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.5.
|
|
4
|
+
version: 1.5.45
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
zafTuKRozNy5wCw7Z32VaDGcJ+yTPq73CrcPrNyaoxqGfU0qNsh6oGvwrq4Q1k4j
|
|
32
32
|
Pz2GWE7KigXTBg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-12-
|
|
34
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex-import
|
metadata.gz.sig
CHANGED
|
Binary file
|