embulk-output-sftp 0.1.3 → 0.1.4

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: c59819e8adf5918b012907c1649584986ca9f77b
4
- data.tar.gz: b942eb8bcaf5a55f18feae4ae68a6c0d4ef96b92
3
+ metadata.gz: f2b11bf7261d43608476053f62b5425f45643c1a
4
+ data.tar.gz: dc84dd6e807ae8d0b6736eaa485ced869e8c83c2
5
5
  SHA512:
6
- metadata.gz: 0abe7dba22a634303bc872806d348c2f2f380257c4ebf7cdd5de3e10bf56644e37e82e5ce72e49f8ac2c76169a77781c5aefdf96112f8bb28da37db8178cf97e
7
- data.tar.gz: 4e4073715b98d80bf66fd1c24f846079a4faf73993ec7e619355309c2728bac6459183d053c45fcbb80d2cfbccc527ae466324f264d8260b1a52704e227603af
6
+ metadata.gz: 0025aef591b2cdb982df7d09a5b2225f1855b2e7ab97966d34cd61b74eaa1e1dcab848af0881a5f4a2159d5d6d9d39f99fd064a0ed9cf3cc686a4e9359b398e0
7
+ data.tar.gz: 5bb8ab885d48fb2e3a4af7a5db9e850d7c185e0d2d4de8897abaf5c2580fba1ec4e16c3a5c60be91239cb4db280420f1dcdb8f863bc0132e0ac0ba0a8f62ce20
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 0.1.4 (2017-12-21)
2
+ - Fix: Disable remote temporary file rename logic
3
+ - https://github.com/embulk/embulk-output-sftp/pull/41
4
+ - Enhance: Upgrade "commons-vfs2", "com.jcraft:jsch" and "commons-io:commons-io"
5
+ - https://github.com/embulk/embulk-output-sftp/pull/42
6
+
1
7
  0.1.3 (2017-11-07)
2
8
  - Enhance: Create temporary file and rename it after upload completed
3
9
  - https://github.com/embulk/embulk-output-sftp/pull/37
data/build.gradle CHANGED
@@ -17,7 +17,7 @@ configurations {
17
17
  }
18
18
 
19
19
  group = "org.embulk.output.sftp"
20
- version = "0.1.3"
20
+ version = "0.1.4"
21
21
  sourceCompatibility = 1.7
22
22
  targetCompatibility = 1.7
23
23
 
@@ -25,9 +25,9 @@ dependencies {
25
25
  compile "org.embulk:embulk-core:0.8.6"
26
26
  provided "org.embulk:embulk-core:0.8.6"
27
27
  // compile "YOUR_JAR_DEPENDENCY_GROUP:YOUR_JAR_DEPENDENCY_MODULE:YOUR_JAR_DEPENDENCY_VERSION"
28
- compile "org.apache.commons:commons-vfs2:2.1.1660580.2"
29
- compile "commons-io:commons-io:2.5"
30
- compile "com.jcraft:jsch:0.1.53"
28
+ compile "org.apache.commons:commons-vfs2:2.2"
29
+ compile "commons-io:commons-io:2.6"
30
+ compile "com.jcraft:jsch:0.1.54"
31
31
  testCompile "junit:junit:4.+"
32
32
  testCompile "org.embulk:embulk-core:0.8.6:tests"
33
33
  testCompile "org.embulk:embulk-standards:0.8.6"
Binary file
Binary file
@@ -84,7 +84,12 @@ public class SftpFileOutput
84
84
  closeCurrentFile();
85
85
  String fileName = getOutputFilePath();
86
86
  String temporaryFileName = fileName + temporaryFileSuffix;
87
- sftpUtils.uploadFile(tempFile, temporaryFileName);
87
+ /*
88
+ #37 causes permission failure while renaming remote file.
89
+ https://github.com/embulk/embulk-output-sftp/issues/40
90
+ */
91
+ //sftpUtils.uploadFile(tempFile, temporaryFileName);
92
+ sftpUtils.uploadFile(tempFile, fileName);
88
93
 
89
94
  Map<String, String> executedFiles = new HashMap<>();
90
95
  executedFiles.put("temporary_filename", temporaryFileName);
@@ -14,7 +14,6 @@ import org.embulk.spi.TransactionalFileOutput;
14
14
  import org.embulk.spi.unit.LocalFile;
15
15
 
16
16
  import java.util.List;
17
- import java.util.Map;
18
17
 
19
18
  public class SftpFileOutputPlugin
20
19
  implements FileOutputPlugin
@@ -99,17 +98,21 @@ public class SftpFileOutputPlugin
99
98
  int taskCount,
100
99
  List<TaskReport> successTaskReports)
101
100
  {
102
- SftpUtils sftpUtils = new SftpUtils(taskSource.loadTask(PluginTask.class));
103
- for (TaskReport report : successTaskReports) {
104
- List<Map<String, String>> moveFileList = report.get(List.class, "file_list");
105
- for (Map<String, String> pairFiles : moveFileList) {
106
- String temporaryFileName = pairFiles.get("temporary_filename");
107
- String realFileName = pairFiles.get("real_filename");
108
-
109
- sftpUtils.renameFile(temporaryFileName, realFileName);
110
- }
111
- }
112
- sftpUtils.close();
101
+ /*
102
+ #37 causes permission failure while renaming remote file.
103
+ https://github.com/embulk/embulk-output-sftp/issues/40
104
+ */
105
+ // SftpUtils sftpUtils = new SftpUtils(taskSource.loadTask(PluginTask.class));
106
+ // for (TaskReport report : successTaskReports) {
107
+ // List<Map<String, String>> moveFileList = report.get(List.class, "file_list");
108
+ // for (Map<String, String> pairFiles : moveFileList) {
109
+ // String temporaryFileName = pairFiles.get("temporary_filename");
110
+ // String realFileName = pairFiles.get("real_filename");
111
+ //
112
+ // sftpUtils.renameFile(temporaryFileName, realFileName);
113
+ // }
114
+ // }
115
+ // sftpUtils.close();
113
116
  }
114
117
 
115
118
  @Override
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-sftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Civitaspo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-11-07 00:00:00.000000000 Z
12
+ date: 2017-12-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement
@@ -70,11 +70,11 @@ files:
70
70
  - src/test/java/org/embulk/output/sftp/TestSftpFileOutputPlugin.java
71
71
  - src/test/resources/id_rsa
72
72
  - src/test/resources/id_rsa.pub
73
- - classpath/commons-io-2.5.jar
73
+ - classpath/commons-io-2.6.jar
74
74
  - classpath/commons-logging-1.2.jar
75
- - classpath/commons-vfs2-2.1.1660580.2.jar
76
- - classpath/embulk-output-sftp-0.1.3.jar
77
- - classpath/jsch-0.1.53.jar
75
+ - classpath/commons-vfs2-2.2.jar
76
+ - classpath/embulk-output-sftp-0.1.4.jar
77
+ - classpath/jsch-0.1.54.jar
78
78
  homepage: https://github.com/embulk/embulk-output-sftp
79
79
  licenses:
80
80
  - MIT
Binary file