embulk-input-yelp 0.2.0 → 0.2.1
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 +4 -4
- data/build.gradle +1 -1
- data/src/main/java/org/embulk/input/yelp/YelpInputPluginDelegate.java +9 -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: b35f786752e36fc39d933b59e2b0319d56bd49b0
|
|
4
|
+
data.tar.gz: aa49ccf14ab02a25a15fad0a73f18a9d1e6ea0ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce515a1732f763144619d2b94b2362b021515a83d83fcf16bd9ea4b2f142cd919be6918d5336cdc2199d10828d13aa4679dd4cbfbc02af14bf21c36bd2c94c35
|
|
7
|
+
data.tar.gz: 83658e28d129ed5d0ccc78529212e707823a8b37d688365d01355d825f2fd1b8b86a5e3784f22994e0950bb3d66b3201e8134bde18dd19a2e9ffa702d4a14ccc
|
data/build.gradle
CHANGED
|
@@ -62,6 +62,10 @@ public class YelpInputPluginDelegate
|
|
|
62
62
|
@ConfigDefault("null")
|
|
63
63
|
public Optional<String> getLongitude();
|
|
64
64
|
|
|
65
|
+
@Config("radius")
|
|
66
|
+
@ConfigDefault("null")
|
|
67
|
+
public Optional<Integer> getRadius();
|
|
68
|
+
|
|
65
69
|
@Config("maximum_retries")
|
|
66
70
|
@ConfigDefault("7")
|
|
67
71
|
public int getMaximumRetries();
|
|
@@ -144,6 +148,7 @@ public class YelpInputPluginDelegate
|
|
|
144
148
|
task.getLocation(),
|
|
145
149
|
task.getLatitude(),
|
|
146
150
|
task.getLongitude(),
|
|
151
|
+
task.getRadius(),
|
|
147
152
|
limit,
|
|
148
153
|
offset);
|
|
149
154
|
}
|
|
@@ -195,6 +200,7 @@ public class YelpInputPluginDelegate
|
|
|
195
200
|
final Optional<String> location,
|
|
196
201
|
final Optional<String> latitude,
|
|
197
202
|
final Optional<String> longitude,
|
|
203
|
+
final Optional<Integer> radius,
|
|
198
204
|
final int limit,
|
|
199
205
|
final int offset)
|
|
200
206
|
{
|
|
@@ -217,6 +223,9 @@ public class YelpInputPluginDelegate
|
|
|
217
223
|
throw new ConfigException(
|
|
218
224
|
"FATAL: 'location' or 'latitude'/'longitude' are required.");
|
|
219
225
|
}
|
|
226
|
+
if (radius.isPresent()) {
|
|
227
|
+
webTarget = webTarget.queryParam("radius", radius.get());
|
|
228
|
+
}
|
|
220
229
|
Response response = webTarget
|
|
221
230
|
.request()
|
|
222
231
|
.header("Authorization", "Bearer " + bearerToken)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: embulk-input-yelp
|
|
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
|
- Dai MIKURUBE
|
|
@@ -61,7 +61,7 @@ files:
|
|
|
61
61
|
- src/test/java/org/embulk/input/yelp/TestYelpInputPlugin.java
|
|
62
62
|
- classpath/aopalliance-repackaged-2.5.0-b32.jar
|
|
63
63
|
- classpath/embulk-base-restclient-0.5.0.jar
|
|
64
|
-
- classpath/embulk-input-yelp-0.2.
|
|
64
|
+
- classpath/embulk-input-yelp-0.2.1.jar
|
|
65
65
|
- classpath/embulk-util-retryhelper-jaxrs-0.5.0.jar
|
|
66
66
|
- classpath/hk2-api-2.5.0-b32.jar
|
|
67
67
|
- classpath/hk2-locator-2.5.0-b32.jar
|