Sha256: b8baad3a00272cff492a40dcb1b8cd62a3bbba2156f097d3a50227eea399bd5e

Contents?: true

Size: 441 Bytes

Versions: 17

Compression:

Stored size: 441 Bytes

Contents

module ArJdbc
  def self.discover_extensions
    if defined?(::Gem) && ::Gem.respond_to?(:find_files)
      files = ::Gem.find_files('arjdbc/discover')
    else
      files = $LOAD_PATH.map do |p|
        discover = File.join(p, 'arjdbc','discover.rb')
        File.exist?(discover) ? discover : nil
      end.compact
    end
    files.each do |f|
      puts "Loading #{f}" if $DEBUG
      require f
    end
  end

  discover_extensions
end

Version data entries

17 entries across 17 versions & 6 rubygems

Version Path
cmoran92-activerecord-jdbc-adapter-1.2.1.2 lib/arjdbc/jdbc/discover.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 lib/arjdbc/jdbc/discover.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 lib/arjdbc/jdbc/discover.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 lib/arjdbc/jdbc/discover.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 lib/arjdbc/jdbc/discover.rb
activerecord-jdbc-adapter-1.2.2.1 lib/arjdbc/jdbc/discover.rb
activerecord-jdbc-adapter-onsite-1.2.2 lib/arjdbc/jdbc/discover.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 lib/arjdbc/jdbc/discover.rb
activerecord-jdbc-adapter-1.2.2 lib/arjdbc/jdbc/discover.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 lib/arjdbc/jdbc/discover.rb
activerecord-jdbc-adapter-1.2.1 lib/arjdbc/jdbc/discover.rb
c3-activerecord-jdbc-adapter-1.1.3.1 lib/arjdbc/jdbc/discover.rb
activerecord-jdbc-adapter-1.2.0 lib/arjdbc/jdbc/discover.rb
c3-activerecord-jdbc-adapter-1.1.3 lib/arjdbc/jdbc/discover.rb
jashmenn-activerecord-jdbc-adapter-1.2.0.0 lib/arjdbc/jdbc/discover.rb
jashmenn-activerecord-jdbc-adapter-1.2.0 lib/arjdbc/jdbc/discover.rb
activerecord-jdbc-adapter-1.1.3 lib/arjdbc/jdbc/discover.rb