lib/dwc-archive.rb in dwc-archive-0.7.6 vs lib/dwc-archive.rb in dwc-archive-0.7.7

- old
+ new

@@ -1,22 +1,12 @@ # encoding: UTF-8 $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) R19 = RUBY_VERSION.split('.')[0..1].join('').to_i > 18 +raise "IMPORTANT: dwc-archive gem requires ruby >= 1.9.1" unless R19 require 'fileutils' require 'ostruct' - -if R19 - require 'csv' -else - raise "IMPORTANT: dwc-archive gem requires ruby >= 1.9.1" - require 'fastercsv' - CSV = FasterCSV - if (defined?(Rails) && Rails::VERSION::MAJOR >= 3 && Rails.env.test?) - $" << 'csv.rb' - end -end - +require 'csv' require 'logger' require 'dwc-archive/xml_reader' require 'dwc-archive/ingester' require 'dwc-archive/errors' require 'dwc-archive/expander'