Module: TinyTds::Gem
- Defined in:
- lib/tiny_tds/gem.rb
Class Method Summary collapse
- .ports_bin_paths ⇒ Object
- .ports_host ⇒ Object
- .ports_lib_paths ⇒ Object
- .ports_root_path ⇒ Object
- .root_path ⇒ Object
Class Method Details
.ports_bin_paths ⇒ Object
14 15 16 |
# File 'lib/tiny_tds/gem.rb', line 14 def ports_bin_paths Dir.glob(File.join(ports_root_path,ports_host,'**','bin')) end |
.ports_host ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/tiny_tds/gem.rb', line 22 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 |
.ports_lib_paths ⇒ Object
18 19 20 |
# File 'lib/tiny_tds/gem.rb', line 18 def ports_lib_paths Dir.glob(File.join(ports_root_path,ports_host,'**','lib')) end |
.ports_root_path ⇒ Object
10 11 12 |
# File 'lib/tiny_tds/gem.rb', line 10 def ports_root_path File.join(root_path,'ports') end |
.root_path ⇒ Object
6 7 8 |
# File 'lib/tiny_tds/gem.rb', line 6 def root_path File. '../../..', __FILE__ end |