diff options
-rw-r--r-- | application.rb | 3 | ||||
-rw-r--r-- | dataset.gemspec | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/application.rb b/application.rb index f106aef..a2c8747 100644 --- a/application.rb +++ b/application.rb @@ -35,6 +35,7 @@ module OpenTox def from_spreadsheet spreadsheet extensions = { Excel => ".xls", Excelx => ".xlsx", Openoffice => ".ods" } + puts params[:file][:tempfile].path input = params[:file][:tempfile].path + ".xls" csv_file = params[:file][:tempfile].path + ".csv" File.rename params[:file][:tempfile].path, input # roo needs "correct" extensions @@ -355,8 +356,6 @@ module OpenTox end end table -=begin -=end end def feature_type(value) diff --git a/dataset.gemspec b/dataset.gemspec index d82e8b3..99569a9 100644 --- a/dataset.gemspec +++ b/dataset.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |s| # specify any dependencies here; for example: s.add_runtime_dependency "opentox-server" - s.add_runtime_dependency 'roo', "~>1.10.1" + s.add_runtime_dependency 'roo', "=1.10.1" # 1.10.2 is defunct s.add_runtime_dependency "openbabel", "~>2.3.1.5" s.post_install_message = "Please configure your service in ~/.opentox/config/dataset.rb" end |