polyrex-createobject 0.4.4 → 0.4.5

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/polyrex-createobject.rb +2 -1
  2. metadata +1 -1
@@ -65,13 +65,14 @@ end
65
65
  record = Rexle.new PolyrexSchema.new(child_schema).to_s
66
66
  @id = id if id
67
67
 
68
- record.root.add_attribute({'id' => @id.to_s.clone})
69
68
  if @id.to_i.to_s == @id.to_s then
70
69
  @id = @id.to_s.succ
71
70
  else
72
71
  @id = @parent_node.element('count(//@id)').to_i + 2
73
72
  end
74
73
 
74
+ record.root.add_attribute({'id' => @id.to_s.clone})
75
+
75
76
  a = child_schema[/[^\[]+(?=\])/].split(',')
76
77
  summary = record.element('summary')
77
78
  a.each do |field_name|
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.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors: []
7
7