diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-01-08 11:28:28 +0100 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-01-08 11:28:28 +0100 |
commit | 8839840209798deedd618c07c1cb3c29d9fa4790 (patch) | |
tree | 6405d68bfecfb9364257efdfe9505cfb3ac2d770 /example.rb | |
parent | 9a743973a913c9d3a92e47f176ee94bc583522a5 (diff) |
cosmetics3
Diffstat (limited to 'example.rb')
-rw-r--r-- | example.rb | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |