embulk-encoder-zip 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee816081ab07e410d5c0d616a415798d9057e640
4
- data.tar.gz: c00a18a6735627a7ade3ace4422c0b69d73ad98a
3
+ metadata.gz: 44a0404b7eee91a5e9153a9965b764f44c4a8c08
4
+ data.tar.gz: 2a106340880e9f4c7dace00d5b8c66a749da4c1b
5
5
  SHA512:
6
- metadata.gz: c71ccedbbd4ac583c4669d75eeec2bacf203e77d10cf1332732c100a78d1e4e5bd28a252148b14f291f020c50e0950b0dcecc700aaa5b46e79a0390f403140fb
7
- data.tar.gz: c8d548e87fd65b71c9172a850878d51ba1943aa7cb31157542906b9acdcd0438942ae92a365b360ca2d54348492c9381c106b6550d446e702b538d933945cff0
6
+ metadata.gz: 28ce0c16dd5cda25f0eebb64e972cb4827cdd4b045a4cadc38994a31b42f484fec0c50f25b2e1a54fceb07b81f8bb70ec14e105a1d6b5bd3fd36e20919052a02
7
+ data.tar.gz: 4794dc06f08d65976b46a2a457ee21d03d25235c52d709e91ac49b8d70f2b66ba051b25cc4cb856a22c9010496978476cbf38b8c9b94f86fb1fef129cdd4618c
@@ -12,7 +12,7 @@ configurations {
12
12
  provided
13
13
  }
14
14
 
15
- version = "0.0.1"
15
+ version = "0.0.2"
16
16
  sourceCompatibility = 1.8
17
17
  targetCompatibility = 1.8
18
18
 
@@ -91,6 +91,7 @@ class ZipCompressArchiveProvider implements OutputStreamFileOutput.Provider {
91
91
  zipOutputStream.write(tmpOut.toByteArray());
92
92
  zipOutputStream.closeEntry();
93
93
  zipOutputStream.finish();
94
+ output.finish();
94
95
  } catch (ZipException e) {
95
96
  throw new IOException(e);
96
97
  }
@@ -99,12 +100,15 @@ class ZipCompressArchiveProvider implements OutputStreamFileOutput.Provider {
99
100
 
100
101
  @Override
101
102
  public void close() throws IOException {
102
- finish();
103
103
  if (zipOutputStream != null) {
104
104
  zipOutputStream.close();
105
105
  zipOutputStream = null;
106
106
  }
107
107
 
108
+ if (output != null) {
109
+ output.close();
110
+ }
111
+
108
112
  if (originalOutput != null) {
109
113
  originalOutput.close();
110
114
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-encoder-zip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Floyd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-19 00:00:00.000000000 Z
11
+ date: 2019-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -48,7 +48,7 @@ files:
48
48
  - ".gitignore"
49
49
  - README.md
50
50
  - build.gradle
51
- - classpath/embulk-encoder-zip-0.0.1.jar
51
+ - classpath/embulk-encoder-zip-0.0.2.jar
52
52
  - classpath/zip4j-1.3.2.jar
53
53
  - gradle/wrapper/gradle-wrapper.jar
54
54
  - gradle/wrapper/gradle-wrapper.properties