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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0da97845b2da0509a8c7999d4ddcf211612a473068c00a1268bc47c057da3761
4
- data.tar.gz: 511482b523ec5d57129f407d36e5c277dde5157926d14c29d5744151596eb1ce
3
+ metadata.gz: 81348c4d2c7b9da3505689916f73ecedc44106fc683dfb01ee9428e058743c2a
4
+ data.tar.gz: d29c2db956a3c724178a65efc88980b0afbc4417f2cb172dbd38691a77282fe9
5
5
  SHA512:
6
- metadata.gz: 567a893c932d56c8b46a33566586cbed6b50fa40401b07bd2d2d28816b166001c10829116eeb6907d508e34f73feb5d8ad6e0bd78356152b0dd7a3fd99eeddbb
7
- data.tar.gz: 286698b9e01f41044a0ee5be4348422207b77b1d9e50b173f8100e723fcb1e50e377b02e7e980bd81267fb063d606a50c993a4b74550e3697f3f84e2fc7d1aa2
6
+ metadata.gz: a8185825486b4abac4f4e5734af4d8fab13fd838a3fa11f91e193771e15403dd80a6220607d22ce1619ddc4e66863a5fc0ae9f3f7c3380d1e3608dc7911caa4d
7
+ data.tar.gz: bceb0828b4d49ad9bef9512d710d357957c0dda2b5b4e85ebd49e941735f6de1d7c7f6ceb6bc31601188402939eb0c2796003bf53436f6b058914eee30041603
data/.version CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.5
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Touringplans
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
5
5
  end
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
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-07 00:00:00.000000000 Z
11
+ date: 2021-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print