dynarex 0.5.1 → 0.5.2

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 +2 -0
  2. metadata +1 -1
@@ -120,6 +120,8 @@ EOF
120
120
  # for each field update each record field
121
121
  record = XPath.first(@doc.root, "records/#{record_name}[@id=#{id.to_s}]")
122
122
  fields.each {|k,v| record.elements[k.to_s].text = v if v}
123
+ record.add_attribute('last_modified', Time.now.to_s)
124
+
123
125
  load_records
124
126
  end
125
127
 
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: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors: []
7
7