diff options
-rw-r--r-- | lib/dataset.rb | 4 | ||||
-rw-r--r-- | opentox-ruby-api-wrapper.gemspec | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb index 30f9644..4d05e73 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -85,9 +85,9 @@ module OpenTox def self.find(uri) begin - RestClient.get uri, :accept => 'application/rdf+xml' # check if the resource is available dataset = Dataset.new - dataset.read uri.to_s + data = RestClient.get uri, :accept => 'application/rdf+xml' # check if the resource is available + dataset.rdf = data dataset rescue nil diff --git a/opentox-ruby-api-wrapper.gemspec b/opentox-ruby-api-wrapper.gemspec index 41335e9..eef00e9 100644 --- a/opentox-ruby-api-wrapper.gemspec +++ b/opentox-ruby-api-wrapper.gemspec @@ -5,11 +5,11 @@ Gem::Specification.new do |s| s.name = %q{opentox-ruby-api-wrapper} - s.version = "1.2.2" + s.version = "1.2.3" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Christoph Helma"] - s.date = %q{2009-12-20} + s.date = %q{2009-12-21} 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", "yaml2owl.rb"] @@ -28,7 +28,6 @@ Gem::Specification.new do |s| "lib/compound.rb", "lib/dataset.rb", "lib/environment.rb", - "lib/feature.rb", "lib/helper.rb", "lib/model.rb", "lib/opentox-ruby-api-wrapper.rb", |