summaryrefslogtreecommitdiff
path: root/example.rb
diff options
context:
space:
mode:
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