From ab757bdf9da70faf54883e4d7bb4a3209445cf5b Mon Sep 17 00:00:00 2001 From: Roger Pack Date: Wed, 24 Sep 2008 11:01:57 -0600 Subject: [PATCH 1/2] rename RB_UBF_DFL to RUBY_UBF_IO --- ext/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/extconf.rb b/ext/extconf.rb index e8df320..0a8ef53 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -32,7 +32,7 @@ else exit 1 end -if have_func('rb_thread_blocking_region') and have_macro('RB_UBF_DFL', 'ruby.h') +if have_func('rb_thread_blocking_region') and have_macro('RUBY_UBF_IO', 'ruby.h') $CPPFLAGS << " -DHAVE_TBR" end From cf86732d4adf1c2031a250ccdd8b71a2912bb0e4 Mon Sep 17 00:00:00 2001 From: Roger Pack Date: Tue, 30 Sep 2008 16:59:51 -0600 Subject: [PATCH 2/2] switch to c based all_hashes --- lib/mysqlplus.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/mysqlplus.rb b/lib/mysqlplus.rb index 95fa6c4..aa2490a 100644 --- a/lib/mysqlplus.rb +++ b/lib/mysqlplus.rb @@ -10,10 +10,3 @@ class Mysql end -class Mysql::Result - def all_hashes - rows = [] - each_hash { |row| rows << row } - rows - end -end