Sha256: 1a54722ac1f49a207812fbf2b555c438a68bcfe528f6625509a79cf33a79a964

Contents?: true

Size: 734 Bytes

Versions: 46

Compression:

Stored size: 734 Bytes

Contents

require 'rbconfig'

module TinyTds
  module Gem
    class << self
      def root_path
        File.expand_path '../../..', __FILE__
      end

      def ports_root_path
        File.join(root_path,'ports')
      end

      def ports_bin_paths
        Dir.glob(File.join(ports_root_path,ports_host,'**','bin'))
      end

      def ports_lib_paths
        Dir.glob(File.join(ports_root_path,ports_host,'**','lib'))
      end

      def ports_host
        h = RbConfig::CONFIG['host']

        # Our fat binary builds with a i686-w64-mingw32 toolchain
        # but ruby for windows x32-mingw32 reports i686-pc-mingw32
        # so correct the host here
        h.gsub('i686-pc-mingw32', 'i686-w64-mingw32')
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
tiny_tds-2.1.5-x64-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.5-x86-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.5 lib/tiny_tds/gem.rb
tiny_tds-2.1.4-x64-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.4-x86-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.4 lib/tiny_tds/gem.rb
tiny_tds-2.1.4.pre2-x64-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.4.pre2-x86-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.4.pre2 lib/tiny_tds/gem.rb
tiny_tds-2.1.4.pre-x64-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.4.pre-x86-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.4.pre lib/tiny_tds/gem.rb
tiny_tds-2.1.3-x64-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.3-x86-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.3 lib/tiny_tds/gem.rb
tiny_tds-2.1.3.pre-x86-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.3.pre-x64-mingw32 lib/tiny_tds/gem.rb
tiny_tds-2.1.3.pre lib/tiny_tds/gem.rb
vm_tiny_tds-2.1.2 lib/tiny_tds/gem.rb
tiny_tds-2.1.2-x86-mingw32 lib/tiny_tds/gem.rb