embulk-input-yelp 0.2.3 → 0.2.4
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/input/yelp/YelpInputPluginDelegate.java +9 -0
- 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: ded638942968c73f0771efe67a95e4d14c1a31df
|
4
|
+
data.tar.gz: 5c8247c840968caaf904ed726999bbf275872d9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5991bf7fd13a9c4abf206010e9378a6bcf409ba60d0722345ad3c1d90e8e3a7b8b9b823769fd43257e5ffdd5262e051bc8a0cbf25df8eb60e9498e99c9a56898
|
7
|
+
data.tar.gz: 0045bdde6f8da6121e3d3f81a42c8c9f02b81ddc82dc2ae4ea6c4ef46bb8bc4a6a2cdbc501ec2df457f9712cc3e6402103b45d0d6fadccd451eef10a314e6638
|
data/build.gradle
CHANGED
@@ -72,6 +72,10 @@ public class YelpInputPluginDelegate
|
|
72
72
|
@ConfigDefault("null")
|
73
73
|
public Optional<Integer> getRadius();
|
74
74
|
|
75
|
+
@Config("locale")
|
76
|
+
@ConfigDefault("null")
|
77
|
+
public Optional<String> getLocale();
|
78
|
+
|
75
79
|
@Config("columns")
|
76
80
|
@ConfigDefault("{}")
|
77
81
|
public Map<String, String> getColumns();
|
@@ -164,6 +168,7 @@ public class YelpInputPluginDelegate
|
|
164
168
|
task.getLatitude(),
|
165
169
|
task.getLongitude(),
|
166
170
|
task.getRadius(),
|
171
|
+
task.getLocale(),
|
167
172
|
limit,
|
168
173
|
offset);
|
169
174
|
}
|
@@ -266,6 +271,7 @@ public class YelpInputPluginDelegate
|
|
266
271
|
final Optional<String> latitude,
|
267
272
|
final Optional<String> longitude,
|
268
273
|
final Optional<Integer> radius,
|
274
|
+
final Optional<String> locale,
|
269
275
|
final int limit,
|
270
276
|
final int offset)
|
271
277
|
{
|
@@ -291,6 +297,9 @@ public class YelpInputPluginDelegate
|
|
291
297
|
if (radius.isPresent()) {
|
292
298
|
webTarget = webTarget.queryParam("radius", radius.get());
|
293
299
|
}
|
300
|
+
if (locale.isPresent()) {
|
301
|
+
webTarget = webTarget.queryParam("locale", locale.get());
|
302
|
+
}
|
294
303
|
Response response = webTarget
|
295
304
|
.request()
|
296
305
|
.header("Authorization", "Bearer " + bearerToken)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dai MIKURUBE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -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.4.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
|