Top Level Namespace
Defined Under Namespace
Modules: RDO
Instance Method Summary collapse
- #config_value(type, flag) ⇒ Object
- #have_build_env ⇒ Object
-
#rdo ⇒ Object
RDO MySQL driver.
Instance Method Details
#config_value(type, flag) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'ext/rdo_mysql/extconf.rb', line 7 def config_value(type, flag) IO.popen("mysql_config --#{type}"). readline.chomp. split(/\s+/).select{|s| s =~ /^#{flag}/}. map{|s| s.sub(/^#{flag}/, "")}.uniq rescue Array[] end |
#have_build_env ⇒ Object
16 17 18 19 20 21 |
# File 'ext/rdo_mysql/extconf.rb', line 16 def have_build_env [ have_header("mysql.h"), config_value("libs", "-l").all?{|lib| have_library(lib)} ].all? end |
#rdo ⇒ Object
RDO MySQL driver. Copyright © 2012 Chris Corbyn.
See LICENSE file for details.
8 |
# File 'lib/rdo/mysql.rb', line 8 require "rdo" |