travel_time 0.3.0 → 0.3.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
  SHA256:
3
- metadata.gz: 2b3e81554adec31d0273e4a8800d9f31ee0b6bbd74277a8e0b61592629e813b5
4
- data.tar.gz: 74d2300d335ba54c7191848fede142c37b001516bedd6a84da01d8b8fab82cf9
3
+ metadata.gz: ede2b3ca9b12f1d411227a72ecf78374b4c2e2440bd554750de51b5aa828c841
4
+ data.tar.gz: 37aec14a1fd0e9c09cd8d101dbbad7cc297b60abc27a596b980cd9884e64ebf7
5
5
  SHA512:
6
- metadata.gz: e171245021dbb7c0ff92d601c61b7dd28e67972dc440f7f9d3accb0023c18d0d97e10227d9be269cf6290b02005a070cd9d2913c4b8a733b511d349138460b3a
7
- data.tar.gz: 1ddde0b924c7dcb823230514942bab274b9654bfba612e1778ad7bf79634bc9ce7321d2ece7c410021ddd80957b1409e938c35d8dda963f8a0cde70895551ee8
6
+ metadata.gz: 64831cb1d98876a2aab320c84dfc5b59ed27174c319810bac81800da4fd1a2a9cab0330737b393fd27fc7737cd44c0ccc8d14effbcea342bacbfdaf1f68b9da5
7
+ data.tar.gz: 923ac3cea840237a5e35eb8e4333cec5f84eea8b267851131a246b5f70841a7866205d236f53bbd7c084e10e97680054f275b6a8faf16eb9c73882a099407a01
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![GitHub Actions CI](https://github.com/traveltime-dev/traveltime-sdk-ruby/workflows/CI/badge.svg)](https://github.com/traveltime-dev/traveltime-sdk-ruby/actions?query=workflow%3ACI)
5
5
 
6
6
 
7
- This open-source library allows you to access [TravelTime API](http://docs.traveltime.com/overview/introduction)
7
+ This open-source library allows you to access [TravelTime API](https://docs.traveltime.com/overview/introduction)
8
8
  endpoints.
9
9
 
10
10
  ## Installation
@@ -43,13 +43,14 @@ module TravelTime
43
43
  perform_request { connection.post('supported-locations', { locations: locations }) }
44
44
  end
45
45
 
46
- def geocoding(query:, within_country: nil, exclude: nil, limit: nil, force_postcode: nil)
46
+ def geocoding(query:, within_country: nil, exclude: nil, limit: nil, force_postcode: nil, bounds: nil)
47
47
  query = {
48
48
  query: query,
49
49
  'within.country': within_country,
50
50
  'exclude.location.types': exclude,
51
51
  limit: limit,
52
- 'force.add.postcode': force_postcode
52
+ 'force.add.postcode': force_postcode,
53
+ bounds: bounds ? bounds.join(',') : nil
53
54
  }.compact
54
55
  perform_request { connection.get('geocoding/search', query) }
55
56
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TravelTime
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travel_time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TravelTime Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-09 00:00:00.000000000 Z
11
+ date: 2022-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable