travel_time 0.8.0 → 0.8.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: 5a23e77e0a13c15dd74597ba0abe967096943c12c51493d9339793e4999d42ca
4
- data.tar.gz: 8fe9d9beaf181102198577a66a93e3de64611305b720a72e2d9fc89929824291
3
+ metadata.gz: 91279926b05e377d9d73d3f98be36f2db93a734e69d63a282f387fdb7bb6cc4c
4
+ data.tar.gz: 9447eae966f88cbc91e5a3b710f3110ad70b2053e74c1140cb1338b7e81bd9bf
5
5
  SHA512:
6
- metadata.gz: 1bf0ae042c2c1d6f8721a6c9f69b4df925429462894b5d375a5075b0489897249577cc41397ecef6fd75229f3165e4e6acd0f498c02773e0833850199cf2f315
7
- data.tar.gz: 23e1e54ee47eaf2b3921f8f62b66f3c11d44073997c9d7af545a805c8af621b6727088937c1bae3946544b17bb01fa3267fcfaf10f661a92c6461b2ead90efef
6
+ metadata.gz: 1ceda4f7bfc94edbaee9680c66f2d415ffba96e0b53e29096f40f852ca0bd5c9ace69f75c21047b5ce4443ccd09866a384ebd9ae4daf12af61114a7dda6d4465
7
+ data.tar.gz: 3d32c9ec52c3805db9956fdc6335f094571d83b96876471784c57a2aa75dca060f222a4b29774875020c7c8c74956d13cda09a18e592d1d5fc542e05562189b4
data/README.md CHANGED
@@ -878,6 +878,10 @@ If `.proto` files were changed, you can generate Ruby code like this:
878
878
  ```bash
879
879
  # For example, if current dir is project root
880
880
  protoc --proto_path=lib/travel_time/proto/source --ruby_out=lib lib/travel_time/proto/source/*.proto
881
+ ```
882
+
883
+ Use protoc matching the oldest google-protobuf runtime the gemspec allows (protoc v25.x for the 3.25 floor):
884
+ generated code only loads on runtimes from its own major version and the next one.
881
885
 
882
886
  ### Release
883
887
 
@@ -1,54 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: RequestsCommon.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("RequestsCommon.proto", :syntax => :proto3) do
8
- add_message "com.igeolise.traveltime.rabbitmq.requests.Coords" do
9
- optional :lat, :float, 1
10
- optional :lng, :float, 2
11
- end
12
- add_message "com.igeolise.traveltime.rabbitmq.requests.Transportation" do
13
- optional :type, :enum, 1, "com.igeolise.traveltime.rabbitmq.requests.TransportationType"
14
- oneof :transportationDetails do
15
- optional :publicTransport, :message, 2, "com.igeolise.traveltime.rabbitmq.requests.PublicTransportDetails"
16
- optional :drivingAndPublicTransport, :message, 3, "com.igeolise.traveltime.rabbitmq.requests.DrivingAndPublicTransportDetails"
17
- end
18
- end
19
- add_message "com.igeolise.traveltime.rabbitmq.requests.PublicTransportDetails" do
20
- optional :walkingTimeToStation, :message, 1, "com.igeolise.traveltime.rabbitmq.requests.OptionalPositiveUInt32"
21
- end
22
- add_message "com.igeolise.traveltime.rabbitmq.requests.DrivingAndPublicTransportDetails" do
23
- optional :walkingTimeToStation, :message, 1, "com.igeolise.traveltime.rabbitmq.requests.OptionalPositiveUInt32"
24
- optional :drivingTimeToStation, :message, 2, "com.igeolise.traveltime.rabbitmq.requests.OptionalPositiveUInt32"
25
- optional :parkingTime, :message, 3, "com.igeolise.traveltime.rabbitmq.requests.OptionalNonNegativeUInt32"
26
- end
27
- add_message "com.igeolise.traveltime.rabbitmq.requests.OptionalPositiveUInt32" do
28
- optional :value, :uint32, 1
29
- end
30
- add_message "com.igeolise.traveltime.rabbitmq.requests.OptionalNonNegativeUInt32" do
31
- optional :value, :uint32, 1
32
- end
33
- add_enum "com.igeolise.traveltime.rabbitmq.requests.TransportationType" do
34
- value :PUBLIC_TRANSPORT, 0
35
- value :DRIVING, 1
36
- value :DRIVING_AND_PUBLIC_TRANSPORT, 2
37
- value :DRIVING_AND_FERRY, 3
38
- value :WALKING, 4
39
- value :WALKING_AND_FERRY, 7
40
- value :CYCLING, 5
41
- value :CYCLING_AND_FERRY, 6
42
- end
43
- add_enum "com.igeolise.traveltime.rabbitmq.requests.TimePeriod" do
44
- value :WEEKDAY_MORNING, 0
45
- end
46
- add_enum "com.igeolise.traveltime.rabbitmq.requests.CellPropertyType" do
47
- value :MEAN, 0
48
- value :MIN, 1
49
- value :MAX, 2
7
+
8
+ descriptor_data = "\n\x14RequestsCommon.proto\x12)com.igeolise.traveltime.rabbitmq.requests\"\"\n\x06\x43oords\x12\x0b\n\x03lat\x18\x01 \x01(\x02\x12\x0b\n\x03lng\x18\x02 \x01(\x02\"\xc6\x02\n\x0eTransportation\x12K\n\x04type\x18\x01 \x01(\x0e\x32=.com.igeolise.traveltime.rabbitmq.requests.TransportationType\x12\\\n\x0fpublicTransport\x18\x02 \x01(\x0b\x32\x41.com.igeolise.traveltime.rabbitmq.requests.PublicTransportDetailsH\x00\x12p\n\x19\x64rivingAndPublicTransport\x18\x03 \x01(\x0b\x32K.com.igeolise.traveltime.rabbitmq.requests.DrivingAndPublicTransportDetailsH\x00\x42\x17\n\x15transportationDetails\"y\n\x16PublicTransportDetails\x12_\n\x14walkingTimeToStation\x18\x01 \x01(\x0b\x32\x41.com.igeolise.traveltime.rabbitmq.requests.OptionalPositiveUInt32\"\xbf\x02\n DrivingAndPublicTransportDetails\x12_\n\x14walkingTimeToStation\x18\x01 \x01(\x0b\x32\x41.com.igeolise.traveltime.rabbitmq.requests.OptionalPositiveUInt32\x12_\n\x14\x64rivingTimeToStation\x18\x02 \x01(\x0b\x32\x41.com.igeolise.traveltime.rabbitmq.requests.OptionalPositiveUInt32\x12Y\n\x0bparkingTime\x18\x03 \x01(\x0b\x32\x44.com.igeolise.traveltime.rabbitmq.requests.OptionalNonNegativeUInt32\"\'\n\x16OptionalPositiveUInt32\x12\r\n\x05value\x18\x01 \x01(\r\"*\n\x19OptionalNonNegativeUInt32\x12\r\n\x05value\x18\x01 \x01(\r*\xb8\x01\n\x12TransportationType\x12\x14\n\x10PUBLIC_TRANSPORT\x10\x00\x12\x0b\n\x07\x44RIVING\x10\x01\x12 \n\x1c\x44RIVING_AND_PUBLIC_TRANSPORT\x10\x02\x12\x15\n\x11\x44RIVING_AND_FERRY\x10\x03\x12\x0b\n\x07WALKING\x10\x04\x12\x15\n\x11WALKING_AND_FERRY\x10\x07\x12\x0b\n\x07\x43YCLING\x10\x05\x12\x15\n\x11\x43YCLING_AND_FERRY\x10\x06*!\n\nTimePeriod\x12\x13\n\x0fWEEKDAY_MORNING\x10\x00*.\n\x10\x43\x65llPropertyType\x12\x08\n\x04MEAN\x10\x00\x12\x07\n\x03MIN\x10\x01\x12\x07\n\x03MAX\x10\x02\x62\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
50
28
  end
51
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
52
32
  end
53
33
 
54
34
  module Com
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: TimeFilterFastRequest.proto
3
4
 
@@ -5,33 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'RequestsCommon_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("TimeFilterFastRequest.proto", :syntax => :proto3) do
10
- add_message "com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest" do
11
- optional :oneToManyRequest, :message, 1, "com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest.OneToMany"
12
- optional :manyToOneRequest, :message, 2, "com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest.ManyToOne"
13
- end
14
- add_message "com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest.OneToMany" do
15
- optional :departureLocation, :message, 1, "com.igeolise.traveltime.rabbitmq.requests.Coords"
16
- repeated :locationDeltas, :sint32, 2
17
- optional :transportation, :message, 3, "com.igeolise.traveltime.rabbitmq.requests.Transportation"
18
- optional :arrivalTimePeriod, :enum, 4, "com.igeolise.traveltime.rabbitmq.requests.TimePeriod"
19
- optional :travelTime, :sint32, 5
20
- repeated :properties, :enum, 6, "com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest.Property"
21
- end
22
- add_message "com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest.ManyToOne" do
23
- optional :arrivalLocation, :message, 1, "com.igeolise.traveltime.rabbitmq.requests.Coords"
24
- repeated :locationDeltas, :sint32, 2
25
- optional :transportation, :message, 3, "com.igeolise.traveltime.rabbitmq.requests.Transportation"
26
- optional :arrivalTimePeriod, :enum, 4, "com.igeolise.traveltime.rabbitmq.requests.TimePeriod"
27
- optional :travelTime, :sint32, 5
28
- repeated :properties, :enum, 6, "com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest.Property"
29
- end
30
- add_enum "com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest.Property" do
31
- value :FARES, 0
32
- value :DISTANCES, 1
9
+
10
+ descriptor_data = "\n\x1bTimeFilterFastRequest.proto\x12)com.igeolise.traveltime.rabbitmq.requests\x1a\x14RequestsCommon.proto\"\x9f\x08\n\x15TimeFilterFastRequest\x12\x64\n\x10oneToManyRequest\x18\x01 \x01(\x0b\x32J.com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest.OneToMany\x12\x64\n\x10manyToOneRequest\x18\x02 \x01(\x0b\x32J.com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest.ManyToOne\x1a\x89\x03\n\tOneToMany\x12L\n\x11\x64\x65partureLocation\x18\x01 \x01(\x0b\x32\x31.com.igeolise.traveltime.rabbitmq.requests.Coords\x12\x16\n\x0elocationDeltas\x18\x02 \x03(\x11\x12Q\n\x0etransportation\x18\x03 \x01(\x0b\x32\x39.com.igeolise.traveltime.rabbitmq.requests.Transportation\x12P\n\x11\x61rrivalTimePeriod\x18\x04 \x01(\x0e\x32\x35.com.igeolise.traveltime.rabbitmq.requests.TimePeriod\x12\x12\n\ntravelTime\x18\x05 \x01(\x11\x12]\n\nproperties\x18\x06 \x03(\x0e\x32I.com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest.Property\x1a\x87\x03\n\tManyToOne\x12J\n\x0f\x61rrivalLocation\x18\x01 \x01(\x0b\x32\x31.com.igeolise.traveltime.rabbitmq.requests.Coords\x12\x16\n\x0elocationDeltas\x18\x02 \x03(\x11\x12Q\n\x0etransportation\x18\x03 \x01(\x0b\x32\x39.com.igeolise.traveltime.rabbitmq.requests.Transportation\x12P\n\x11\x61rrivalTimePeriod\x18\x04 \x01(\x0e\x32\x35.com.igeolise.traveltime.rabbitmq.requests.TimePeriod\x12\x12\n\ntravelTime\x18\x05 \x01(\x11\x12]\n\nproperties\x18\x06 \x03(\x0e\x32I.com.igeolise.traveltime.rabbitmq.requests.TimeFilterFastRequest.Property\"$\n\x08Property\x12\t\n\x05\x46\x41RES\x10\x00\x12\r\n\tDISTANCES\x10\x01\x62\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["com.igeolise.traveltime.rabbitmq.requests.Coords", "RequestsCommon.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
31
  end
34
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
35
  end
36
36
 
37
37
  module Com
@@ -1,41 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: TimeFilterFastResponse.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("TimeFilterFastResponse.proto", :syntax => :proto3) do
8
- add_message "com.igeolise.traveltime.rabbitmq.responses.TimeFilterFastResponse" do
9
- optional :error, :message, 1, "com.igeolise.traveltime.rabbitmq.responses.TimeFilterFastResponse.Error"
10
- optional :properties, :message, 2, "com.igeolise.traveltime.rabbitmq.responses.TimeFilterFastResponse.Properties"
11
- end
12
- add_message "com.igeolise.traveltime.rabbitmq.responses.TimeFilterFastResponse.Properties" do
13
- repeated :travelTimes, :sint32, 1
14
- repeated :monthlyFares, :int32, 2
15
- repeated :distances, :int32, 3
16
- end
17
- add_message "com.igeolise.traveltime.rabbitmq.responses.TimeFilterFastResponse.Error" do
18
- optional :type, :enum, 1, "com.igeolise.traveltime.rabbitmq.responses.TimeFilterFastResponse.ErrorType"
19
- end
20
- add_enum "com.igeolise.traveltime.rabbitmq.responses.TimeFilterFastResponse.ErrorType" do
21
- value :UNKNOWN, 0
22
- value :ONE_TO_MANY_MUST_NOT_BE_NULL, 1
23
- value :SOURCE_MUST_NOT_BE_NULL, 2
24
- value :TRANSPORTATION_MUST_NOT_BE_NULL, 3
25
- value :SOURCE_NOT_IN_GEOMETRY, 4
26
- value :UNRECOGNIZED_TRANSPORTATION_MODE, 5
27
- value :TRAVEL_TIME_LIMIT_TOO_LOW, 6
28
- value :TRAVEL_TIME_LIMIT_TOO_HIGH, 7
29
- value :AUTH_ERROR_NO_USER_ID, 8
30
- value :SERVICE_MISMATCH_WRONG_TRANSPORTATION_MODE, 9
31
- value :SOURCE_OUT_OF_REACH, 10
32
- value :INTERLEAVED_DELTAS_INVALID_COORDINATE_PAIRS, 11
33
- value :DISTANCE_PROPERTY_NOT_SUPPORTED, 12
34
- value :BOTH_MANY_TO_ONE_AND_ONE_TO_MANY_CANNOT_BE_SENT, 13
35
- value :ONE_TO_MANY_OR_MANY_TO_ONE_MUST_NOT_BE_NULL, 14
36
- value :INVALID_PROTO_REQUEST, 15
7
+
8
+ descriptor_data = "\n\x1cTimeFilterFastResponse.proto\x12*com.igeolise.traveltime.rabbitmq.responses\"\x84\x08\n\x16TimeFilterFastResponse\x12[\n\x05\x65rror\x18\x01 \x01(\x0b\x32H.com.igeolise.traveltime.rabbitmq.responses.TimeFilterFastResponse.ErrorB\x02\x18\x01\x12\x61\n\nproperties\x18\x02 \x01(\x0b\x32M.com.igeolise.traveltime.rabbitmq.responses.TimeFilterFastResponse.Properties\x1aJ\n\nProperties\x12\x13\n\x0btravelTimes\x18\x01 \x03(\x11\x12\x14\n\x0cmonthlyFares\x18\x02 \x03(\x05\x12\x11\n\tdistances\x18\x03 \x03(\x05\x1a\x63\n\x05\x45rror\x12Z\n\x04type\x18\x01 \x01(\x0e\x32L.com.igeolise.traveltime.rabbitmq.responses.TimeFilterFastResponse.ErrorType\"\xf8\x04\n\tErrorType\x12\x0f\n\x07UNKNOWN\x10\x00\x1a\x02\x08\x01\x12$\n\x1cONE_TO_MANY_MUST_NOT_BE_NULL\x10\x01\x1a\x02\x08\x01\x12\x1f\n\x17SOURCE_MUST_NOT_BE_NULL\x10\x02\x1a\x02\x08\x01\x12\'\n\x1fTRANSPORTATION_MUST_NOT_BE_NULL\x10\x03\x1a\x02\x08\x01\x12\x1e\n\x16SOURCE_NOT_IN_GEOMETRY\x10\x04\x1a\x02\x08\x01\x12(\n UNRECOGNIZED_TRANSPORTATION_MODE\x10\x05\x1a\x02\x08\x01\x12!\n\x19TRAVEL_TIME_LIMIT_TOO_LOW\x10\x06\x1a\x02\x08\x01\x12\"\n\x1aTRAVEL_TIME_LIMIT_TOO_HIGH\x10\x07\x1a\x02\x08\x01\x12\x1d\n\x15\x41UTH_ERROR_NO_USER_ID\x10\x08\x1a\x02\x08\x01\x12\x32\n*SERVICE_MISMATCH_WRONG_TRANSPORTATION_MODE\x10\t\x1a\x02\x08\x01\x12\x1b\n\x13SOURCE_OUT_OF_REACH\x10\n\x1a\x02\x08\x01\x12\x33\n+INTERLEAVED_DELTAS_INVALID_COORDINATE_PAIRS\x10\x0b\x1a\x02\x08\x01\x12\'\n\x1f\x44ISTANCE_PROPERTY_NOT_SUPPORTED\x10\x0c\x1a\x02\x08\x01\x12\x37\n/BOTH_MANY_TO_ONE_AND_ONE_TO_MANY_CANNOT_BE_SENT\x10\r\x1a\x02\x08\x01\x12\x33\n+ONE_TO_MANY_OR_MANY_TO_ONE_MUST_NOT_BE_NULL\x10\x0e\x1a\x02\x08\x01\x12\x1d\n\x15INVALID_PROTO_REQUEST\x10\x0f\x1a\x02\x08\x01\x62\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
37
28
  end
38
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
39
32
  end
40
33
 
41
34
  module Com
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TravelTime
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.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.8.0
4
+ version: 0.8.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: 2025-11-12 00:00:00.000000000 Z
11
+ date: 2026-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -62,22 +62,22 @@ dependencies:
62
62
  name: google-protobuf
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '3.25'
68
65
  - - ">="
69
66
  - !ruby/object:Gem::Version
70
67
  version: 3.25.5
68
+ - - "<"
69
+ - !ruby/object:Gem::Version
70
+ version: '5.0'
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: '3.25'
78
75
  - - ">="
79
76
  - !ruby/object:Gem::Version
80
77
  version: 3.25.5
78
+ - - "<"
79
+ - !ruby/object:Gem::Version
80
+ version: '5.0'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: ruby-limiter
83
83
  requirement: !ruby/object:Gem::Requirement