polyrex-objects 0.4.0 → 0.4.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-objects.rb +1 -1
  2. metadata +2 -2
@@ -39,7 +39,7 @@ class PolyrexObjects
39
39
  i = @class_names.length - (k + 1)
40
40
  eval "#{class_name}.class_eval {
41
41
  def records()
42
- XPath.each(@node, 'records/*') {|record| yield(#{@class_names[i]}.new(record))}
42
+ XPath.map(@node, 'records/*') {|record| #{@class_names[i]}.new(record)}
43
43
  end
44
44
 
45
45
  def create(id=nil)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.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-06 00:00:00 +01:00
12
+ date: 2010-06-07 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency