polyrex-objects 0.5.0 → 0.5.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 +1 -1
@@ -31,7 +31,7 @@ class PolyrexObjects
31
31
  classx << "@create = PolyrexCreateObject.new('#{schema}')"
32
32
  classx << "end"
33
33
  fields.each do |field|
34
- classx << "def #{field}; XPath.first(@node, 'summary/#{field}/text()'); end"
34
+ classx << "def #{field}; XPath.first(@node, 'summary/#{field}/text()').to_s; end"
35
35
  classx << "def #{field}=(text); XPath.first(@node, 'summary/#{field}').text = text; end"
36
36
  end
37
37
  classx << "def to_xml(); @node.to_s; end"
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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors: []
7
7