embulk-output-ftp 0.2.1 → 0.2.2

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: 1832391d6c6f0f5d74151a1ff9efb2eacb00f1cd
4
- data.tar.gz: 57a38106df95458da2618516ad3a55cb4105ad4b
3
+ metadata.gz: d539811ab9fb0834335441acb19059c44b6f9798
4
+ data.tar.gz: 0e1d1bc346502a870a1798d68614db96befefafc
5
5
  SHA512:
6
- metadata.gz: 2a01f2622c0f7a27b16d7e95cab138c9cbe6dfc5b1c9289151ef2b3cb3f0e64f1c70209ff29e5a629a7e9af5cb0eb14089be2f892ca5dd86c387e6bc98e8389e
7
- data.tar.gz: 47944e72c5e2a3a63df8ea3b9b5b1041cd19a189d37012d2a467e681d29d2feb7859195fed0855d0be04e0eb1c4d02b474ccbe5d38d247c87779a523dd4863ca
6
+ metadata.gz: ff7b39c69d18446c7265fbc14946191271aa940e84ec45386281c6f78ee3bc7673bb9f4859538f88971539516eff122c367d97ee00415cbffcf5093cffce4af2
7
+ data.tar.gz: 1bb5d128d5b92a9fd3149ffa5c5a4b70eb2836e1162a63f5deebc8e9384601460cbfc2c3034ce0945cb76eb40a635fa1e6c57e04ef48ac6c78f7681fd53ebd2b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.2.2 - 2019-07-16
2
+ * [maintenance] Fix unclosed resource to prevent temp file deletion failure on Windows [#24](https://github.com/embulk/embulk-output-ftp/pull/24)
3
+
1
4
  ## 0.2.1 - 2018-12-14
2
5
  * [maintenance] Update Embulk version v0.8.9 to v0.9.11 and refactor code for Java8 support [#21](https://github.com/embulk/embulk-output-ftp/pull/21)
3
6
  ## 0.2.0 - 2018-07-04
data/build.gradle CHANGED
@@ -17,7 +17,7 @@ configurations {
17
17
  provided
18
18
  }
19
19
 
20
- version = "0.2.1"
20
+ version = "0.2.2"
21
21
 
22
22
  sourceCompatibility = 1.8
23
23
  targetCompatibility = 1.8
@@ -261,10 +261,11 @@ public class FtpFileOutputPlugin implements FileOutputPlugin
261
261
  }
262
262
  }
263
263
  }
264
- client.upload(filePath,
265
- new BufferedInputStream(new FileInputStream(file)), 0L, 0L,
266
- new LoggingTransferListener(file.getAbsolutePath(), filePath, log, TRANSFER_NOTICE_BYTES)
267
- );
264
+ try (BufferedInputStream in = new BufferedInputStream(new FileInputStream(file))) {
265
+ client.upload(filePath, in, 0L, 0L,
266
+ new LoggingTransferListener(file.getAbsolutePath(), filePath, log, TRANSFER_NOTICE_BYTES)
267
+ );
268
+ }
268
269
  if (!file.delete()) {
269
270
  throw new ConfigException("Couldn't delete local file " + file.getAbsolutePath());
270
271
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-ftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi Akama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-14 00:00:00.000000000 Z
11
+ date: 2019-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -72,7 +72,7 @@ files:
72
72
  - classpath/bcprov-jdk15on-1.52.jar
73
73
  - classpath/ftp4j-1.7.2.jar
74
74
  - classpath/embulk-util-ftp-0.1.6.jar
75
- - classpath/embulk-output-ftp-0.2.1.jar
75
+ - classpath/embulk-output-ftp-0.2.2.jar
76
76
  homepage: https://github.com/embulk/embulk-output-ftp
77
77
  licenses:
78
78
  - Apache 2.0