summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-06-15 16:46:12 +0200
committerChristoph Helma <helma@in-silico.ch>2011-06-15 16:46:12 +0200
commit6b9e012576857fbc6c51cd86581cca792f367cdf (patch)
tree3f69e57e8b9fe438a6f9b3fae96de47745d47f81
parentd364c46307292d8b0e79c4eaee137711ce5459ba (diff)
smarts escape fixedv2.0.1
-rw-r--r--lib/compound.rb6
-rw-r--r--opentox-ruby.gemspec4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/compound.rb b/lib/compound.rb
index a85507b..f631ca9 100644
--- a/lib/compound.rb
+++ b/lib/compound.rb
@@ -159,9 +159,9 @@ module OpenTox
# @param [Array] deactivating Array with deactivating Smarts strings
# @return [String] URI for compound image with highlighted fragments
def matching_smarts_image_uri(activating, deactivating)
- activating_smarts = URI.encode "\"#{activating.join("\"/\"")}\""
- deactivating_smarts = URI.encode "\"#{deactivating.join("\"/\"")}\""
- File.join @uri, "smarts/activating", URI.encode(activating_smarts),"deactivating", URI.encode(deactivating_smarts)
+ activating_smarts = "\"#{activating.collect{|smarts| CGI.escape(smarts)}.join("\"/\"")}\""
+ deactivating_smarts = "\"#{deactivating.collect{|smarts| CGI.escape(smarts)}.join("\"/\"")}\""
+ File.join @uri, "smarts/activating", activating_smarts, "deactivating", deactivating_smarts
end
diff --git a/opentox-ruby.gemspec b/opentox-ruby.gemspec
index e62eec5..d316689 100644
--- a/opentox-ruby.gemspec
+++ b/opentox-ruby.gemspec
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{opentox-ruby}
- s.version = "2.0.0"
+ s.version = "2.0.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Christoph Helma, Martin Guetlein, Andreas Maunz, Micha Rautenberg, David Vorgrimmler"]
- s.date = %q{2011-05-23}
+ s.date = %q{2011-06-15}
s.description = %q{Ruby wrapper for the OpenTox REST API (http://www.opentox.org)}
s.email = %q{helma@in-silico.ch}
s.executables = ["opentox-install-debian.sh", "opentox-install-ubuntu.sh"]