embulk-output-mailchimp 0.3.6 → 0.3.7

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: a306f852f0eea3bd2d95ef46dcff661f63c5f3bf
4
- data.tar.gz: e6be5cde31d3ade89061b961cbc7bc0fd80ac257
3
+ metadata.gz: 759406b999c3568dc98133129ecc535decaf2c47
4
+ data.tar.gz: 0a7cdd2189f9d8ec41b145735b1e210d1b43bcb3
5
5
  SHA512:
6
- metadata.gz: d0daa9b8299e3858e6c5347f1ec72fafb580eb88b61ffd905dc8180e5179b5aec27925804f7f3ade25a02b5fc23ffdf5900d4b771f55a393254be5e13e2d73de
7
- data.tar.gz: d3b0c68f30be686c2fbd092d6e14ec455562ee9d7da198e319c7bfcb68a9c8457a0a672533ba7d0195ed90951ef0f4f6df0721074d073e5b206a068f72214806
6
+ metadata.gz: ebb5138893246ee2045ab75fde892196896c82f0fad7e3c4bcb8cf393144d48c9d455647b8239a45d23ce66037b3b698070386da10787279e31974f03d55a13f
7
+ data.tar.gz: 8b6ea7dd8a191f2d6f5dbf5eb27b287d6b90d25fa68fec09f6138050c48bd9652092303316fdb3fbd19091b7f2a8d7f062c6a053f6f247c0ba6112c5dccbba36
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
- ## 0.3.6
1
+ ## 0.3.7 - 2017-06-07
2
+ - Added `ConfigException` while using not exists `list_id` [#23](https://github.com/treasure-data/embulk-output-mailchimp/pull/23)
3
+
4
+ ## 0.3.6 -2017-06-07
2
5
  - Removed log query and add API to check address type [#22](https://github.com/treasure-data/embulk-output-mailchimp/pull/22)
3
6
  - Enabled log query for logging on console temporary [#21](https://github.com/treasure-data/embulk-output-mailchimp/pull/21)
4
7
 
data/build.gradle CHANGED
@@ -18,7 +18,7 @@ configurations {
18
18
  provided
19
19
  }
20
20
 
21
- version = "0.3.6"
21
+ version = "0.3.7"
22
22
 
23
23
  sourceCompatibility = 1.7
24
24
  targetCompatibility = 1.7
@@ -89,6 +89,12 @@ public class MailChimpHttpClient
89
89
  public boolean isResponseStatusToRetry(Response response)
90
90
  {
91
91
  int status = response.getStatus();
92
+
93
+ if (status == 404) {
94
+ LOG.error("Exception occurred while sending request: {}", response.getReason());
95
+ throw new ConfigException("The `list id` could not be found.");
96
+ }
97
+
92
98
  return status == 429 || status / 100 != 4;
93
99
  }
94
100
  });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-mailchimp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thang Nguyen
@@ -88,7 +88,7 @@ files:
88
88
  - test/override_assert_raise.rb
89
89
  - test/run-test.rb
90
90
  - classpath/embulk-base-restclient-0.5.0.jar
91
- - classpath/embulk-output-mailchimp-0.3.6.jar
91
+ - classpath/embulk-output-mailchimp-0.3.7.jar
92
92
  - classpath/embulk-util-retryhelper-jetty92-0.5.0.jar
93
93
  - classpath/jetty-client-9.2.14.v20151106.jar
94
94
  - classpath/jetty-http-9.2.14.v20151106.jar