polyrex 0.6.13 → 0.7.0

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/polyrex.rb +2 -2
  2. metadata +1 -1
@@ -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 = (@id.to_i + 1).to_s
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.to_i + 1
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.13
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors: []
7
7