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 +4 -4
- data/.travis.yml +6 -1
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/build.gradle +1 -1
- data/classpath/{embulk-output-mailchimp-0.3.16.jar → embulk-output-mailchimp-0.3.17.jar} +0 -0
- data/src/main/java/org/embulk/output/mailchimp/MailChimpOutputPluginDelegate.java +4 -0
- data/src/main/java/org/embulk/output/mailchimp/MailChimpRecordBuffer.java +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97a4628578804d6dc3c6392283d4501c40dc6fe6
|
4
|
+
data.tar.gz: 46966dc57e5751cf8481ebcd0aae83a34b56c89d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cad46f57351a35a07cffa71ebef867118f2717ef9df312acbed9def2724bc1109fdcbec859e676f8ad834255136abb135175fd83e52097668264e8f0022cd98c
|
7
|
+
data.tar.gz: eb0c3ddbf71bbf680a6b07b20746ac1c03940e00e1b14046252312f28b0bb5c4cd33a0dcfff814278a94986703584f008d813033ec525f7e5bb1423a7925579a
|
data/.travis.yml
CHANGED
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
Binary file
|
@@ -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.
|
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-
|
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.
|
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
|