lib/roo.rb in roo-1.11.2 vs lib/roo.rb in roo-1.12.0
- old
+ new
@@ -1,16 +1,34 @@
module Roo
- VERSION = '1.10.3'
+ VERSION = '1.12.0'
- autoload :Spreadsheet, 'roo/spreadsheet'
+ def self.const_missing(const_name)
+ case const_name
+ when :Libreoffice
+ warn "`Roo::Libreoffice` has been deprecated. Use `Roo::LibreOffice` instead."
+ LibreOffice
+ when :Openoffice
+ warn "`Roo::Openoffice` has been deprecated. Use `Roo::OpenOffice` instead."
+ OpenOffice
+ when :Csv
+ warn "`Roo::Csv` has been deprecated. Use `Roo::CSV` instead."
+ CSV
+ when :GenericSpreadsheet
+ warn "`Roo::GenericSpreadsheet` has been deprecated. Use `Roo::Base` instead."
+ Base
+ else
+ super
+ end
+ end
- autoload :GenericSpreadsheet, 'roo/generic_spreadsheet'
- autoload :Openoffice, 'roo/openoffice'
- autoload :Excel, 'roo/excel'
- autoload :Excelx, 'roo/excelx'
- autoload :Google, 'roo/google'
- autoload :Csv, 'roo/csv'
+ autoload :Spreadsheet, 'roo/spreadsheet'
+ autoload :Base, 'roo/base'
- autoload :Excel2003XML, 'roo/excel2003xml'
- autoload :RooRailsHelper, 'roo/roo_rails_helper'
+ autoload :OpenOffice, 'roo/openoffice'
+ autoload :LibreOffice, 'roo/openoffice'
+ autoload :Excel, 'roo/excel'
+ autoload :Excelx, 'roo/excelx'
+ autoload :Excel2003XML, 'roo/excel2003xml'
+ autoload :Google, 'roo/google'
+ autoload :CSV, 'roo/csv'
end