Sha256: bf6f177d0a48f1233818b32f592141c3b3ac0ceda6e40a91b286213df1a984ea

Contents?: true

Size: 473 Bytes

Versions: 5

Compression:

Stored size: 473 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
      Roo.const_defined?(:Openoffice) ? Roo::Openoffice : ::Openoffice
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
remote_table-2.1.2 lib/remote_table/ods.rb
remote_table-3.0.0.rc1 lib/remote_table/ods.rb
remote_table-3.0.0.beta lib/remote_table/ods.rb
remote_table-3.0.0.alpha lib/remote_table/ods.rb
remote_table-2.1.1 lib/remote_table/ods.rb