touringplans 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.version +1 -1
- data/lib/touringplans/version.rb +1 -1
- data/lib/touringplans.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81348c4d2c7b9da3505689916f73ecedc44106fc683dfb01ee9428e058743c2a
|
4
|
+
data.tar.gz: d29c2db956a3c724178a65efc88980b0afbc4417f2cb172dbd38691a77282fe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8185825486b4abac4f4e5734af4d8fab13fd838a3fa11f91e193771e15403dd80a6220607d22ce1619ddc4e66863a5fc0ae9f3f7c3380d1e3608dc7911caa4d
|
7
|
+
data.tar.gz: bceb0828b4d49ad9bef9512d710d357957c0dda2b5b4e85ebd49e941735f6de1d7c7f6ceb6bc31601188402939eb0c2796003bf53436f6b058914eee30041603
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/lib/touringplans/version.rb
CHANGED
data/lib/touringplans.rb
CHANGED
@@ -212,6 +212,7 @@ module Touringplans
|
|
212
212
|
attribute :kosher_available, Types::Params::Bool
|
213
213
|
attribute :dinable_id, Types::Params::Integer
|
214
214
|
attribute :dinable_type, Types::String.optional
|
215
|
+
attribute :venue_permalink, Types::String.optional
|
215
216
|
end
|
216
217
|
|
217
218
|
# model with the attributes
|
@@ -273,6 +274,7 @@ module Touringplans
|
|
273
274
|
attribute :kosher_available, Types::Params::Bool
|
274
275
|
attribute :dinable_id, Types::Params::Integer
|
275
276
|
attribute :dinable_type, Types::String.optional
|
277
|
+
attribute :venue_permalink, Types::String.optional
|
276
278
|
end
|
277
279
|
|
278
280
|
# model with the attributes
|
@@ -282,6 +284,8 @@ module Touringplans
|
|
282
284
|
attribute :name, Types::String
|
283
285
|
attribute :short_name, Types::String
|
284
286
|
attribute :permalink, Types::String
|
287
|
+
attribute :venue_permalink, Types::String
|
288
|
+
|
285
289
|
end
|
286
290
|
|
287
291
|
# model with the attributes
|
@@ -292,6 +296,7 @@ module Touringplans
|
|
292
296
|
attribute :sort_name, Types::String
|
293
297
|
attribute :permalink, Types::String
|
294
298
|
attribute :category_code, Types::String.optional
|
299
|
+
attribute :venue_permalink, Types::String.optional
|
295
300
|
end
|
296
301
|
|
297
302
|
PLACE_KEYS = %i[magic_kingdom
|
@@ -332,6 +337,9 @@ module Touringplans
|
|
332
337
|
route = _assemble_route(location, interest_type)
|
333
338
|
response = client.send(route).parsed_response
|
334
339
|
listing_hashes = _collect_listing_hashes_from_response(interest, response)
|
340
|
+
listing_hashes.each do |item|
|
341
|
+
item["venue_permalink"] = location.to_s.downcase.gsub(" ", "-")
|
342
|
+
end
|
335
343
|
|
336
344
|
listing_hashes
|
337
345
|
listing_hashes.each do |hash|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: touringplans
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- captproton
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|