dynarex 1.5.21 → 1.5.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dynarex.rb +4 -4
- 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: d116e73b21925fe71e030b0fd3b5a26115fd974b
|
4
|
+
data.tar.gz: 12ef32e5671d38af1bbc083613e3f7e9bea72410
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c58554bcc266d88e68fb21e95da7db912ccdbe4e5aa70367e243b138f11dc49ed89146846f3deb04f72a935ab2889647754c1a9511a5d1fadb0aa55aa7a1dcc
|
7
|
+
data.tar.gz: ee4f06afbd4de9716bf7163133cfc907b4dc4397b44ee040fdd73f835b1207849ac127a8c5ca43e8b680728d8ab2c3e81f81d5ad347603c15d911010d6483e45
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex.rb
CHANGED
@@ -591,19 +591,19 @@ EOF
|
|
591
591
|
|
592
592
|
methods = fields.map do |field|
|
593
593
|
"def find_by_#{field}(value) findx_by('#{field}', value) end\n" + \
|
594
|
-
"def find_all_by_#{field}(value) findx_all_by(
|
594
|
+
"def find_all_by_#{field}(value) findx_all_by(\"#{field}\", value) end"
|
595
595
|
end
|
596
596
|
self.instance_eval(methods.join("\n"))
|
597
597
|
end
|
598
598
|
|
599
599
|
def findx_by(field, value)
|
600
600
|
(load_records; rebuild_doc) if @dirty_flag == true
|
601
|
-
r = @doc.root.element("records/*[#{field}
|
601
|
+
r = @doc.root.element("records/*[#{field}=\"#{value}\"]")
|
602
602
|
r ? recordx_to_record(r) : nil
|
603
603
|
end
|
604
604
|
|
605
605
|
def findx_all_by(field, value)
|
606
|
-
@doc.root.xpath("records/*[#{field}
|
606
|
+
@doc.root.xpath("records/*[#{field}=\"#{value}\"]").map {|x| recordx_to_record x}
|
607
607
|
end
|
608
608
|
|
609
609
|
def recordx_to_record(recordx)
|
@@ -1146,4 +1146,4 @@ XSL
|
|
1146
1146
|
end
|
1147
1147
|
end
|
1148
1148
|
|
1149
|
-
end
|
1149
|
+
end
|
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.22
|
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-05-
|
34
|
+
date: 2015-05-21 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
|