jvertica 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10dc006486e89d3544c6ed3b31aeb271c6f9e44b
4
- data.tar.gz: e7f83407f68dcd5fc5d867c43268c4c512e69127
3
+ metadata.gz: ac3b3b8321e6e237fb2c6c525b06f692b59d81c3
4
+ data.tar.gz: 568a9136bc7301e3b92b575e0aa30ef65671a6f8
5
5
  SHA512:
6
- metadata.gz: 39adcecc9d27624342645afb024870c379ff56ded73bc924e1614db56d6ad945efad431f76ecde093e44c919c5dd977a7f73e8d1ceaae99eb7c064701695bea0
7
- data.tar.gz: cd231a0e71383ae752d422b909f3805145a90c31dcf2c1980c7e0efaa68c92cba449d66121293a68f8e4ea16b585ae4096de9520f226b60f6983288701882250
6
+ metadata.gz: 6efa40f725aa641d6cd2695e85d78d9c53a63e7eb8d423ab3dcb19d24582723bcbba0e7ff0d2ff2d8b93af72098fc44792dab89d8068b1599c91cf67b0fed6ce
7
+ data.tar.gz: c152c571ca00a4d241351a7be2089231a5e1de04381fdb0428298f28b791f811691ebce9a41ceca82d077bed0e62c41cdc1960d7c86de91067d28a93ad037f14
data/Gemfile CHANGED
@@ -2,5 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in jdbc-vertica-more.gemspec
4
4
  gemspec
5
-
6
- gem 'sequel'
@@ -1,3 +1,3 @@
1
1
  class Jvertica
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/jvertica.rb CHANGED
@@ -110,15 +110,14 @@ class Jvertica
110
110
  end
111
111
 
112
112
  elsif block_given?
113
- rio, wio = IO.pipe
113
+ i, o = IO.pipe
114
114
  begin
115
- yield(wio)
116
- stream.addStream org.jruby.util.IOInputStream.new(rio)
115
+ yield(o)
116
+ o.close
117
+ stream.addStream org.jruby.util.IOInputStream.new(i)
117
118
  rescue => e
118
119
  raise e
119
120
  ensure
120
- wio.close
121
- rio.close
122
121
  end
123
122
 
124
123
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jvertica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - takahiro.nakayama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2014-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement