Sha256: 154b0517be184b60e251bda8d980d90594a61405fbafee45840236498ef21118

Contents?: true

Size: 421 Bytes

Versions: 4

Compression:

Stored size: 421 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
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
remote_table-2.1.0 lib/remote_table/ods.rb
remote_table-2.0.2 lib/remote_table/ods.rb
remote_table-2.0.1 lib/remote_table/ods.rb
remote_table-2.0.0 lib/remote_table/ods.rb