rcscript-client 0.1.5 → 0.2.0

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/rcscript-client.rb +8 -1
  2. metadata +3 -3
@@ -53,9 +53,16 @@ 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
+
57
+ if node.cdatas.length > 0 then
58
+ content = node.cdatas.length == 1 ? node.cdatas.join.strip : node.cdatas
59
+ else
60
+ content = node.text.to_s.gsub(/"/,'\"').gsub(/#/,'\#')
61
+ end
62
+
56
63
  method =<<EOF
57
64
  def #{node.name}()
58
- "#{(node.cdatas.length > 0 ? node.cdatas.join.strip : node.text.to_s).gsub(/"/,'\"').gsub(/#/,'\#')}"
65
+ #{content}
59
66
  end
60
67
  EOF
61
68
  self.instance_eval(method)
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.5
4
+ version: 0.2.0
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-04-11 00:00:00 +01:00
12
+ date: 2010-05-27 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -50,6 +50,6 @@ rubyforge_project:
50
50
  rubygems_version: 1.3.5
51
51
  signing_key:
52
52
  specification_version: 3
53
- summary: RCscript-client is a utility for remotely executing Ruby Scripting File (RSF)
53
+ summary: RCscript-client is a utility for remotely executing Ruby Scripting Files (RSF)
54
54
  test_files: []
55
55