embulk-input-yelp 0.2.3 → 0.2.4

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: da55630ab13c030342e8881b74c8458571491a5e
4
- data.tar.gz: cf839bf3fd2e2b9d7bfaffaba165db64361f9cb2
3
+ metadata.gz: ded638942968c73f0771efe67a95e4d14c1a31df
4
+ data.tar.gz: 5c8247c840968caaf904ed726999bbf275872d9f
5
5
  SHA512:
6
- metadata.gz: 0b083c91738b745bebe2fb4fca27fead52f05910c8fb74b751656136f0d79ef594643ce9afa8c6ba76173b63b0bf08800e3bf819ed761ea4530bf01c276a16aa
7
- data.tar.gz: debcf29a45b83ae256c9b7048223476fe62ae215d23c51640597e1432fd6d1a8bf11027236c7be42738c27376c9100a7ded27f1514db9e0bc765eb21238a8342
6
+ metadata.gz: 5991bf7fd13a9c4abf206010e9378a6bcf409ba60d0722345ad3c1d90e8e3a7b8b9b823769fd43257e5ffdd5262e051bc8a0cbf25df8eb60e9498e99c9a56898
7
+ data.tar.gz: 0045bdde6f8da6121e3d3f81a42c8c9f02b81ddc82dc2ae4ea6c4ef46bb8bc4a6a2cdbc501ec2df457f9712cc3e6402103b45d0d6fadccd451eef10a314e6638
data/build.gradle CHANGED
@@ -17,7 +17,7 @@ configurations {
17
17
  provided
18
18
  }
19
19
 
20
- version = "0.2.3"
20
+ version = "0.2.4"
21
21
 
22
22
  sourceCompatibility = 1.7
23
23
  targetCompatibility = 1.7
@@ -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.3
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-05 00:00:00.000000000 Z
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.3.jar
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