dynarex-xslt 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dynarex-xslt.rb +2 -1
  2. metadata +1 -1
data/lib/dynarex-xslt.rb CHANGED
@@ -41,7 +41,8 @@ class DynarexXSLT
41
41
  end
42
42
 
43
43
  xml.xsl_template(match: a[0][0] + '/summary') do
44
- a[0][1][1].each do |element, field|
44
+ summary_fields = a[0][1][1] || []
45
+ summary_fields.each do |element, field|
45
46
  xml.send (element.strip).to_sym do
46
47
  xml.xsl_value_of(select: field)
47
48
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dynarex-xslt
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson