Update Vendored sqlite3-ruby
This commit is contained in:
parent
9874650e4b
commit
a71e64a172
26 changed files with 6501 additions and 4335 deletions
|
@ -10,7 +10,7 @@ module SQLite3 ; module Driver; module DL;
|
|||
"libsqlite3.dylib"
|
||||
when /linux/, /freebsd|netbsd|openbsd|dragonfly/, /solaris/
|
||||
"libsqlite3.so"
|
||||
when /win32/
|
||||
when /mswin|mingw/
|
||||
"sqlite3.dll"
|
||||
else
|
||||
abort <<-EOF
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
require 'sqlite3_api'
|
||||
# support multiple ruby version (fat binaries under windows)
|
||||
begin
|
||||
require 'sqlite3_api'
|
||||
rescue LoadError
|
||||
if RUBY_PLATFORM =~ /mingw|mswin/ then
|
||||
RUBY_VERSION =~ /(\d+.\d+)/
|
||||
require "#{$1}/sqlite3_api"
|
||||
end
|
||||
end
|
||||
|
||||
module SQLite3 ; module Driver ; module Native
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue