polyrex 0.6.13 → 0.7.0
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.
- data/lib/polyrex.rb +2 -2
- metadata +1 -1
data/lib/polyrex.rb
CHANGED
|
@@ -128,7 +128,7 @@ class Polyrex
|
|
|
128
128
|
field_values += [''] * (@field_names.length - field_values.length)
|
|
129
129
|
#field_values = line.match(/#{t}/).captures
|
|
130
130
|
|
|
131
|
-
@id
|
|
131
|
+
@id.succ!
|
|
132
132
|
record = Element.new(tag_name)
|
|
133
133
|
record.add_attribute('id', @id)
|
|
134
134
|
summary = Element.new('summary')
|
|
@@ -198,7 +198,7 @@ class Polyrex
|
|
|
198
198
|
@recordx.shift
|
|
199
199
|
end
|
|
200
200
|
|
|
201
|
-
@id = XPath.match(@doc.root, '//@id').map{|x| x.value.to_i}.max.
|
|
201
|
+
@id = XPath.match(@doc.root, '//@id').map{|x| x.value.to_i}.max.to_s.succ
|
|
202
202
|
|
|
203
203
|
#puts 'schema : ' + schema
|
|
204
204
|
load_handlers(schema)
|