jvertica 0.2.2 → 0.2.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: dabdf2912c5479bf6b4dc145f1b11f306d10d9b1
4
- data.tar.gz: 858602c4f713adbea28c8e18bd2d2cdfa959b097
3
+ metadata.gz: b03d55c413e588d0432a19989f119d568e44f76d
4
+ data.tar.gz: 09e223a1d6d381e4a50868be1f35917b27385f05
5
5
  SHA512:
6
- metadata.gz: 13a29ef4912c0ed61f355a0e0aab3ddc0facc8832a3544d5bd1d12a6ee9b5f77a24b6652aa9d26a7e6b462febf65c14a951f0a67f859510a11a82825fcaa687b
7
- data.tar.gz: 1ac777a444aa1d0f4c80f024b875afd09b3a50f4f14c8ee20dd5fe9a7fec9246a18eb7b0ce3a0b87dc7f94d90eb2f5525adaaa0a176308be2f4606d4cc71f834
6
+ metadata.gz: 9d55ad4da617ed7e30c2218583e4aa004d2afbbb526135c2b7f95cbd3df1482d48d47cccc008d5a6cbcc55b79f288149d9001a555c60ba21be55527b1c23a60e
7
+ data.tar.gz: b92a51fa4bb59ed95356f51b2a2d0b7e0cf200bec1964f712341d9e21ccc7208c68a07eb66542d8c4910436d1e5f8b1fb9a98000a1e955704a0cbd2e53262d77
@@ -0,0 +1,5 @@
1
+ # 0.2.3 (2016-02-09)
2
+
3
+ Fixes:
4
+
5
+ * ensure to close io objects
@@ -176,7 +176,7 @@ class Jvertica
176
176
 
177
177
  stream = com.vertica.jdbc.VerticaCopyStream.new(@connection, query)
178
178
  stream.start
179
- thread = nil
179
+ thread = i = nil
180
180
 
181
181
  begin
182
182
 
@@ -188,8 +188,9 @@ class Jvertica
188
188
  yield(o)
189
189
  rescue => e
190
190
  copy_stream_thread.raise e
191
+ ensure
192
+ o.close
191
193
  end
192
- o.close
193
194
  end
194
195
  stream.addStream(org.jruby.util.IOInputStream.new(i))
195
196
  else
@@ -207,6 +208,7 @@ class Jvertica
207
208
  results = stream.finish
208
209
  ensure
209
210
  thread.join unless thread.nil?
211
+ i.close rescue nil
210
212
  end
211
213
 
212
214
  [results, rejects.to_ary]
@@ -1,3 +1,3 @@
1
1
  class Jvertica
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jvertica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - takahiro.nakayama
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-29 00:00:00.000000000 Z
12
+ date: 2016-02-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -92,6 +92,7 @@ files:
92
92
  - .gitignore
93
93
  - .rspec
94
94
  - .travis.yml
95
+ - CHANGELOG.md
95
96
  - Gemfile
96
97
  - LICENSE.txt
97
98
  - README.md