angie-core-api 0.5.3 → 0.5.4

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: 3da094ea147d35ccaeaee12c4a6281f135bd656f59ec01953130d89140dab7c7
4
- data.tar.gz: 03d586544e65919eab587c55275091e3dd5aae221b3d04016c663ea3b312facb
3
+ metadata.gz: 35be3160201584bd679bd6c7645a5894a08ee1d9412fa52b335914650a954472
4
+ data.tar.gz: fc677333b035ba12bb5708c0db4a9f64a24fc7935fddbba6b2af4e956ed82a58
5
5
  SHA512:
6
- metadata.gz: 26bb0f6396229f20656fd73d0c5326261c333ac8d159dca1df8e54bd6bdc551c318d972505119f95f80febd5c1a45997f7a9b5e084c36ad47a2831a268851964
7
- data.tar.gz: 025fe3564796719622ee751ac76d0cf8a14877993fa5d6dc74df8a45bedaf94c05dda85737033fcb96c442a5c98b2ab8a16f414968728ac09896989dcaf80b6c
6
+ metadata.gz: 64b951d6feb2526ed65210e64aa6a2ad513c543d85c9984a7eaaf84dc46409fa0acb19b86c41418e36de98f4889100dfa9633b5e0dbb173345126138585e0212
7
+ data.tar.gz: fb2404dcc5200ea6772b0b12fc752d1fcf3dd1d716734cc048d3e3e12b2f88cb0bcb571f0f1029c5d52dede6348801e2fb4de2c7637530b3f55360b3318a6bfd
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "active_support/configurable"
4
+
3
5
  module AngieCoreApi
4
6
  class Configuration
5
7
  include ActiveSupport::Configurable
@@ -3,12 +3,12 @@
3
3
  module AngieCoreApi
4
4
  class Map
5
5
  def self.travel_time(origin, location, radius, unit, size, zoom, locale)
6
- url = "/maps/distancematrix/#{origin}/#{URI.encode(location)}/#{radius}/#{unit}/#{size}/#{zoom}/#{locale}"
6
+ url = "/maps/distancematrix/#{origin}/#{URI.encode_www_form_component(location)}/#{radius}/#{unit}/#{size}/#{zoom}/#{locale}"
7
7
  Client.data(:get, url)
8
8
  end
9
9
 
10
10
  def self.local_places(origin, query, radius, unit, locale)
11
- url = "/maps/places/#{origin}/#{URI.encode(query)}/#{radius}/#{unit}/#{locale}"
11
+ url = "/maps/places/#{origin}/#{URI.encode_www_form_component(query)}/#{radius}/#{unit}/#{locale}"
12
12
  Client.data(:get, url)
13
13
  end
14
14
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angie-core-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angie Hospitality
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-06 00:00:00.000000000 Z
11
+ date: 2021-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actioncable