polyrex 0.7.5 → 0.7.6

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.rb +5 -1
  2. metadata +2 -2
data/lib/polyrex.rb CHANGED
@@ -27,6 +27,10 @@ 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
30
34
 
31
35
  def record()
32
36
  @parent_node
@@ -61,7 +65,7 @@ class Polyrex
61
65
  end
62
66
 
63
67
  def xpath(s)
64
- @doc.element s
68
+ @doc.xpath s
65
69
  end
66
70
 
67
71
  def records
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.5
4
+ version: 0.7.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-12-01 00:00:00 +00:00
12
+ date: 2010-12-09 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency