embulk-input-yelp 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c512afdcd58e854fe161d5bf3a4515b3a82626f
4
- data.tar.gz: d4763db55ffcd4f4c8bb3cee6c47956874d3b0c9
3
+ metadata.gz: b35f786752e36fc39d933b59e2b0319d56bd49b0
4
+ data.tar.gz: aa49ccf14ab02a25a15fad0a73f18a9d1e6ea0ef
5
5
  SHA512:
6
- metadata.gz: f1508770e8b35eff5639e559c0bcb312b4490f001a270589878cf604ede3526089e8a9a0ca4c38b1691c4275e479a55d0b985d7799c10f0f105cc1cc5f6f718c
7
- data.tar.gz: 0b5463a4096d0f43e06deede02cc801683dbba031d7b7da639ba5fa3b3598cb54a6aa50d708455b459b8a160853fe422656852a55fc8442eecc164a547d4f68d
6
+ metadata.gz: ce515a1732f763144619d2b94b2362b021515a83d83fcf16bd9ea4b2f142cd919be6918d5336cdc2199d10828d13aa4679dd4cbfbc02af14bf21c36bd2c94c35
7
+ data.tar.gz: 83658e28d129ed5d0ccc78529212e707823a8b37d688365d01355d825f2fd1b8b86a5e3784f22994e0950bb3d66b3201e8134bde18dd19a2e9ffa702d4a14ccc
data/build.gradle CHANGED
@@ -17,7 +17,7 @@ configurations {
17
17
  provided
18
18
  }
19
19
 
20
- version = "0.2.0"
20
+ version = "0.2.1"
21
21
 
22
22
  sourceCompatibility = 1.7
23
23
  targetCompatibility = 1.7
@@ -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.0
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.0.jar
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