polyrex-createobject 0.3.9 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyrex-createobject.rb +2 -3
- metadata +2 -12
data/lib/polyrex-createobject.rb
CHANGED
@@ -61,13 +61,12 @@ end
|
|
61
61
|
@id = id if id
|
62
62
|
|
63
63
|
record.root.add_attribute({'id' => @id.to_s.clone})
|
64
|
-
|
65
|
-
if @id.to_i == @id.to_s.length then
|
64
|
+
if @id.to_i.to_s == @id.to_s then
|
66
65
|
@id.succ!
|
67
66
|
else
|
68
67
|
@id = @parent_node.element('count(//@id)').to_i + 2
|
69
68
|
end
|
70
|
-
|
69
|
+
|
71
70
|
a = child_schema[/[^\[]+(?=\])/].split(',')
|
72
71
|
a.each do |field_name|
|
73
72
|
field = record.element('summary/' + 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
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors: []
|
7
7
|
|
@@ -9,19 +9,9 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2011-01-
|
12
|
+
date: 2011-01-10 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: backtrack-xpath
|
17
|
-
type: :runtime
|
18
|
-
version_requirement:
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: "0"
|
24
|
-
version:
|
25
15
|
- !ruby/object:Gem::Dependency
|
26
16
|
name: polyrex-schema
|
27
17
|
type: :runtime
|