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

public
Fork of stevenbristol/lovd-by-less
Description: Open Source Social Network written in Ruby on Rail by Less Everything
Homepage: http://lovdbyless.com
Clone URL: git://github.com/kyc/lovd-by-less.git
updated rows_logger to most recent version (allows non-MySQL databases); 
added rmagick to list of dependencies
gcnovus (author)
Mon Mar 24 12:05:21 -0700 2008
commit  43a952709363ad42ac98563927b5ac41a0a9ae2c
tree    dc74993b1614f8868d185f66fed67ea10a14b867
parent  9b54fd581ffbc70d41137c51360227fbef736fdf
0
...
39
40
41
 
42
43
44
...
39
40
41
42
43
44
45
0
@@ -39,6 +39,7 @@ Install the Required Gems:
0
 - redgreen
0
 - RedCloth
0
 - imagick
0
+- rmagick (will require ImageMagick, which is not a gem)
0
 - acts_as_ferret
0
 - ferret
0
 - win32console (windows only)
...
84
85
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
88
89
90
 
91
...
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
 
 
105
106
0
@@ -84,7 +84,22 @@ we check whether it is implemented or not in current adapter by using
0
 'respond_to?' method.
0
 
0
 
0
+Supported Databases
0
+===================
0
+
0
+Currently these databases are supported.
0
+
0
+* PostgreSQL
0
+* MySQL
0
+
0
+
0
+For Other Databases
0
+===================
0
+
0
+Put a new adapter file that contains 'count_result' method for
0
+your database adapter into adatpers directory.
0
+
0
+
0
 Author
0
 ======
0
-Maiha <anna@wota.jp>
0
-
0
+Maiha <maiha@wota.jp>
0
\ No newline at end of file
...
1
2
3
4
5
6
7
8
 
 
 
 
 
9
10
11
...
55
56
57
58
59
60
61
 
62
...
1
2
 
 
 
 
 
 
3
4
5
6
7
8
9
10
...
54
55
56
 
 
 
 
57
58
0
@@ -1,11 +1,10 @@
0
 # Include hook code here
0
 
0
-if defined? ActiveRecord::ConnectionAdapters::MysqlAdapter
0
- ActiveRecord::ConnectionAdapters::MysqlAdapter.class_eval do
0
- protected
0
- def count_result(result)
0
- result.num_rows
0
- end
0
+Dir["#{ File.dirname(__FILE__) }/adapters/*.rb"].each do |path|
0
+ adapter = File.basename(path, '.rb')
0
+ if ActiveRecord::Base.respond_to?("#{adapter}_connection")
0
+ ActiveRecord::Base.logger.debug "RowsLogger plugin enables #{adapter}"
0
+ require path
0
   end
0
 end
0
 
0
@@ -55,7 +54,4 @@ ActiveRecord::ConnectionAdapters::AbstractAdapter.class_eval do
0
           unit = (count == 1) ? 'Row' : 'Rows'
0
           " (%s %s)" % [count, unit]
0
         end
0
-end
0
-
0
-
0
-
0
+end
0
\ No newline at end of file

Comments

    No one has commented yet.