gillbus 0.20.6 → 0.20.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gillbus/get_trip_seats.rb +6 -0
- data/lib/gillbus/structs/seat.rb +1 -0
- data/lib/gillbus/structs/trip.rb +3 -0
- data/lib/gillbus/version.rb +1 -1
- data/test/get_trip_seats_test.rb +18 -0
- data/test/responses/getTripSeats-two-floors.xml +1122 -0
- data/test/responses/getTripSeats.xml +70 -0
- data/test/responses/searchTrips-prod.xml +2 -0
- data/test/search_trips_test.rb +2 -0
- metadata +3 -1
@@ -42,6 +42,7 @@
|
|
42
42
|
<CURRENCY>RUB</CURRENCY>
|
43
43
|
<CURRENCY_CODE>643</CURRENCY_CODE>
|
44
44
|
<REDIRECT_URL>http://example.com/123</REDIRECT_URL>
|
45
|
+
<BUS_FLOORS_NUMBER>0</BUS_FLOORS_NUMBER>
|
45
46
|
<TARIFF>
|
46
47
|
<SHORT_NAME>Y</SHORT_NAME>
|
47
48
|
<FULL_NAME/>
|
@@ -177,6 +178,7 @@
|
|
177
178
|
<TOTAL_COST>1410</TOTAL_COST>
|
178
179
|
<CURRENCY>RUB</CURRENCY>
|
179
180
|
<CURRENCY_CODE>643</CURRENCY_CODE>
|
181
|
+
<BUS_FLOORS_NUMBER>2</BUS_FLOORS_NUMBER>
|
180
182
|
<TARIFF>
|
181
183
|
<SHORT_NAME>Y</SHORT_NAME>
|
182
184
|
<FULL_NAME/>
|
data/test/search_trips_test.rb
CHANGED
@@ -106,6 +106,8 @@ class SearchTripsResponseTest < Minitest::Test
|
|
106
106
|
assert_equal ['cause 1'], response.trips[1].tariffs.first.return_cause.map(&:cause)
|
107
107
|
assert_equal true, response.trips[1].tariffs.first.is_exclusive_price
|
108
108
|
assert_equal 'http://example.com/123', response.trips.first.redirect_url
|
109
|
+
assert_equal 0, response.trips.first.bus_floors_number
|
110
|
+
assert_equal 2, response.trips.last.bus_floors_number
|
109
111
|
end
|
110
112
|
|
111
113
|
def test_start_at_parsing
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gillbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey "codesnik" Trofimenko
|
@@ -264,6 +264,7 @@ files:
|
|
264
264
|
- test/responses/getTripSeats-back-seats.xml
|
265
265
|
- test/responses/getTripSeats-one-empty-segment.xml
|
266
266
|
- test/responses/getTripSeats-segments.xml
|
267
|
+
- test/responses/getTripSeats-two-floors.xml
|
267
268
|
- test/responses/getTripSeats.xml
|
268
269
|
- test/responses/getTripSegments.xml
|
269
270
|
- test/responses/legacy_trip.yml
|
@@ -351,6 +352,7 @@ test_files:
|
|
351
352
|
- test/responses/getTripSeats-back-seats.xml
|
352
353
|
- test/responses/getTripSeats-one-empty-segment.xml
|
353
354
|
- test/responses/getTripSeats-segments.xml
|
355
|
+
- test/responses/getTripSeats-two-floors.xml
|
354
356
|
- test/responses/getTripSeats.xml
|
355
357
|
- test/responses/getTripSegments.xml
|
356
358
|
- test/responses/legacy_trip.yml
|