rcscript-client 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/rcscript-client.rb +5 -1
  2. metadata +1 -1
@@ -53,7 +53,11 @@ class RScriptClient
53
53
  summary_node = XPath.match(@doc.root, 'summary/*')
54
54
  if summary_node then
55
55
  summary_node.each do |node|
56
- method = "def %s(); \"%s\"; end" % [node.name, node.text.to_s]
56
+ method =<<EOF
57
+ def #{node.name}()
58
+ "#{(node.cdatas.length > 0 ? node.cdatas.join.strip : node.text.to_s).gsub(/"/,'\"')}"
59
+ end
60
+ EOF
57
61
  self.instance_eval(method)
58
62
  end
59
63
  records = XPath.match(@doc.root, 'records/*/text()')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcscript-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors: []
7
7