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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d6f36c3110e8afee13ea5ac97a4c752f5eb3d15
4
- data.tar.gz: 9d1018ae96d19d00d7236fb4b5ba3b747ee91bf8
3
+ metadata.gz: d116e73b21925fe71e030b0fd3b5a26115fd974b
4
+ data.tar.gz: 12ef32e5671d38af1bbc083613e3f7e9bea72410
5
5
  SHA512:
6
- metadata.gz: 61ccc984b18fe6374ea9ba3e479d62931e659a0c8b7f234306bc2b8d842a86136122c241bbcf51c3659db3a1f0dd4bd7e18603eb2c55520c841fb1df9454d09c
7
- data.tar.gz: 82e59718d65dd81382a171a2a0022475b35b2b7c71b3dc492d9b0940c962025272555c5411cb1cea92ceb95af90caace1aafe29ac8b8e5657efe32a6fd981fb3
6
+ metadata.gz: 1c58554bcc266d88e68fb21e95da7db912ccdbe4e5aa70367e243b138f11dc49ed89146846f3deb04f72a935ab2889647754c1a9511a5d1fadb0aa55aa7a1dcc
7
+ data.tar.gz: ee4f06afbd4de9716bf7163133cfc907b4dc4397b44ee040fdd73f835b1207849ac127a8c5ca43e8b680728d8ab2c3e81f81d5ad347603c15d911010d6483e45
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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('#{field}', value) end"
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}='#{value}']")
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}='#{value}']").map {|x| recordx_to_record x}
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.21
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-20 00:00:00.000000000 Z
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