ar-extensions 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
- namespace :gem do
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 :quote_orig :quote
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
- quote_orig( value, column )
8
+ quote_before_arext( value, column )
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,4 @@
1
+
1
2
  module ActiveRecord::Extensions::TemporaryTableSupport # :nodoc:
2
3
  def supports_temporary_tables? #:nodoc:
3
4
  true
@@ -1,7 +1,8 @@
1
+
1
2
  module ActiveRecord # :nodoc:
2
3
  module Extensions # :nodoc:
3
4
  module VERSION
4
- MAJOR, MINOR, REVISION = %W( 0 4 0 )
5
+ MAJOR, MINOR, REVISION = %W( 0 5 2 )
5
6
  STRING = [ MAJOR, MINOR, REVISION ].join( '.' )
6
7
  end
7
8
  end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.1
3
3
  specification_version: 1
4
4
  name: ar-extensions
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.1
6
+ version: 0.5.2
7
7
  date: 2007-03-15 00:00:00 -04:00
8
8
  summary: Extends ActiveRecord functionality.
9
9
  require_paths: