Skip to content

Commit 71df033

Browse files
committed
Also include bin in directories to load native code
1 parent 33144c2 commit 71df033

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.2.1
2+
3+
* Ensure the native Gem loads on Windows. Fixes #581.
4+
15
## 3.2.0
26

37
* Reduce number of files shipped with precompiled Windows gem

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.0
1+
3.2.1

lib/tiny_tds.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module TinyTds
1111
# Is this file part of a fat binary gem with bundled freetds?
1212
# This path must be enabled by add_dll_directory on Windows.
1313
gplat = ::Gem::Platform.local
14-
FREETDS_LIB_PATH = Dir[File.expand_path("../ports/#{gplat.cpu}-#{gplat.os}*/lib", __dir__)].first
14+
FREETDS_LIB_PATH = Dir[File.expand_path("../ports/#{gplat.cpu}-#{gplat.os}*/{bin,lib}", __dir__)].first
1515

1616
add_dll_path = proc do |path, &block|
1717
if RUBY_PLATFORM =~ /(mswin|mingw)/i && path

0 commit comments

Comments
 (0)