rbhive 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rbhive/connection.rb +3 -1
  2. metadata +2 -2
@@ -3,11 +3,13 @@ require File.join(File.dirname(__FILE__), *%w[.. thrift thrift_hive])
3
3
  module RBHive
4
4
  def connect(server, port=10_000)
5
5
  connection = RBHive::Connection.new(server, port)
6
+ ret = nil
6
7
  begin
7
8
  connection.open
8
- yield(connection)
9
+ ret = yield(connection)
9
10
  ensure
10
11
  connection.close
12
+ ret
11
13
  end
12
14
  end
13
15
  module_function :connect
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andy Kent