summaryrefslogtreecommitdiff
path: root/example.rb
diff options
context:
space:
mode:
authorMartin Gütlein <martin.guetlein@gmail.com>2010-01-08 11:28:28 +0100
committerMartin Gütlein <martin.guetlein@gmail.com>2010-01-08 11:28:28 +0100
commit8839840209798deedd618c07c1cb3c29d9fa4790 (patch)
tree6405d68bfecfb9364257efdfe9505cfb3ac2d770 /example.rb
parent9a743973a913c9d3a92e47f176ee94bc583522a5 (diff)
cosmetics3
Diffstat (limited to 'example.rb')
-rw-r--r--example.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/example.rb b/example.rb
index 90c7ec3..e58e5f6 100644
--- a/example.rb
+++ b/example.rb
@@ -19,7 +19,7 @@ class Example
end
file.close
- sub = { "validation_service" => @@config[:services]["opentox-validation"],
+ sub = { "validation_service" => @@config[:services]["opentox-validation"].chomp("/"),
"validation_id" => "1",
"model_uri" => @@model,
"dataset_uri" => @@data,
@@ -33,8 +33,6 @@ class Example
sub.each do |k,v|
res.gsub!(/<#{k}>/,v)
end
- #replace // that do not have a leading ':'
- res.gsub!(/[^:]\/\//,"\1/")
res
end