ar-extensions 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +6 -0
- data/README +11 -0
- data/Rakefile +4 -26
- data/lib/ar-extensions/finders.rb +2 -2
- data/lib/ar-extensions/temporary_table.rb +1 -0
- data/lib/ar-extensions/version.rb +2 -1
- metadata +1 -1
data/ChangeLog
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
2007-03-14 zdennis <zdennis@elijah.xrite.com>
|
2
|
+
|
3
|
+
* Fixed a bug by renaming the alias for the ActiveRecord::Base#quote method in finders.rb. See rubyforge bug #8996
|
4
|
+
|
5
|
+
* Made a .gemspec for ar-extensions
|
6
|
+
|
1
7
|
2007-03-13 zdennis <zdennis@elijah>
|
2
8
|
|
3
9
|
* Added :datetime searching support for better finder support.
|
data/README
CHANGED
@@ -10,6 +10,17 @@ Email: zach.dennis@gmail.com
|
|
10
10
|
- For project information and feedback please consult http://rubyforge.org/projects/arext/
|
11
11
|
- For release information please see below
|
12
12
|
|
13
|
+
ActiveRecord::Extensions 0.5.2
|
14
|
+
------------------------------
|
15
|
+
March 14th, 2007
|
16
|
+
- Fixed Rubyforge bug #8996 by renaming alias in finders.rb to the ActiveRecord::Base#quote method
|
17
|
+
|
18
|
+
ActiveRecord::Extensions 0.5.1
|
19
|
+
------------------------------
|
20
|
+
March 14th, 2007
|
21
|
+
- Released as a rubygem
|
22
|
+
- Added a .gemspec file
|
23
|
+
|
13
24
|
ActiveRecord::Extensions 0.5.0
|
14
25
|
------------------------------
|
15
26
|
March 13th, 2007
|
data/Rakefile
CHANGED
@@ -7,9 +7,9 @@ DIR = File.dirname( __FILE__ )
|
|
7
7
|
task :default => [ "test:mysql" ]
|
8
8
|
|
9
9
|
task :boot do
|
10
|
-
require File.join( DIR, 'lib', 'ar-extensions' )
|
11
|
-
require File.join( DIR, 'tests', 'connections', "native_#{ENV['ARE_DB']}", 'connection' )
|
12
|
-
require File.join( DIR, 'db/migrate/version' )
|
10
|
+
require File.expand_path( File.join( DIR, 'lib', 'ar-extensions' ) )
|
11
|
+
require File.expand_path( File.join( DIR, 'tests', 'connections', "native_#{ENV['ARE_DB']}", 'connection' ) )
|
12
|
+
require File.expand_path( File.join( DIR, 'db/migrate/version' ) )
|
13
13
|
end
|
14
14
|
|
15
15
|
ADAPTERS = %w( mysql postgresql sqlite sqlite3 )
|
@@ -72,26 +72,4 @@ namespace :test do
|
|
72
72
|
|
73
73
|
end
|
74
74
|
|
75
|
-
|
76
|
-
|
77
|
-
ADAPTERS.each do |adapter|
|
78
|
-
desc "load ar-extensions from rubygems and test base extensions for #{adapter}"
|
79
|
-
task adapter do |t|
|
80
|
-
ENV['ARE_DB'] = adapter
|
81
|
-
Rake::Task[ 'boot' ].invoke
|
82
|
-
|
83
|
-
task = Rake::Task[ "db:test:prepare_#{adapter}" ]
|
84
|
-
begin
|
85
|
-
task = false if SchemaInfo::VERSION == SchemaInfo.find( :first ).version
|
86
|
-
rescue Exception => ex
|
87
|
-
end
|
88
|
-
task.invoke if task
|
89
|
-
|
90
|
-
system "ruby #{File.join( DIR, 'tests/run_from_gem.rb ' )} #{adapter}"
|
91
|
-
end
|
92
|
-
|
93
|
-
end
|
94
|
-
|
95
|
-
end
|
96
|
-
|
97
|
-
end
|
75
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module ActiveRecord::ConnectionAdapters::Quoting
|
2
2
|
|
3
|
-
alias :
|
3
|
+
alias :quote_before_arext :quote
|
4
4
|
def quote( value, column=nil ) # :nodoc:
|
5
5
|
if value.is_a?( Regexp )
|
6
6
|
"'#{value.inspect[1...-1]}'"
|
7
7
|
else
|
8
|
-
|
8
|
+
quote_before_arext( value, column )
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|