travel_time 0.9.0 → 0.9.1

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
  SHA256:
3
- metadata.gz: 6f41a5c8d37b2b2be35de90168616082a28c31fd759635b1905430e3bd6b6b01
4
- data.tar.gz: 5aae0fe795498bbbbde3379a3bdb2195e89640c55773ec31eff670b0cf8e5d72
3
+ metadata.gz: 7806c052f2b4857a08bc6d0f7b837bb97ac8ad59dede5ccc31c184b286da7f0e
4
+ data.tar.gz: e430a1a07c86b58b0da059b68bec0c2f6d80e1a30d58fb8f063ef5f23cd25357
5
5
  SHA512:
6
- metadata.gz: 7a9f2d1cab48eb5f76d34b20cb77cf76db7f246007263317845d6e6566dae5167f3d63dbf40064e048a2e127ec18fd9115f0943fc8cea0e40bb2f583e4205f61
7
- data.tar.gz: cf33e330e80a64d3701ca0f9470979146c60f6a08af3480c9fc9cbe92f91478f63a8ec8ff24a61190ad5282e9a0106ecf19a759c2e60e6ac41c228a502cc06c0
6
+ metadata.gz: e99e0868f46c664a8cb2b7b430f3b05c111f235bf6ce19069b8b0d9ffab3301cc390fd85ca1c653ef1bd3fb3ad54f006018e0c6a6e8f2bd9b67de7938cf7e1ed
7
+ data.tar.gz: 6c7ef8ccb25d3bc4a7190f647e0a786a31f97b30c19a1b14383565eb00513d6471081c4c677bc48b6167d03cc9a0ef1dee699f8017ff746d7b4014c94d3c3a2b
data/README.md CHANGED
@@ -401,7 +401,7 @@ destinations = [{
401
401
  }]
402
402
 
403
403
  response = client.time_filter_fast_proto(
404
- country: 'UK',
404
+ country: 'uk',
405
405
  origin: origin,
406
406
  destinations: destinations,
407
407
  transport: 'driving+ferry',
@@ -427,10 +427,10 @@ origins = [
427
427
  ]
428
428
 
429
429
  response = client.time_filter_fast_proto(
430
- country: 'UK',
430
+ country: 'uk',
431
431
  origin: arrival, # arrival/destination point
432
432
  destinations: origins, # departure/origin points
433
- transport: 'public_transport',
433
+ transport: 'pt',
434
434
  traveltime: 3600,
435
435
  request_type: TravelTime::ProtoUtils::MANY_TO_ONE
436
436
  )
@@ -446,7 +446,7 @@ support extra configuration parameters.
446
446
 
447
447
  ```ruby
448
448
  response = client.time_filter_fast_proto(
449
- country: 'UK',
449
+ country: 'uk',
450
450
  origin: origin,
451
451
  destinations: destinations,
452
452
  transport: {
@@ -465,7 +465,7 @@ response = client.time_filter_fast_proto(
465
465
 
466
466
  ```ruby
467
467
  response = client.time_filter_fast_proto(
468
- country: 'UK',
468
+ country: 'uk',
469
469
  origin: origin,
470
470
  destinations: destinations,
471
471
  transport: {
@@ -159,9 +159,8 @@ module TravelTime
159
159
  message = ProtoUtils.make_proto_message(origin, destinations, transport_obj, traveltime,
160
160
  properties: properties, request_type: request_type)
161
161
  payload = ProtoUtils.encode_proto_message(message)
162
- perform_request_proto do
163
- proto_connection.post("#{PROTO_BASE_URL}#{country}/time-filter/fast/#{transport_obj.url_name}", payload)
164
- end
162
+ path = "#{PROTO_BASE_URL}#{country.to_s.downcase}/time-filter/fast/#{transport_obj.url_name}"
163
+ perform_request_proto { proto_connection.post(path, payload) }
165
164
  end
166
165
 
167
166
  def time_filter_postcodes(departure_searches: nil, arrival_searches: nil)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TravelTime
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.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.9.0
4
+ version: 0.9.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: 2026-08-21 00:00:00.000000000 Z
11
+ date: 2026-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64