embulk-input-marketo_extended 0.6.24 → 0.6.25

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: 152da149f01fe6b8ddc0e0c7c991294a14f0d49f
4
- data.tar.gz: 8697dca8af570c05a81dc37e848ae0ad471795b8
3
+ metadata.gz: 32159ad8f9fad3a8131bb16fd62735b23cfe8e42
4
+ data.tar.gz: adfe704d4f79971110e3d83aebb801ea52fa35ba
5
5
  SHA512:
6
- metadata.gz: 0f359173dd7a773a5f4901ea417c19c6e816bae5f69e4a9c1ca8600b0a97b778ce567fdb02daecd1ecf85ed44e33f2537739b33a411e3c6416e84f1b5af10bd6
7
- data.tar.gz: f94e31e1b2696c34c2076fc1af79d91fa2c8e6266f27b3f4c284c4b29a973b1f54eec5758520d40ffc4d59aa0672e3139e0900ff5b9523f50670575b3179c516
6
+ metadata.gz: 8d24bcd0780d4c3081cc7b8592fc8c854f0f33ddc6ec786ee33a31b5fe3d2e91a35e1514583892bc1348d4da51177564854bdf176413559ba4e61e00530a8b29
7
+ data.tar.gz: fc11f862364a6915c6266a464559afc5362e56a05e171175e73783b1fe7fed848f1794e7f5552257ed275d9e220d80a595a65fa4d3665cc63adb5db015d79ef6
@@ -16,7 +16,7 @@ repositories {
16
16
  configurations {
17
17
  provided
18
18
  }
19
- version = "0.6.24"
19
+ version = "0.6.25"
20
20
  sourceCompatibility = 1.7
21
21
  targetCompatibility = 1.7
22
22
 
@@ -143,7 +143,11 @@ public class ActivityBulkExtractInputPlugin extends MarketoBaseBulkExtractInputP
143
143
  protected InputStream getExtractedStream(MarketoService service, PluginTask task, DateTime fromDate, DateTime toDate)
144
144
  {
145
145
  try {
146
- return new FileInputStream(service.extractAllActivity(task.getActTypeIds(), fromDate.toDate(), toDate.toDate(), task.getPollingIntervalSecond(), task.getBulkJobTimeoutSecond(), task.getLandingPath()));
146
+ String landing_path = "";
147
+ if (task.getLandingPath().isPresent()) {
148
+ landing_path = task.getLandingPath().get();
149
+ }
150
+ return new FileInputStream(service.extractAllActivity(task.getActTypeIds(), fromDate.toDate(), toDate.toDate(), task.getPollingIntervalSecond(), task.getBulkJobTimeoutSecond(), landing_path));
147
151
  }
148
152
  catch (FileNotFoundException e) {
149
153
  throw new RuntimeException("Exception when trying to extract activity", e);
@@ -66,8 +66,8 @@ public abstract class MarketoBaseBulkExtractInputPlugin<T extends MarketoBaseBul
66
66
  Integer getFetchDays();
67
67
 
68
68
  @Config("landing_zone")
69
- @ConfigDefault("")
70
- String getLandingPath();
69
+ @ConfigDefault("null")
70
+ Optional<String> getLandingPath();
71
71
 
72
72
  @Config("latest_fetch_time")
73
73
  @ConfigDefault("null")
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.24
4
+ version: 0.6.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - uu59
@@ -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.24.jar
143
+ - classpath/embulk-input-marketo_extended-0.6.25.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