diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-05-28 10:05:07 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-05-28 10:05:07 +0200 |
commit | efca5a3b1b418dab73a914f52ab241c8472d2f4c (patch) | |
tree | 9be44888e31cd90b5f84860a3174f0ee3cfc722e | |
parent | 576007f75c8fe7e6f7e76706ee9bc2ada6da08ca (diff) |
new wrapper version, remove try_again
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | lib/utils.rb | 17 | ||||
-rw-r--r-- | opentox-ruby-api-wrapper.gemspec | 4 |
3 files changed, 3 insertions, 20 deletions
@@ -1 +1 @@ -1.4.0 +1.4.4.4 diff --git a/lib/utils.rb b/lib/utils.rb index 28e114e..741fbd6 100644 --- a/lib/utils.rb +++ b/lib/utils.rb @@ -29,23 +29,6 @@ module OpenTox end end - def self.try_again(times=25) - count = 0 - while (true) - begin - return yield - rescue => ex - count += 1 - if count<times - LOGGER.warn "failed ("+count.to_s+"), try again in a second : "+ex.message - sleep 1 - else - raise ex - end - end - end - end - end # ['rubygems', 'rest_client'].each do |r| diff --git a/opentox-ruby-api-wrapper.gemspec b/opentox-ruby-api-wrapper.gemspec index dffefa6..faff253 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.4.0" + s.version = "1.4.4.4" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Christoph Helma"] - s.date = %q{2010-05-26} + s.date = %q{2010-05-27} s.description = %q{Ruby wrapper for the OpenTox REST API (http://www.opentox.org)} s.email = %q{helma@in-silico.ch} s.executables = ["yaml2owl.rb", "opentox-install-ubuntu.sh", "opentox-install-debian.sh"] |