Skip to content

Instantly share code, notes, and snippets.

@s2k
Created March 5, 2012 15:47
Show Gist options
  • Save s2k/1978920 to your computer and use it in GitHub Desktop.
Save s2k/1978920 to your computer and use it in GitHub Desktop.
Watir (2.0.4) creates a constant CONFIG upon calling Browser.new
C:\>irb -r watir
irb(main):001:0> CONFIG
NameError: uninitialized constant Object::CONFIG
from (irb):1
from C:/Ruby192/bin/irb:12:in `<main>'
irb(main):002:0> Watir::Browser.new.close
=> nil
irb(main):003:0> CONFIG.keys
=> ["DESTDIR", "MAJOR", "MINOR", "TEENY", "PATCHLEVEL", "INSTALL", "EXEEXT", "prefix", "ruby_install_name", "RUBY_INSTALL_NAME", "RUBY_SO_NAME", "PACKAGE", "BUI
LTIN_TRANSSRCS", "MANTYPE", "NROFF", "vendorhdrdir", "sitehdrdir", "rubyhdrdir", "UNIVERSAL_INTS", "UNIVERSAL_ARCHNAMES", "configure_args", "vendordir", "sitedi
r", "ruby_version", "sitearch", "arch", "RI_BASE_NAME", "ridir", "rubylibprefix", "MAKEFILES", "THREAD_MODEL", "EXPORT_PREFIX", "COMMON_HEADERS", "COMMON_MACROS
", "COMMON_LIBS", "MAINLIBS", "ENABLE_SHARED", "DLDLIBS", "SOLIBS", "LIBRUBYARG_SHARED", "LIBRUBYARG_STATIC", "LIBRUBYARG", "LIBRUBY", "LIBRUBY_ALIASES", "LIBRU
BY_SO", "LIBRUBY_A", "RUBYW_INSTALL_NAME", "rubyw_install_name", "LIBRUBY_DLDFLAGS", "LIBRUBY_LDSHARED", "warnflags", "debugflags", "optflags", "cxxflags", "cfl
ags", "cppflags", "INSTALLDOC", "RDOCTARGET", "EXECUTABLE_EXTS", "ARCHFILE", "EXTOUT", "PREP", "TEST_RUNNABLE", "setup", "EXTSTATIC", "STRIP", "TRY_LINK", "LIBP
ATHENV", "RPATHFLAG", "LIBPATHFLAG", "LINK_SO", "LIBEXT", "DLEXT2", "DLEXT", "LDSHAREDXX", "LDSHARED", "CCDLFLAGS", "STATIC", "ARCH_FLAG", "DLDFLAGS", "ALLOCA",
"CHDIR", "RMALL", "RMDIRS", "CP", "RM", "CAPITARGET", "DOXYGEN", "DOT", "MAKEDIRS", "MKDIR_P", "INSTALL_DATA", "INSTALL_SCRIPT", "INSTALL_PROGRAM", "SET_MAKE",
"LN_S", "DLLWRAP", "WINDRES", "NM", "OBJCOPY", "OBJDUMP", "ASFLAGS", "AS", "AR", "RANLIB", "try_header", "COUTFLAG", "OUTFLAG", "CPPOUTFILE", "GNU_LD", "GCC",
"EGREP", "GREP", "CPP", "CXXFLAGS", "CXX", "OBJEXT", "CPPFLAGS", "LDFLAGS", "CFLAGS", "CC", "target_os", "target_vendor", "target_cpu", "target", "host_os", "ho
st_vendor", "host_cpu", "host", "build_os", "build_vendor", "build_cpu", "build", "RUBYW_BASE_NAME", "RUBY_BASE_NAME", "RUBY_RELEASE_DATE", "RUBY_PROGRAM_VERSIO
N", "BASERUBY", "target_alias", "host_alias", "build_alias", "LIBS", "ECHO_T", "ECHO_N", "ECHO_C", "DEFS", "mandir", "localedir", "libdir", "psdir", "pdfdir", "
dvidir", "htmldir", "infodir", "docdir", "oldincludedir", "includedir", "localstatedir", "sharedstatedir", "sysconfdir", "datadir", "datarootdir", "libexecdir",
"sbindir", "bindir", "exec_prefix", "PACKAGE_URL", "PACKAGE_BUGREPORT", "PACKAGE_STRING", "PACKAGE_VERSION", "PACKAGE_TARNAME", "PACKAGE_NAME", "PATH_SEPARATOR
", "SHELL", "rubylibdir", "archdir", "sitelibdir", "sitearchdir", "vendorlibdir", "vendorarchdir", "topdir"]
irb(main):004:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment