polyrex 0.6.13 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- 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)
|