GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of nicksieger/activerecord-jdbc-adapter
Description: ActiveRecord adapter for JDBC and JRuby
Homepage: http://jruby-extras.rubyforge.org/activerecord-jdbc-adapter
Clone URL: git://github.com/abedra/activerecord-jdbc-adapter.git
Update release notes to mention rake incompatibility fixed


git-svn-id: 
svn+ssh://rubyforge.org/var/svn/jruby-extras/trunk/activerecord-jdbc@871 
8ba958d5-0c1a-0410-94a6-a65dfc1b28a6
nicksieger (author)
Sun Jan 06 18:46:29 -0800 2008
commit  cabbfe0ed5f8f044a86906410eeac25d2ffe6676
tree    c250fee733011d4e79349d8544c5a23a1814db6f
parent  53f3b80f733373515d5883f63394fb63f5a8a05a
...
1
2
3
 
4
5
6
...
1
2
3
4
5
6
7
0
@@ -1,6 +1,7 @@
0
 == 0.7.1
0
 
0
 - Add adapter and driver for H2 courtesy of Caleb Land
0
+- Fix "undefined method `last' for {}:Hash" error introduced with new Rake 0.8.1 (JRUBY-1859)
0
 
0
 == 0.7
0
 
...
25
26
27
 
28
29
30
...
41
42
43
 
44
45
46
...
25
26
27
28
29
30
31
...
42
43
44
45
46
47
48
0
@@ -25,6 +25,7 @@ What's there, and what is not there:
0
   * remove_column
0
   * rename_column
0
 * HSQLDB - Complete
0
+* H2 - Complete
0
 
0
 Other databases will require testing and likely a custom configuration module. Please join the jruby-extras mailing-list[http://rubyforge.org/mail/?group_id=2014] to help us discover support for more databases.
0
 
0
@@ -41,6 +42,7 @@ To use ActiveRecord-JDBC with JRuby on Rails:
0
   * postgresql (<tt>activerecord-jdbcpostgresql-adapter</tt>)
0
   * derby (<tt>activerecord-jdbcderby-adapter</tt>)
0
   * hsqldb (<tt>activerecord-jdbchsqldb-adapter</tt>)
0
+ * h2 (<tt>activerecord-jdbch2-adapter</tt>)
0
 
0
 2. If you're using Rails 2.0, you may skip to the next step. For Rails prior to version 2.0, you'll need to add one-time setup to your config/environment.rb file in your Rails application. Add the following lines just before the <code>Rails::Initializer</code>. (If you're using ActiveRecord-JDBC under the old gem name used in versions 0.5 and earlier, replace 'activerecord-jdbc-adapter' with 'ActiveRecord-JDBC' below.)
0
 
...
4
5
6
7
 
8
9
 
 
10
11
12
...
4
5
6
 
7
8
 
9
10
11
12
13
0
@@ -4,9 +4,10 @@ require 'active_record/connection_adapters/jdbc_adapter_spec'
0
 require 'jdbc_adapter/jdbc_adapter_internal'
0
 require 'bigdecimal'
0
 
0
-if defined?(RAILS_ROOT)
0
+begin
0
   require 'jdbc_adapter/rake_tasks'
0
-end
0
+rescue LoadError
0
+end if defined?(RAILS_ROOT)
0
 
0
 module ActiveRecord
0
   module ConnectionAdapters # :nodoc:
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-if defined?(namespace) && RUBY_PLATFORM =~ /java/
0
+if defined?(namespace) && RUBY_PLATFORM =~ /java/ && ENV["SKIP_AR_JDBC_RAKE_REDEFINES"].nil?
0
   def redefine_task(*args, &block)
0
     task_name = Hash === args.first ? args.first.keys[0] : args.first
0
     existing_task = Rake::Task[task_name]

Comments

    No one has commented yet.