Sha256: 22fb9d6afa08e9d6a1491ddd69202ef0f63bbcdcae35b4856d972a1d01a03d0a

Contents?: true

Size: 938 Bytes

Versions: 21

Compression:

Stored size: 938 Bytes

Contents

if(RUBY_PLATFORM =~ /darwin/i)
   cliPackagePath = File.dirname(__FILE__)  + '/clidriver'
        if(Dir.exists?(cliPackagePath))
                currentPath = "#{File.expand_path(File.dirname(File.dirname(__FILE__)))}"

                cmd = "chmod 755 #{currentPath}/lib/ibm_db.bundle "
                `#{cmd}`

                cmd = "chmod 755 #{currentPath}/lib/clidriver/lib/libdb2.dylib"
                `#{cmd}`

                cmd = "install_name_tool -change libdb2.dylib #{currentPath}/lib/clidriver/lib/libdb2.dylib #{currentPath}/lib/ibm_db.bundle"
                `#{cmd}`

                $LOAD_PATH.unshift("#{currentPath}/lib")
        end

        require 'ibm_db.bundle'

elsif(RUBY_PLATFORM =~ /mswin32/ || RUBY_PLATFORM =~ /mingw32/ )
        require 'mswin32/ibm_db'
else
        require 'ibm_db.so'
end

require 'active_record'
require 'active_record/connection_adapters/ibm_db_adapter'

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 lib/IBM_DB.rb
ibm_db-5.4.1-x86-mingw32 lib/IBM_DB.rb
ibm_db-5.4.0-x86-mingw32 lib/IBM_DB.rb
ibm_db-5.3.2-x86-mingw32 lib/IBM_DB.rb
ibm_db-5.2.0-x86-mingw32 lib/IBM_DB.rb
ibm_db-5.1.0-x86-mingw32 lib/IBM_DB.rb
ibm_db-5.0.5-x86-mingw32 lib/IBM_DB.rb
ibm_db-5.0.4-x86-mingw32 lib/IBM_DB.rb
ibm_db-5.0.3-x86-mingw32 lib/IBM_DB.rb
ibm_db-5.0.2-x86-mingw32 lib/IBM_DB.rb
ibm_db-3.0.5-x86-mingw32 lib/IBM_DB.rb
ibm_db-3.0.5 lib/IBM_DB.rb
ibm_db-3.0.0-x86-mingw32 lib/IBM_DB.rb
ibm_db-3.0.0-x86_64-darwin-14 lib/IBM_DB.rb
ibm_db-3.0.0 lib/IBM_DB.rb
ibm_db-2.6.1-x86-mingw32 lib/IBM_DB.rb
ibm_db-2.6.1-universal-darwin-14 lib/IBM_DB.rb
ibm_db-2.6.1 lib/IBM_DB.rb
ibm_db-2.6.0-x86-mingw32 lib/IBM_DB.rb
ibm_db-2.6.0-x86_64-darwin-14 lib/IBM_DB.rb