embulk-encoder-encrypted_zip 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/build.gradle +1 -1
- data/src/main/java/org/embulk/encoder/encrypted_zip/EncryptedZipEncoderPlugin.java +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44b5e212b167a9ebb714d0ba1f2de97705c250a2
|
4
|
+
data.tar.gz: 7744969d612d0e78276f85f67495fc6449ce1db7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88c48ccc1fb0ada2bda8d123fcc93b1724e1d5206abbb9c497532946909759be0aed7d2dd79f517a122ae87accbc1de765d18f20d7309186b0e1622109d7cae0
|
7
|
+
data.tar.gz: 6322daac85ef19822a29783399b6377dc03586345a5badf0a2d61303f5d10c2910bed0d3aef6ea5b2ce3f4179bd62a2bca2832f6aebb1605ba88fcb057a13b65
|
data/README.md
CHANGED
@@ -8,8 +8,8 @@ Encrypted Zip Encoder.
|
|
8
8
|
|
9
9
|
## Configuration
|
10
10
|
|
11
|
-
- prefix:
|
12
|
-
- password:
|
11
|
+
- prefix: filename format in the zip archive file (string, default: `result.%1$03d.%1$03d`)
|
12
|
+
- password: encryption password (string, required)
|
13
13
|
|
14
14
|
## Example
|
15
15
|
|
@@ -18,7 +18,7 @@ out:
|
|
18
18
|
type: file type output plugin
|
19
19
|
encoders:
|
20
20
|
- type: encrypted_zip
|
21
|
-
|
21
|
+
filename: 'result.%03d.%03d.csv'
|
22
22
|
password: 'mypassword'
|
23
23
|
```
|
24
24
|
|
data/build.gradle
CHANGED
@@ -29,9 +29,9 @@ public class EncryptedZipEncoderPlugin
|
|
29
29
|
public interface PluginTask
|
30
30
|
extends Task
|
31
31
|
{
|
32
|
-
@Config("
|
32
|
+
@Config("filename")
|
33
33
|
@ConfigDefault("\"result.%1$03d.%1$03d\"")
|
34
|
-
public String
|
34
|
+
public String getFilename();
|
35
35
|
|
36
36
|
@Config("password")
|
37
37
|
public String getPassword();
|
@@ -72,7 +72,7 @@ class ZipCompressArchiveProvider implements OutputStreamFileOutput.Provider {
|
|
72
72
|
this.output = new FileOutputOutputStream(fileOutput,
|
73
73
|
task.getBufferAllocator(), FileOutputOutputStream.CloseMode.FLUSH);
|
74
74
|
this.baseNum = baseNumSeq.getAndIncrement();
|
75
|
-
this.entryNamePrefix = task.
|
75
|
+
this.entryNamePrefix = task.getFilename();
|
76
76
|
|
77
77
|
this.parameters = new ZipParameters();
|
78
78
|
parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-encoder-encrypted_zip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Morishita
|
@@ -56,7 +56,7 @@ files:
|
|
56
56
|
- lib/embulk/encoder/encrypted_zip.rb
|
57
57
|
- src/main/java/org/embulk/encoder/encrypted_zip/EncryptedZipEncoderPlugin.java
|
58
58
|
- src/test/java/org/embulk/encoder/encrypted_zip/TestEncryptedZipEncoderPlugin.java
|
59
|
-
- classpath/embulk-encoder-encrypted_zip-0.1.
|
59
|
+
- classpath/embulk-encoder-encrypted_zip-0.1.1.jar
|
60
60
|
- classpath/zip4j-1.3.2.jar
|
61
61
|
homepage: https://github.com/mokemokechicken/embulk-encoder-encrypted_zip
|
62
62
|
licenses:
|