polyrex 0.6.5 → 0.6.6
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.
- data/lib/polyrex.rb +8 -0
- metadata +2 -2
data/lib/polyrex.rb
CHANGED
|
@@ -189,6 +189,14 @@ class Polyrex
|
|
|
189
189
|
|
|
190
190
|
puts '*' + buffer + '*'
|
|
191
191
|
@doc = Document.new buffer
|
|
192
|
+
|
|
193
|
+
unless @format_masks
|
|
194
|
+
@format_masks = XPath.match(doc.root, '//format_mask/text()').map &:to_s
|
|
195
|
+
schema_rpath = schema.gsub(/\[[^\]]+\]/,'')
|
|
196
|
+
@recordx = schema_rpath.split('/')
|
|
197
|
+
@recordx.shift
|
|
198
|
+
end
|
|
199
|
+
|
|
192
200
|
@id = XPath.match(@doc.root, '//@id').map{|x| x.value.to_i}.max.to_i + 1
|
|
193
201
|
|
|
194
202
|
schema = @doc.root.text('summary/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.
|
|
4
|
+
version: 0.6.6
|
|
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-06-
|
|
12
|
+
date: 2010-06-15 00:00:00 +01:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|