Sha256: 0e1c907acb8531a655a73650a5f26b032c20b89c5b19ad3cdee325d2268d0fb4

Contents?: true

Size: 683 Bytes

Versions: 8

Compression:

Stored size: 683 Bytes

Contents

class RemoteTable
  # Parses ODS files using Roo's Openoffice class.
  #
  # Know to have issues on JRuby.
  module Ods
    def self.extended(base)
      base.extend ProcessedByRoo
    end

    def roo_class
      if ::RUBY_PLATFORM == 'java'
        ::Kernel.warn "[remote_table] Opening ODS files on JRuby is known to fail because of a flaw in the underlying Roo library"
      end
      [:Openoffice, :OpenOffice]
      if ::Roo.const_defined?(:OpenOffice)
        ::Roo::OpenOffice
      elsif ::Roo.const_defined?(:Openoffice)
        ::Roo::Openoffice
      else
        raise "Couldn't find roo's OpenOffice class, maybe you need a newer version?"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
remote_table-3.3.3 lib/remote_table/ods.rb
remote_table-3.3.2 lib/remote_table/ods.rb
remote_table-3.3.0 lib/remote_table/ods.rb
remote_table-3.2.1 lib/remote_table/ods.rb
remote_table-3.2.0 lib/remote_table/ods.rb
remote_table-3.1.0 lib/remote_table/ods.rb
remote_table-3.0.0 lib/remote_table/ods.rb
remote_table-3.0.0.rc2 lib/remote_table/ods.rb