diff --git a/Gemfile.lock b/Gemfile.lock index 5cabbb6..81c34b7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,43 +1,45 @@ GEM remote: https://rubygems.org/ specs: - activemodel (4.2.6) - activesupport (= 4.2.6) + activemodel (5.1.3) + activesupport (= 5.1.3) + activemodel-serializers-xml (1.0.2) + activemodel (> 5.x) + activesupport (> 5.x) builder (~> 3.1) - activeresource (4.1.0) - activemodel (~> 4.0) - activesupport (~> 4.0) - rails-observers (~> 0.1.2) - activesupport (4.2.6) + activeresource (5.0.0) + activemodel (>= 5.0, < 6) + activemodel-serializers-xml (~> 1.0) + activesupport (>= 5.0, < 6) + activesupport (5.1.3) + concurrent-ruby (~> 1.0, >= 1.0.2) i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) - builder (3.2.2) - domain_name (0.5.20160309) + builder (3.2.3) + concurrent-ruby (1.0.5) + domain_name (0.5.20170404) unf (>= 0.0.5, < 1.0.0) - http-cookie (1.0.2) + http-cookie (1.0.3) domain_name (~> 0.5) - i18n (0.7.0) - json (1.8.3) - mime-types (2.99.1) - minitest (5.9.0) + i18n (0.8.6) + mime-types (3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0521) + minitest (5.10.3) netrc (0.11.0) openbabel (2.3.2.2) - rails-observers (0.1.2) - activemodel (~> 4.0) - rest-client (1.8.0) + rest-client (2.0.2) http-cookie (>= 1.0.2, < 2.0) - mime-types (>= 1.16, < 3.0) - netrc (~> 0.7) - thread_safe (0.3.5) - tzinfo (1.2.2) + mime-types (>= 1.16, < 4.0) + netrc (~> 0.8) + thread_safe (0.3.6) + tzinfo (1.2.3) thread_safe (~> 0.1) unf (0.1.4) unf_ext - unf_ext (0.0.7.2) - yard (0.8.7.6) + unf_ext (0.0.7.4) + yard (0.9.9) PLATFORMS ruby @@ -49,4 +51,4 @@ DEPENDENCIES yard BUNDLED WITH - 1.11.2 + 1.14.6 diff --git a/lib/classyfire_api.rb b/lib/classyfire_api.rb index 606bf80..c7ee4c4 100644 --- a/lib/classyfire_api.rb +++ b/lib/classyfire_api.rb @@ -215,7 +215,7 @@ module ClassyFireAPI k = 0 for k in (i...(i + initial_nr_of_jobs)) title = File.basename(absolute_path).split(".")[0] + "_yannick" + "_part_#{k}" - i = i + 1 + begin puts "submitting #{title}" q = submit_query(title,subdivised_groups[k-1].join("\n"),type) @@ -226,6 +226,7 @@ module ClassyFireAPI puts e.message puts e.backtrace.inspect end + i = i + 1 end i = k puts "Going to sleep at #{Time.now - @start_time} for #{sleeping_time} s."