embulk-output-td 0.3.4 → 0.3.5

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: fd15ee132455feea6bd51dd661cb004aad68faff
4
- data.tar.gz: 3e88ad015e3bd0554d657b7b8a8fc6d85484cf67
3
+ metadata.gz: 063c7abaa3b8821de5ab2e8ccdabaa7b9bcfa301
4
+ data.tar.gz: 60d13492de0d417e94fc80bb5ac1cd65e0b7810f
5
5
  SHA512:
6
- metadata.gz: 013dd36188790de3b47ecba7d575f153e17e04205818d5804b1c994f31ed2d20474e1f4c1d733b08a6925d86daadfcf81e6f1e193cd4f281330e081c2b984087
7
- data.tar.gz: 78c24b21246411edda056ef6dda494eecfca7043b8f835982d216cde735d12eac8c6092709c11dcaefc9321c4e6ff1ad039b2d6c2bb1be2948784c6f279ba620
6
+ metadata.gz: 5e3d7967b0d474e0077c153fc13ccd451b6672aebfa3258398911c897b8bb5d86c034525bca0e015c53c45e8b7df350d0976f92a96d51dcb4e0a66db5548d07a
7
+ data.tar.gz: 7c03578dd33048e89376f185bbf161bc1773b7f660e0c68a6cc0e95ad71d7f68465c979d001eb57168af48c67536f96020aef5db2c128be3870a6e940f52791e
@@ -1,3 +1,7 @@
1
+ ## 0.3.5 - 2016-06-29
2
+
3
+ * [new feature] Enable user/password for `http_proxy` option [#46](https://github.com/treasure-data/embulk-output-td/pull/46)
4
+
1
5
  ## 0.3.4 - 2016-06-23
2
6
 
3
7
  * [maintenance] Upgrade td-client v0.7.22 [#45](https://github.com/treasure-data/embulk-output-td/pull/45)
data/README.md CHANGED
@@ -12,7 +12,7 @@ TODO: Write short description here
12
12
 
13
13
  - **apikey**: apikey (string, required)
14
14
  - **endpoint**: hostname (string, default='api.treasuredata.com')
15
- - **http_proxy**: http proxy configuration (tuple of host, port and useSsl, default is null)
15
+ - **http_proxy**: http proxy configuration (tuple of host, port, useSsl, user, and password. default is null)
16
16
  - **use_ssl**: the flag (boolean, default=true)
17
17
  - **auto_create_table**: the flag for creating the database and/or the table if they don't exist (boolean, default=true)
18
18
  - **mode**: 'append', 'replace' and 'truncate' (string, default='append')
@@ -70,7 +70,7 @@ out:
70
70
  type: td
71
71
  apikey: <your apikey>
72
72
  endpoint: api.treasuredata.com
73
- http_proxy: {host: localhost, port: 8080, use_ssl: false}
73
+ http_proxy: {host: localhost, port: 8080, use_ssl: false, user: "proxyuser", password: "PASSWORD"}
74
74
  database: my_db
75
75
  table: my_table
76
76
  time_column: created_at
@@ -16,7 +16,7 @@ configurations {
16
16
  provided
17
17
  }
18
18
 
19
- version = "0.3.4"
19
+ version = "0.3.5"
20
20
 
21
21
  compileJava.options.encoding = 'UTF-8' // source encoding
22
22
  sourceCompatibility = 1.7
@@ -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.4"
4
+ spec.version = "0.3.5"
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.]
@@ -220,6 +220,14 @@ public class TdOutputPlugin
220
220
  @Config("use_ssl")
221
221
  @ConfigDefault("false")
222
222
  public boolean getUseSsl();
223
+
224
+ @Config("user")
225
+ @ConfigDefault("null")
226
+ public Optional<String> getUser();
227
+
228
+ @Config("password")
229
+ @ConfigDefault("null")
230
+ public Optional<String> getPassword();
223
231
  }
224
232
 
225
233
  public static enum ConvertTimestampType
@@ -431,7 +439,7 @@ public class TdOutputPlugin
431
439
  if (task.getHttpProxy().isPresent()) {
432
440
  HttpProxyTask proxyTask = task.getHttpProxy().get();
433
441
  builder.setProxy(new ProxyConfig(proxyTask.getHost(), proxyTask.getPort(), proxyTask.getUseSsl(),
434
- Optional.<String>absent(), Optional.<String>absent()));
442
+ proxyTask.getUser(), proxyTask.getPassword()));
435
443
  }
436
444
  return builder.build();
437
445
  }
@@ -220,6 +220,15 @@ public class TestTdOutputPlugin
220
220
  }
221
221
 
222
222
  { // proxy setting
223
+ PluginTask task = pluginTask(config.deepCopy()
224
+ .set("http_proxy", ImmutableMap.of("host", "xxx", "port", "8080", "user", "foo", "password", "PASSWORD")));
225
+ try (TDClient client = plugin.newTDClient(task)) {
226
+ }
227
+ // no error happens
228
+ }
229
+
230
+
231
+ { // proxy setting without user/password
223
232
  PluginTask task = pluginTask(config.deepCopy()
224
233
  .set("http_proxy", ImmutableMap.of("host", "xxx", "port", "8080")));
225
234
  try (TDClient client = plugin.newTDClient(task)) {
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.4
4
+ version: 0.3.5
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-06-23 00:00:00.000000000 Z
11
+ date: 2016-06-29 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.4.jar
85
+ - classpath/embulk-output-td-0.3.5.jar
86
86
  - classpath/hamcrest-core-1.1.jar
87
87
  - classpath/jackson-annotations-2.6.2.jar
88
88
  - classpath/jackson-core-2.6.2.jar