embulk-output-mailchimp 0.3.16 → 0.3.17

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: 0f302894ddc97cb2d46fcd4017e1c5bfd49d7a47
4
- data.tar.gz: 4ca3f4eaa7c1ce19a378e855b5604b49fae962d2
3
+ metadata.gz: 97a4628578804d6dc3c6392283d4501c40dc6fe6
4
+ data.tar.gz: 46966dc57e5751cf8481ebcd0aae83a34b56c89d
5
5
  SHA512:
6
- metadata.gz: 3451461a7022d3e747aa58a72c6568d51cd9651cc6d177abbfe87540b50aee8d65b8b9950689c48f9570410265f32a27be057218581d485637db6833af1b6cc4
7
- data.tar.gz: 40bb5c7e83bb6e33d3fe078b8684bf476edb77cc6c1d673754631806a98bc5fac6d5d2da23d27ca69506f61cc3f39df73ee3e46ae7d51d762c6aced8a79ebaf4
6
+ metadata.gz: cad46f57351a35a07cffa71ebef867118f2717ef9df312acbed9def2724bc1109fdcbec859e676f8ad834255136abb135175fd83e52097668264e8f0022cd98c
7
+ data.tar.gz: eb0c3ddbf71bbf680a6b07b20746ac1c03940e00e1b14046252312f28b0bb5c4cd33a0dcfff814278a94986703584f008d813033ec525f7e5bb1423a7925579a
data/.travis.yml CHANGED
@@ -1,5 +1,10 @@
1
+ dist: precise
1
2
  language: java
2
3
  jdk:
3
4
  - openjdk7
4
5
  script:
5
- - ./gradlew clean checkstyle check jacocoTestReport
6
+ - ./gradlew clean checkstyle check jacocoTestReport
7
+ addons:
8
+ hosts:
9
+ - example
10
+ hostname: example
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.17 - 2017-09-14
2
+
3
+ - Support language_column option [#32](https://github.com/treasure-data/embulk-output-mailchimp/pull/32) Thanks @gillax
4
+
1
5
  ## 0.3.16 - 2017-08-28
2
6
  - Fixed user friendly error message when input invalid api key [#31](https://github.com/treasure-data/embulk-output-mailchimp/pull/31)
3
7
 
data/README.md CHANGED
@@ -23,6 +23,7 @@ add e-mail to List in MailChimp.
23
23
  - **update_existing**: control whether to update members that are already subscribed to the list or to return an error (boolean, default: false)
24
24
  - **merge_fields**: Array for additional merge fields/ TAG in MailChimp dashboard (array, optional, default: nil)
25
25
  - **grouping_columns**: Array for group names in MailChimp dashboard(array, default: nil)
26
+ - **language_column**: column name for language (string, optional, default: nil)
26
27
  - **double_optin**: control whether to send an opt-in confirmation email (boolean, default: true)
27
28
 
28
29
  ## Example
data/build.gradle CHANGED
@@ -18,7 +18,7 @@ configurations {
18
18
  provided
19
19
  }
20
20
 
21
- version = "0.3.16"
21
+ version = "0.3.17"
22
22
 
23
23
  sourceCompatibility = 1.7
24
24
  targetCompatibility = 1.7
@@ -99,6 +99,10 @@ public class MailChimpOutputPluginDelegate
99
99
  @Config("replace_interests")
100
100
  @ConfigDefault("true")
101
101
  boolean getReplaceInterests();
102
+
103
+ @Config("language_column")
104
+ @ConfigDefault("null")
105
+ Optional<String> getLanguageColumn();
102
106
  }
103
107
 
104
108
  /**
@@ -236,6 +236,11 @@ public class MailChimpRecordBuffer
236
236
  property.set("interests", buildInterestCategories(task, input));
237
237
  }
238
238
 
239
+ // Update language if exist
240
+ if (task.getLanguageColumn().isPresent() && !task.getLanguageColumn().get().isEmpty()) {
241
+ property.put("language", input.findPath(task.getLanguageColumn().get()).asText());
242
+ }
243
+
239
244
  return property;
240
245
  }
241
246
  };
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-mailchimp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thang Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-27 00:00:00.000000000 Z
11
+ date: 2017-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -89,7 +89,7 @@ files:
89
89
  - test/override_assert_raise.rb
90
90
  - test/run-test.rb
91
91
  - classpath/embulk-base-restclient-0.5.3.jar
92
- - classpath/embulk-output-mailchimp-0.3.16.jar
92
+ - classpath/embulk-output-mailchimp-0.3.17.jar
93
93
  - classpath/embulk-util-retryhelper-jetty92-0.5.3.jar
94
94
  - classpath/jetty-client-9.2.14.v20151106.jar
95
95
  - classpath/jetty-http-9.2.14.v20151106.jar