polyrex-createobject 0.3.7 → 0.3.9

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-createobject.rb +2 -1
  2. metadata +2 -2
@@ -61,7 +61,8 @@ end
61
61
  @id = id if id
62
62
 
63
63
  record.root.add_attribute({'id' => @id.to_s.clone})
64
- if @id.to_s[/[0-9]/] then
64
+
65
+ if @id.to_i == @id.to_s.length then
65
66
  @id.succ!
66
67
  else
67
68
  @id = @parent_node.element('count(//@id)').to_i + 2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-createobject
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-12-25 00:00:00 +00:00
12
+ date: 2011-01-01 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency