lib/mysql2.rb in mysql2-lambda-test-0.5.3.test3 vs lib/mysql2.rb in mysql2-lambda-test-0.5.3.test4

- old
+ new

@@ -1,7 +1,14 @@ require 'date' require 'bigdecimal' +ldpath = File.expand_path('lib/mysql2', File.dirname(__FILE__)) +ENV['LD_LIBRARY_PATH'] = if ENV['LD_LIBRARY_PATH'] + "ldpath:#{ENV['LD_LIBRARY_PATH']}" +else + ldpath +end + # Load libmysql.dll before requiring mysql2/mysql2.so # This gives a chance to be flexible about the load path # Or to bomb out with a clear error message instead of a linker crash if RUBY_PLATFORM =~ /mswin|mingw/ dll_path = if ENV['RUBY_MYSQL2_LIBMYSQL_DLL']