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 +4 -4
- data/CHANGELOG.md +3 -0
- data/build.gradle +1 -1
- data/src/main/java/org/embulk/input/zendesk/utils/ZendeskConstants.java +1 -0
- data/src/main/java/org/embulk/input/zendesk/utils/ZendeskDateUtils.java +2 -1
- data/src/test/java/org/embulk/input/zendesk/utils/TestZendeskDateUtils.java +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87550faf658f946b3304fc3e19db5903dea08cc0
|
4
|
+
data.tar.gz: be6b8435c7650e8113ed7a36757e61ba0b4ff986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc547390d1c61746c3bca7c6e6483da976f0aadb9fb0fdd389a94fea0f79f237192edb39e55a523d3d5fb685355210f225b6b65014c37b83bf421c101575a3a3
|
7
|
+
data.tar.gz: 2b029eb64f6c10bb082aa00c132a2e1dfe2df86c30151b6a133c9460df7f84c94a06bfa48d1e134f43e16c0052effbc64358a4b881d62b17367d39da7f3b5101
|
data/CHANGELOG.md
CHANGED
data/build.gradle
CHANGED
@@ -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.
|
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.
|
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
|