embulk-input-marketo_extended 0.6.21 → 0.6.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6efba1be34ca3cd08c0883805641173eb6259c0
|
4
|
+
data.tar.gz: d65d6decb9c9c8fb7b135d60a42488c8ddb7f5de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d3558a194417bec40a6943482d8e082c1ada38acb323c410f81672ab46f8ce59445334c0b89df6cc5ff7ab4279a6e9346f2c42119b8020460605530ea8a9068
|
7
|
+
data.tar.gz: 7210c0fcc06ad5df7d18285e18300973d249950df83641744acd72d5492d6b1aba2852500407893a127e48508241040537ace24edd47b2aa607bd420102f13e3
|
data/build.gradle
CHANGED
@@ -380,7 +380,7 @@ public class CsvTokenizer
|
|
380
380
|
else if (isQuote(c)) {
|
381
381
|
char next = peekNextChar();
|
382
382
|
final char nextNext = peekNextNextChar();
|
383
|
-
|
383
|
+
Exec.getLogger(CsvTokenizer.class).info("Character is {}. Next: {}, NextNext:{}", c,next,nextNext);
|
384
384
|
if (isQuote(next)
|
385
385
|
&& (quotesInQuotedFields != "ACCEPT_STRAY_QUOTES_ASSUMING_NO_DELIMITERS_IN_FIELDS"
|
386
386
|
|| (!isDelimiter(nextNext) && !isEndOfLine(nextNext)))) {
|
@@ -399,14 +399,14 @@ public class CsvTokenizer
|
|
399
399
|
}
|
400
400
|
} else {
|
401
401
|
quotedValue.append(line.substring(valueStartPos, linePos - 1));
|
402
|
-
|
402
|
+
Exec.getLogger(CsvTokenizer.class).info("Current column state is {}. Quoted Value : {}", columnState, quotedValue);
|
403
403
|
columnState = ColumnState.AFTER_QUOTED_VALUE;
|
404
404
|
}
|
405
405
|
}
|
406
406
|
else if (isEscape(c)) { // isQuote must be checked first in case of quote == escape
|
407
407
|
// In RFC 4180, CSV's escape char is '\"'. But '\\' is often used.
|
408
408
|
char next = peekNextChar();
|
409
|
-
|
409
|
+
Exec.getLogger(CsvTokenizer.class).info("Esc Character is {}. Next: {}, column state{}", c,next, columnState);
|
410
410
|
if (isEndOfLine(c)) {
|
411
411
|
// escape end of line. TODO assuming multi-line quoted value without newline?
|
412
412
|
quotedValue.append(line.substring(valueStartPos, linePos));
|
@@ -170,9 +170,9 @@ public abstract class MarketoBaseBulkExtractInputPlugin<T extends MarketoBaseBul
|
|
170
170
|
int imported = 0;
|
171
171
|
while (csvRecords.hasNext()) {
|
172
172
|
Map<String, String> csvRecord = csvRecords.next();
|
173
|
-
|
174
|
-
|
175
|
-
|
173
|
+
if(csvRecord.containsKey("attributes")) {
|
174
|
+
System.out.println("Attributes Before");
|
175
|
+
System.out.println(csvRecord.get("attributes"));
|
176
176
|
//
|
177
177
|
// csvRecord.put("attributes", csvRecord.get("attributes").replace("\\\"\"","\\\""));
|
178
178
|
// System.out.println("Attributes After");
|
@@ -181,7 +181,7 @@ public abstract class MarketoBaseBulkExtractInputPlugin<T extends MarketoBaseBul
|
|
181
181
|
|
182
182
|
// for (Map.Entry<String, String> entry : csvRecord.entrySet()) {
|
183
183
|
// System.out.println(entry.getKey() + ":" + entry.getValue().toString());
|
184
|
-
|
184
|
+
}
|
185
185
|
ObjectNode objectNode = MarketoUtils.OBJECT_MAPPER.valueToTree(csvRecord);
|
186
186
|
recordImporter.importRecord(new AllStringJacksonServiceRecord(objectNode), pageBuilder);
|
187
187
|
imported = imported + 1;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-marketo_extended
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uu59
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2020-11-
|
14
|
+
date: 2020-11-06 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,7 +140,7 @@ files:
|
|
140
140
|
- classpath/jetty-io-9.2.14.v20151106.jar
|
141
141
|
- classpath/commons-io-2.8.0.jar
|
142
142
|
- classpath/jetty-util-9.2.14.v20151106.jar
|
143
|
-
- classpath/embulk-input-marketo_extended-0.6.
|
143
|
+
- classpath/embulk-input-marketo_extended-0.6.22.jar
|
144
144
|
- classpath/jetty-http-9.2.14.v20151106.jar
|
145
145
|
- classpath/jetty-client-9.2.14.v20151106.jar
|
146
146
|
- classpath/embulk-base-restclient-0.5.3.jar
|