mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
added dependencies in Gemfile for running ActiveRecord tests with Oracle database
This commit is contained in:
committed by
Aaron Patterson
parent
047e411fd2
commit
d1480926e8
12
Gemfile
12
Gemfile
@@ -49,3 +49,15 @@ platforms :jruby do
|
||||
gem "activerecord-jdbcpostgresql-adapter"
|
||||
end
|
||||
end
|
||||
|
||||
# gems that are necessary for ActiveRecord tests with Oracle database
|
||||
if ENV['ORACLE_ENHANCED_PATH'] || ENV['ORACLE_ENHANCED']
|
||||
platforms :ruby do
|
||||
gem 'ruby-oci8', ">= 2.0.4"
|
||||
end
|
||||
if ENV['ORACLE_ENHANCED_PATH']
|
||||
gem 'activerecord-oracle_enhanced-adapter', :path => ENV['ORACLE_ENHANCED_PATH']
|
||||
else
|
||||
gem "activerecord-oracle_enhanced-adapter", :git => "git://github.com/rsim/oracle-enhanced.git"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
# gem "rsim-activerecord-oracle_enhanced-adapter"
|
||||
# gem "activerecord-oracle_enhanced-adapter", ">=1.2.1"
|
||||
# uses local copy of oracle_enhanced adapter
|
||||
$:.unshift("../../oracle-enhanced/lib")
|
||||
# uses oracle_enhanced adapter in ENV['ORACLE_ENHANCED_PATH'] or from github.com/rsim/oracle-enhanced.git
|
||||
require 'active_record/connection_adapters/oracle_enhanced_adapter'
|
||||
# gem "activerecord-jdbc-adapter"
|
||||
# require 'active_record/connection_adapters/jdbc_adapter'
|
||||
|
||||
# otherwise failed with silence_warnings method missing exception
|
||||
require 'active_support/core_ext/kernel/reporting'
|
||||
|
||||
Reference in New Issue
Block a user