embulk-input-zendesk 0.3.3 → 0.3.4

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: ad84ae4662ea53d03acc90bfa8bb64fa4cbc7d1c
4
- data.tar.gz: 64c1ca4a49feb32bc0ee301516462380a4b07e62
3
+ metadata.gz: 87550faf658f946b3304fc3e19db5903dea08cc0
4
+ data.tar.gz: be6b8435c7650e8113ed7a36757e61ba0b4ff986
5
5
  SHA512:
6
- metadata.gz: 746eb9f61b8ec5bd2e9fd4708524cfb0736a3fa37f1869a2fdcfe69a766f7b022a302ca519514ff8bbb84074d84927042910bf58e298ce4c176fb69f02093fb9
7
- data.tar.gz: f83290a54accc3a198507d3db5d111cb2f852d72d5000745846a4131d20a99ea94dd6f2a5aa5c2d87174a04131a2ee814c2b079e7092e2b6510e81e2de0fe952
6
+ metadata.gz: cc547390d1c61746c3bca7c6e6483da976f0aadb9fb0fdd389a94fea0f79f237192edb39e55a523d3d5fb685355210f225b6b65014c37b83bf421c101575a3a3
7
+ data.tar.gz: 2b029eb64f6c10bb082aa00c132a2e1dfe2df86c30151b6a133c9460df7f84c94a06bfa48d1e134f43e16c0052effbc64358a4b881d62b17367d39da7f3b5101
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.3.4 - 2019-04-11
2
+ * [enhancement] Add new time format #56 [#56](https://github.com/treasure-data/embulk-input-zendesk/pull/56)
3
+
1
4
  ## 0.3.3 - 2019-04-11
2
5
  * [fixed] Fix trailing slash #55 [#55](https://github.com/treasure-data/embulk-input-zendesk/pull/55)
3
6
 
data/build.gradle CHANGED
@@ -15,7 +15,7 @@ configurations {
15
15
  provided
16
16
  }
17
17
 
18
- version = "0.3.3"
18
+ version = "0.3.4"
19
19
 
20
20
  sourceCompatibility = 1.8
21
21
  targetCompatibility = 1.8
@@ -38,6 +38,7 @@ public class ZendeskConstants
38
38
  public static final String JAVA_TIMESTAMP_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
39
39
  public static final String ISO_TIMESTAMP_FORMAT = "yyyy-MM-dd'T'HH:mm:ssXXX";
40
40
  public static final String ISO_INSTANT = "yyyy-MM-dd'T'HH:mm:ss'Z'";
41
+ public static final String RUBY_TIMESTAMP_FORMAT_INPUT_NO_SPACE = "yyyy-MM-dd HH:mm:ssZ";
41
42
  public static final String TOO_RECENT_START_TIME = "Too recent start_time.";
42
43
  public static final int RECORDS_SIZE_PER_PAGE = 100;
43
44
  public static final int MAXIMUM_RECORDS_INCREMENTAL = 1000;
@@ -20,7 +20,8 @@ public class ZendeskDateUtils
20
20
  }
21
21
 
22
22
  private static final List<String> supportedFormats = Arrays.asList(ZendeskConstants.Misc.ISO_INSTANT, ZendeskConstants.Misc.RUBY_TIMESTAMP_FORMAT_INPUT,
23
- ZendeskConstants.Misc.JAVA_TIMESTAMP_FORMAT, ZendeskConstants.Misc.ISO_TIMESTAMP_FORMAT);
23
+ ZendeskConstants.Misc.JAVA_TIMESTAMP_FORMAT, ZendeskConstants.Misc.ISO_TIMESTAMP_FORMAT,
24
+ ZendeskConstants.Misc.RUBY_TIMESTAMP_FORMAT_INPUT_NO_SPACE);
24
25
 
25
26
  public static long isoToEpochSecond(final String time)
26
27
  {
@@ -23,6 +23,9 @@ public class TestZendeskDateUtils
23
23
 
24
24
  value = ZendeskDateUtils.isoToEpochSecond("2019-02-20T06:50:45+00:00");
25
25
  Assert.assertEquals(expectedValue, value);
26
+
27
+ value = ZendeskDateUtils.isoToEpochSecond("2019-02-20 06:50:45+0000");
28
+ Assert.assertEquals(expectedValue, value);
26
29
  }
27
30
 
28
31
  @Test
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-zendesk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - hieu.duong
@@ -96,7 +96,7 @@ files:
96
96
  - src/test/resources/data/util.json
97
97
  - src/test/resources/data/util_page.json
98
98
  - classpath/commons-logging-1.2.jar
99
- - classpath/embulk-input-zendesk-0.3.3.jar
99
+ - classpath/embulk-input-zendesk-0.3.4.jar
100
100
  - classpath/httpcore-4.4.10.jar
101
101
  - classpath/httpclient-4.5.6.jar
102
102
  - classpath/commons-codec-1.10.jar