embulk-output-td 0.3.11 → 0.3.12

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: 80ebc07da65f75960a956328d90265a2c5414162
4
- data.tar.gz: da6b1c3415ee725a3297381522054e99e531398d
3
+ metadata.gz: 8b8a00ad99b615b2fe506d8a7e39dc95e68d7aa2
4
+ data.tar.gz: 4aafa0cf29d14a0555173c5e20daa6fe072e555a
5
5
  SHA512:
6
- metadata.gz: 5a5580b4e73b52ff38aadc9d72ffac05f2d7477c6c6580a9925f3f688dcd17a73afe1699ad001c4bc091b04edb0899825b93e3069e7bee4ae7af5e81979ffde0
7
- data.tar.gz: 8f4737df24ffb6775e17e6c3b9dcfd330492c988c7bfbd8c71faec993f69923267cd84ddfda0d43aa4946f9bcb5299c320b7e7ea07d0d6a8384a33dd1944a36c
6
+ metadata.gz: b4c4a49e9e4368df40c92afa5026158d08f226b86254d9a8727aa0154e7f22c7ea84f63145249e0e7152afd9967ad8761bca096afdd3fffa1a70310ab2f5ad16
7
+ data.tar.gz: 848eaba5d024f0b70133bbc39c273dfb2d24317377c9ad2fe8801991df76c8858b6b7cf55d7c2448bd31da89f3832a6f26f8958b0cb2573fa0082d2a2df67800
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.12 - 2016-11-30
2
+
3
+ * [maintenance] Change variable type of PluginTask.setTempDir() [#60](https://github.com/treasure-data/embulk-output-td/pull/60)
4
+
1
5
  ## 0.3.11 - 2016-11-18
2
6
 
3
7
  * [maintenance] Refactor TdOutputPlugin, FieldWriterSet and else [#56](https://github.com/treasure-data/embulk-output-td/pull/56)
data/build.gradle CHANGED
@@ -19,7 +19,7 @@ configurations {
19
19
  }
20
20
 
21
21
  group = "org.embulk.output.td"
22
- version = "0.3.11"
22
+ version = "0.3.12"
23
23
 
24
24
  compileJava.options.encoding = 'UTF-8' // source encoding
25
25
  sourceCompatibility = 1.7
@@ -32,7 +32,7 @@ dependencies {
32
32
  provided "org.embulk:embulk-standards:0.8.+"
33
33
  compile "org.msgpack:msgpack-core:0.8.+"
34
34
  provided "org.msgpack:msgpack-core:0.8.+"
35
- compile "com.treasuredata.client:td-client:0.7.24"
35
+ compile "com.treasuredata.client:td-client:0.7.29"
36
36
 
37
37
  testCompile "junit:junit:4.+"
38
38
  testCompile "org.bigtesting:fixd:1.0.0"
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-output-td"
4
- spec.version = "0.3.11"
4
+ spec.version = "0.3.12"
5
5
  spec.authors = ["Muga Nishizawa"]
6
6
  spec.summary = %[TreasureData output plugin for Embulk]
7
7
  spec.description = %[TreasureData output plugin is an Embulk plugin that loads records to TreasureData read by any input plugins. Search the input plugins by 'embulk-output' keyword.]
@@ -124,7 +124,7 @@ public class TdOutputPlugin
124
124
  @Config("tmpdir")
125
125
  @ConfigDefault("null")
126
126
  public Optional<String> getTempDir();
127
- public void setTempDir(String dir);
127
+ public void setTempDir(Optional<String> dir);
128
128
 
129
129
  @Config("upload_concurrency")
130
130
  @ConfigDefault("2")
@@ -350,7 +350,7 @@ public class TdOutputPlugin
350
350
  task.setSessionName(buildBulkImportSessionName(task, Exec.session()));
351
351
 
352
352
  if (!task.getTempDir().isPresent()) {
353
- task.setTempDir(getEnvironmentTempDirectory());
353
+ task.setTempDir(Optional.of(getEnvironmentTempDirectory()));
354
354
  }
355
355
 
356
356
  try (TDClient client = newTDClient(task)) {
@@ -1,5 +1,6 @@
1
1
  package org.embulk.output.td;
2
2
 
3
+ import com.google.common.base.Optional;
3
4
  import com.google.common.collect.ImmutableMap;
4
5
  import com.treasuredata.client.TDClient;
5
6
  import org.embulk.EmbulkTestRuntime;
@@ -57,7 +58,8 @@ public class TestRecordWriter
57
58
  "_c2", Types.BOOLEAN, "_c3", Types.DOUBLE, "_c4", Types.TIMESTAMP);
58
59
 
59
60
  plugin = plugin();
60
- task = pluginTask(config().set("session_name", "my_session").set("tmpdir", plugin.getEnvironmentTempDirectory()));
61
+ task = pluginTask(config().set("session_name", "my_session")
62
+ .set("tmpdir", Optional.of(plugin.getEnvironmentTempDirectory())));
61
63
  }
62
64
 
63
65
  @Test
@@ -195,7 +197,7 @@ public class TestRecordWriter
195
197
  task = pluginTask(config()
196
198
  .set("session_name", "my_session")
197
199
  .set("time_value", ImmutableMap.of("from", 0L, "to", 0L))
198
- .set("tmpdir", plugin.getEnvironmentTempDirectory())
200
+ .set("tmpdir", Optional.of(plugin.getEnvironmentTempDirectory()))
199
201
  );
200
202
  recordWriter = recordWriter(task, tdClient(plugin, task), fieldWriters(log, task, schema));
201
203
 
@@ -545,7 +545,7 @@ public class TestTdOutputPlugin
545
545
  task.setSessionName("session_name");
546
546
  task.setLoadTargetTableName("my_table");
547
547
  task.setDoUpload(true);
548
- task.setTempDir(plugin.getEnvironmentTempDirectory());
548
+ task.setTempDir(Optional.of(plugin.getEnvironmentTempDirectory()));
549
549
  Schema schema = schema("time", Types.LONG, "c0", Types.STRING, "c1", Types.STRING);
550
550
 
551
551
  TransactionalPageOutput output = plugin.open(task.dump(), schema, 0);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-td
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muga Nishizawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-21 00:00:00.000000000 Z
11
+ date: 2016-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +82,7 @@ files:
82
82
  - src/test/java/org/embulk/output/td/TestTdOutputPlugin.java
83
83
  - src/test/java/org/embulk/output/td/TestTimeValueGenerator.java
84
84
  - src/test/java/org/embulk/output/td/writer/TestFieldWriterSet.java
85
- - classpath/embulk-output-td-0.3.11.jar
85
+ - classpath/embulk-output-td-0.3.12.jar
86
86
  - classpath/hamcrest-core-1.1.jar
87
87
  - classpath/jackson-annotations-2.6.7.jar
88
88
  - classpath/jackson-core-2.6.7.jar
@@ -96,7 +96,7 @@ files:
96
96
  - classpath/json-20090211_1.jar
97
97
  - classpath/json-simple-1.1.1.jar
98
98
  - classpath/junit-4.10.jar
99
- - classpath/td-client-0.7.24.jar
99
+ - classpath/td-client-0.7.29.jar
100
100
  homepage: https://github.com/treasure-data/embulk-output-td
101
101
  licenses:
102
102
  - Apache 2.0