lib/rbhive/connection.rb in rbhive-0.1.14 vs lib/rbhive/connection.rb in rbhive-0.1.15
- old
+ new
@@ -1,5 +1,10 @@
+# suppress warnings
+old_verbose, $VERBOSE = $VERBOSE, nil
+# require thrift autogenerated files
require File.join(File.dirname(__FILE__), *%w[.. thrift thrift_hive])
+# restore warnings
+$VERBOSE = old_verbose
module RBHive
def connect(server, port=10_000)
connection = RBHive::Connection.new(server, port)
ret = nil