lib/rubyrep.rb in rubyrep-1.2.0 vs lib/rubyrep.rb in rubyrep-2.0.0

- old
+ new

@@ -2,12 +2,14 @@ $LOAD_PATH.unshift File.dirname(__FILE__) + "/rubyrep" require 'rubygems' require 'yaml' -gem 'activerecord', '>= 3.0.5' +gem 'activerecord', '>= 4.2', '< 5' require 'active_record' +require 'activerecord-jdbc-adapter' if RUBY_PLATFORM == 'java' +require 'ap' require 'version' require 'configuration' require 'initializer' require 'session' @@ -54,11 +56,10 @@ require 'uninstall_runner' require 'generate_runner' require 'noisy_connection' Dir["#{File.dirname(__FILE__)}/rubyrep/connection_extenders/*.rb"].each do |extender| - # jdbc_extender.rb is only loaded if we are running on jruby - require extender unless extender =~ /jdbc/ and not RUBY_PLATFORM =~ /java/ + require extender end require 'replication_initializer' require 'replication_extenders/replication_extenders' \ No newline at end of file