rbhive 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rbhive/connection.rb +5 -0
- metadata +2 -2
data/lib/rbhive/connection.rb
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
+
# suppress warnings
|
2
|
+
old_verbose, $VERBOSE = $VERBOSE, nil
|
3
|
+
# require thrift autogenerated files
|
1
4
|
require File.join(File.dirname(__FILE__), *%w[.. thrift thrift_hive])
|
5
|
+
# restore warnings
|
6
|
+
$VERBOSE = old_verbose
|
2
7
|
|
3
8
|
module RBHive
|
4
9
|
def connect(server, port=10_000)
|