From 8839840209798deedd618c07c1cb3c29d9fa4790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20G=C3=BCtlein?= Date: Fri, 8 Jan 2010 11:28:28 +0100 Subject: cosmetics3 --- example.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'example.rb') 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 -- cgit v1.2.3