Top Level Namespace
Defined Under Namespace
Modules: JIO
Constant Summary collapse
- LIBEXT =
XXX fallbacks specific to Darwin for JRuby (does not set these values in RbConfig::CONFIG)
RbConfig::CONFIG['LIBEXT'] || 'a'
- DLEXT =
RbConfig::CONFIG['DLEXT'] || 'bundle'
Instance Method Summary collapse
- #check_heads(heads = [], fatal = false) ⇒ Object
-
#check_libs(libs = [], fatal = false) ⇒ Object
Courtesy of EventMachine and @tmm1.
- #fail(msg) ⇒ Object
- #sys(cmd, err_msg) ⇒ Object
Instance Method Details
#check_heads(heads = [], fatal = false) ⇒ Object
34 35 36 |
# File 'ext/jio/extconf.rb', line 34 def check_heads heads = [], fatal = false heads.all? { |head| have_header(head) || (abort("could not find header: #{head}") if fatal)} end |
#check_libs(libs = [], fatal = false) ⇒ Object
Courtesy of EventMachine and @tmm1
30 31 32 |
# File 'ext/jio/extconf.rb', line 30 def check_libs libs = [], fatal = false libs.all? { |lib| have_library(lib) || (abort("could not find library: #{lib}") if fatal) } end |
#fail(msg) ⇒ Object
11 12 13 14 |
# File 'ext/jio/extconf.rb', line 11 def fail(msg) STDERR.puts msg exit(1) end |
#sys(cmd, err_msg) ⇒ Object
6 7 8 9 |
# File 'ext/jio/extconf.rb', line 6 def sys(cmd, err_msg) p cmd system(cmd) || fail(err_msg) end |