polyrex 0.7.7 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyrex.rb +2 -5
- metadata +2 -2
data/lib/polyrex.rb
CHANGED
@@ -27,10 +27,6 @@ class Polyrex
|
|
27
27
|
def delete(id=nil)
|
28
28
|
@doc.delete("//[@id='#{id}'")
|
29
29
|
end
|
30
|
-
|
31
|
-
def element(s)
|
32
|
-
@doc.element s
|
33
|
-
end
|
34
30
|
|
35
31
|
def record()
|
36
32
|
@parent_node
|
@@ -76,7 +72,6 @@ class Polyrex
|
|
76
72
|
@doc.xpath s
|
77
73
|
end
|
78
74
|
end
|
79
|
-
|
80
75
|
|
81
76
|
def records
|
82
77
|
@doc.xpath("records/*").map do |record|
|
@@ -192,6 +187,7 @@ class Polyrex
|
|
192
187
|
end
|
193
188
|
|
194
189
|
def open(s)
|
190
|
+
|
195
191
|
if s[/\[/] then # schema
|
196
192
|
buffer = polyrex_new s
|
197
193
|
elsif s[/^https?:\/\//] then # url
|
@@ -203,6 +199,7 @@ class Polyrex
|
|
203
199
|
end
|
204
200
|
|
205
201
|
@doc = Rexle.new buffer
|
202
|
+
|
206
203
|
schema = @doc.root.text('summary/schema')
|
207
204
|
|
208
205
|
unless @format_masks
|
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.7.
|
4
|
+
version: 0.7.8
|
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-
|
12
|
+
date: 2010-12-18 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|