dynarex 1.0.11 → 1.0.12

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.
Files changed (2) hide show
  1. data/lib/dynarex.rb +3 -3
  2. metadata +1 -1
@@ -441,12 +441,12 @@ end))
441
441
  created = Time.now.to_s
442
442
  last_modified = ''
443
443
 
444
- if row.attributes['id'] then
445
- id = row.attributes['id']
444
+ if row.attributes[:id] then
445
+ id = row.attributes[:id]
446
446
  else
447
447
  i += 1; id = i.to_s
448
448
  end
449
- created = row.attributes['created'] if row.attributes['created']
449
+ created = row.attributes[:created] if row.attributes[:created]
450
450
  last_modified = row.attributes[:last_modified] if row.attributes[:last_modified]
451
451
  body = row.xpath('*').inject({}) do |r,node|
452
452
  r.merge node.name.to_sym => node.text
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.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors: []
7
7