Sha256: 31a2c58a299a9cee69e83768ebc79f668aef48361144287b2dcdedf5659c171d

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 Bytes

Contents

module LicenseFinder
  module Platform
    def self.sqlite_adapter
      java? ? 'jdbc:sqlite' : 'sqlite'
    end

    def self.sqlite_gem
      java? ? 'jdbc-sqlite3' : 'sqlite3'
    end

    def self.sqlite_load_path
      java? ? 'jdbc/sqlite3' : 'sqlite3'
    end

    def self.java?
      RUBY_PLATFORM =~ /java/
    end

    def self.darwin?
      RUBY_PLATFORM =~ /darwin/
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
license_finder-1.2 lib/license_finder/platform.rb
license_finder-1.2-java lib/license_finder/platform.rb