polyrex 0.6.0 → 0.6.1

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 +4 -0
  2. metadata +2 -2
data/lib/polyrex.rb CHANGED
@@ -7,6 +7,7 @@ require 'line-tree'
7
7
  require 'polyrex-objects'
8
8
  require 'polyrex-createobject'
9
9
  require 'rexml/document'
10
+ require 'ostruct'
10
11
 
11
12
  class Polyrex
12
13
  include REXML
@@ -68,6 +69,9 @@ class Polyrex
68
69
  end
69
70
  end
70
71
 
72
+ def summary
73
+ OpenStruct.new Hash[*XPath.match(@doc.root, "summary/*").map {|x| [x.name, x.text]}.flatten]
74
+ end
71
75
 
72
76
  private
73
77
 
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.0
4
+ version: 0.6.1
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-07 00:00:00 +01:00
12
+ date: 2010-06-14 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency