embulk-output-kintone 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/build.gradle +1 -1
- data/src/main/java/org/embulk/output/kintone/KintoneColumnVisitor.java +18 -20
- 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: e8c2d570242a7103d8d86149c3e31e8daa4bd593
|
4
|
+
data.tar.gz: bf24b0324e3d4a65dc6f6fd2bc000314317a1036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c38ba0d3dcfe715347f2a1efbf78ec4015eaff6c6c9bb80c29cdc3cbe3bfe21e0ebe8bbde199386cce9fb15b50f3a35e0a5b705a224a2a55f27eb02703c380dc
|
7
|
+
data.tar.gz: de192f098f8b9f91c153d14e19b1e3f3c78cff543d305bf749e3cd6ed35cd498bf26e54009cd6f0a6fa82966850695675d0b4d7b9266c182ea963e822cb09d61
|
data/build.gradle
CHANGED
@@ -59,27 +59,25 @@ public class KintoneColumnVisitor
|
|
59
59
|
.setField(fieldCode)
|
60
60
|
.setValue(String.valueOf(value));
|
61
61
|
}
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
fieldValue = new SingleLineTextFieldValue(stringValue);
|
80
|
-
}
|
81
|
-
record.putField(fieldCode, fieldValue);
|
62
|
+
String stringValue = String.valueOf(value);
|
63
|
+
FieldValue fieldValue = null;
|
64
|
+
switch (type) {
|
65
|
+
case NUMBER:
|
66
|
+
fieldValue = new NumberFieldValue(new BigDecimal(stringValue));
|
67
|
+
break;
|
68
|
+
case MULTI_LINE_TEXT:
|
69
|
+
fieldValue = new MultiLineTextFieldValue(stringValue);
|
70
|
+
break;
|
71
|
+
case DROP_DOWN:
|
72
|
+
fieldValue = new DropDownFieldValue(stringValue);
|
73
|
+
break;
|
74
|
+
case LINK:
|
75
|
+
fieldValue = new LinkFieldValue(stringValue);
|
76
|
+
break;
|
77
|
+
default:
|
78
|
+
fieldValue = new SingleLineTextFieldValue(stringValue);
|
82
79
|
}
|
80
|
+
record.putField(fieldCode, fieldValue);
|
83
81
|
}
|
84
82
|
|
85
83
|
private void setTimestampValue(String fieldCode, Instant instant, ZoneId zoneId, FieldType type)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-kintone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- takeshi fujita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,7 +52,7 @@ files:
|
|
52
52
|
- README.md
|
53
53
|
- Rakefile
|
54
54
|
- build.gradle
|
55
|
-
- classpath/embulk-output-kintone-0.2.
|
55
|
+
- classpath/embulk-output-kintone-0.2.1.jar
|
56
56
|
- config/checkstyle/checkstyle.xml
|
57
57
|
- config/checkstyle/default.xml
|
58
58
|
- gradle/wrapper/gradle-wrapper.jar
|