gillbus 0.17.6 → 0.22.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/Gemfile +0 -4
- data/gillbus.gemspec +1 -1
- data/lib/gillbus/base_request.rb +2 -0
- data/lib/gillbus/base_response.rb +8 -4
- data/lib/gillbus/get_carriers.rb +13 -0
- data/lib/gillbus/get_required_fields.rb +1 -0
- data/lib/gillbus/get_trip_seats.rb +7 -0
- data/lib/gillbus/helpers/parser.rb +45 -11
- data/lib/gillbus/return_position.rb +2 -0
- data/lib/gillbus/return_position_forced.rb +16 -0
- data/lib/gillbus/search_nearby_trips.rb +39 -0
- data/lib/gillbus/search_trips.rb +20 -13
- data/lib/gillbus/structs/carrier.rb +11 -0
- data/lib/gillbus/structs/luggage.rb +19 -0
- data/lib/gillbus/structs/nearby_cities_trip.rb +61 -0
- data/lib/gillbus/structs/point.rb +2 -0
- data/lib/gillbus/structs/return_cause.rb +1 -1
- data/lib/gillbus/structs/seat.rb +1 -0
- data/lib/gillbus/structs/segment.rb +27 -0
- data/lib/gillbus/structs/tariff/return_cause.rb +8 -3
- data/lib/gillbus/structs/ticket.rb +29 -12
- data/lib/gillbus/structs/tickets_option.rb +29 -0
- data/lib/gillbus/structs/trip.rb +35 -0
- data/lib/gillbus/structs/trip_options.rb +82 -24
- data/lib/gillbus/structs/trip_service.rb +16 -1
- data/lib/gillbus/tickets_booking.rb +34 -0
- data/lib/gillbus/version.rb +1 -1
- data/lib/gillbus.rb +31 -3
- data/test/error_test.rb +1 -1
- data/test/find_order_test.rb +16 -0
- data/test/get_required_fields_test.rb +77 -0
- data/test/get_trip_seats_test.rb +36 -0
- data/test/get_trip_segments_test.rb +1 -0
- data/test/parse_trip_options_test.rb +92 -0
- data/test/parse_trip_test.rb +25 -0
- data/test/responses/findOrder.xml +8 -0
- data/test/responses/getRequiredFieldsWithOneLuggage.xml +28 -0
- data/test/responses/getRequiredFieldsWithTwoLuggageSegments.xml +40 -0
- data/test/responses/getRequiredFieldsWithoutLuggage.xml +23 -0
- data/test/responses/getTripSeats-back-seats.xml +1192 -0
- data/test/responses/getTripSeats-two-floors.xml +1122 -0
- data/test/responses/getTripSeats.xml +70 -0
- data/test/responses/legacy_trip.yml +120 -0
- data/test/responses/legacy_trip_2.yml +217 -0
- data/test/responses/searchTrips-full-carriers-info.xml +231 -0
- data/test/responses/searchTrips-new-options-format.xml +244 -0
- data/test/responses/searchTrips-prod.xml +5 -0
- data/test/responses/searchTrips-round-trip-offers.xml +2016 -0
- data/test/responses/searchTripsNearby.xml +707 -0
- data/test/responses/ticketsBooking.xml +1 -0
- data/test/search_nearby_trips_test.rb +18 -0
- data/test/search_trips_test.rb +93 -0
- data/test/tickets_booking_test.rb +63 -0
- metadata +49 -13
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SearchNearbyTripsRequestTest < Minitest::Test
|
4
|
+
def get_trips_with_nearby_cities
|
5
|
+
Gillbus::SearchTripNearbyCities::Response.parse_string(File.read('test/responses/searchTripsNearby.xml'))
|
6
|
+
end
|
7
|
+
|
8
|
+
def test_trips_with_nearby_cities
|
9
|
+
response = get_trips_with_nearby_cities
|
10
|
+
assert response.completed
|
11
|
+
trip = response.trips.first
|
12
|
+
assert_equal 'Москва', trip.start_city_name
|
13
|
+
assert_equal 'Ярославль', trip.end_city_name
|
14
|
+
assert_equal '465.5 RUB'.to_money, trip.total_cost
|
15
|
+
assert_equal '"ОднаКасса" ООО', trip.carrier_name
|
16
|
+
assert_equal '09:00', trip.start_time
|
17
|
+
end
|
18
|
+
end
|
data/test/search_trips_test.rb
CHANGED
@@ -6,6 +6,7 @@ class SearchTripsRequestTest < Minitest::Test
|
|
6
6
|
start_date_search: Date.new(2013, 2, 4),
|
7
7
|
selected_modes: [:avia, :connections],
|
8
8
|
round_trip: true,
|
9
|
+
limit_segment_trip_show: 3,
|
9
10
|
passengers: [
|
10
11
|
{
|
11
12
|
birthday: Date.parse('1990-01-01'),
|
@@ -28,6 +29,7 @@ class SearchTripsRequestTest < Minitest::Test
|
|
28
29
|
startDateSearch: '04.02.2013',
|
29
30
|
selectedModes: '3;8',
|
30
31
|
roundTrip: '1',
|
32
|
+
limitSegmentTripShow: 3,
|
31
33
|
passenger0birthday: '01.01.1990',
|
32
34
|
passenger0studentTicket: 'STUDENTTICKET#1',
|
33
35
|
passenger0studentYear: 1,
|
@@ -53,6 +55,10 @@ class SearchTripsResponseTest < Minitest::Test
|
|
53
55
|
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-prod.xml'))
|
54
56
|
end
|
55
57
|
|
58
|
+
def get_successful_search_trips_with_new_options_format
|
59
|
+
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-new-options-format.xml'))
|
60
|
+
end
|
61
|
+
|
56
62
|
def get_successful_search_trips_with_bad_data
|
57
63
|
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-prod-invalid.xml'))
|
58
64
|
end
|
@@ -65,6 +71,14 @@ class SearchTripsResponseTest < Minitest::Test
|
|
65
71
|
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-insurance.xml'))
|
66
72
|
end
|
67
73
|
|
74
|
+
def get_trips_with_round_trip_offers
|
75
|
+
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-round-trip-offers.xml'))
|
76
|
+
end
|
77
|
+
|
78
|
+
def get_trips_with_full_carriers_info
|
79
|
+
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-full-carriers-info.xml'))
|
80
|
+
end
|
81
|
+
|
68
82
|
def test_empty_completed
|
69
83
|
response = get_empty_search_trips
|
70
84
|
assert response.completed
|
@@ -84,6 +98,7 @@ class SearchTripsResponseTest < Minitest::Test
|
|
84
98
|
|
85
99
|
def test_fields_parsing
|
86
100
|
response = get_successful_search_trips
|
101
|
+
assert_equal '3451212695530327295', response.trips.first.id
|
87
102
|
assert_equal Date.new(2014, 8, 23), response.trips.first.start_date
|
88
103
|
assert_equal Money.new(1410_00, 'RUB'), response.trips.first.total_cost
|
89
104
|
assert_equal Money.new(1410_00, 'RUB'), response.trips.first.tariffs.first.cost
|
@@ -97,6 +112,8 @@ class SearchTripsResponseTest < Minitest::Test
|
|
97
112
|
assert_equal ['cause 1'], response.trips[1].tariffs.first.return_cause.map(&:cause)
|
98
113
|
assert_equal true, response.trips[1].tariffs.first.is_exclusive_price
|
99
114
|
assert_equal 'http://example.com/123', response.trips.first.redirect_url
|
115
|
+
assert_equal 0, response.trips.first.bus_floors_number
|
116
|
+
assert_equal 2, response.trips.last.bus_floors_number
|
100
117
|
end
|
101
118
|
|
102
119
|
def test_start_at_parsing
|
@@ -149,6 +166,60 @@ class SearchTripsResponseTest < Minitest::Test
|
|
149
166
|
'Трансфер',
|
150
167
|
'Cкидка при покупке раунд-трипа',
|
151
168
|
]
|
169
|
+
titckets_options = [
|
170
|
+
'ЭЛЕКТРОННЫЙ БИЛЕТ. Печать билета не требуется!',
|
171
|
+
]
|
172
|
+
titckets_options_ids = [7]
|
173
|
+
|
174
|
+
assert_equal services.values, options.services.map(&:name)
|
175
|
+
assert_equal services.keys, options.services.map(&:id)
|
176
|
+
assert_equal luggage_options, options.luggage
|
177
|
+
assert_equal seating_options, options.seating
|
178
|
+
assert_equal technical_stops, options.technical_stops
|
179
|
+
assert_equal critical_info, options.critical_info
|
180
|
+
assert_equal resource_options, options.resource_options
|
181
|
+
assert_equal other_options, options.other
|
182
|
+
assert_equal titckets_options, options.tickets.map(&:text)
|
183
|
+
assert_equal titckets_options_ids, options.tickets.map(&:id)
|
184
|
+
assert options.advertising
|
185
|
+
assert options.busfor_recommend
|
186
|
+
end
|
187
|
+
|
188
|
+
def test_new_options_format
|
189
|
+
response = get_successful_search_trips_with_new_options_format
|
190
|
+
options = response.trips.first.options
|
191
|
+
|
192
|
+
services = {
|
193
|
+
1 => 'Кофе',
|
194
|
+
15 => 'Wi-Fi',
|
195
|
+
}
|
196
|
+
luggage_options = [
|
197
|
+
'В стоимость входит провоз 2 единиц багажа свыше 80 кг.',
|
198
|
+
'Ручная кладь 20см x 40см x 30см входит в стоимость билета.',
|
199
|
+
'Превышение по багажу оплачивается в размере 1% от стоимости тарифа.',
|
200
|
+
]
|
201
|
+
seating_options = [
|
202
|
+
'Свободная рассадка.',
|
203
|
+
]
|
204
|
+
technical_stops = [
|
205
|
+
'Технические остановки осуществляются каждые 2-3 часа.',
|
206
|
+
]
|
207
|
+
critical_info = [
|
208
|
+
"Внимание! Ознакомьтесь со списком стран, въезд в которые ограничен в связи с коронавирусом >> https://busfor.com/ru/blog/covid-19-updates",
|
209
|
+
"в связи с дорожными условиями, возможно отклонение в расписании движения в пределах 1час30.",
|
210
|
+
]
|
211
|
+
resource_options = [
|
212
|
+
'Посадка начинается за 10 мин.',
|
213
|
+
]
|
214
|
+
other_options = [
|
215
|
+
'Переправа',
|
216
|
+
'Трансфер',
|
217
|
+
'Cкидка при покупке раунд-трипа',
|
218
|
+
]
|
219
|
+
titckets_options = [
|
220
|
+
'ЭЛЕКТРОННЫЙ БИЛЕТ. Печать билета не требуется!',
|
221
|
+
]
|
222
|
+
titckets_options_ids = [7]
|
152
223
|
|
153
224
|
assert_equal services.values, options.services.map(&:name)
|
154
225
|
assert_equal services.keys, options.services.map(&:id)
|
@@ -158,6 +229,8 @@ class SearchTripsResponseTest < Minitest::Test
|
|
158
229
|
assert_equal critical_info, options.critical_info
|
159
230
|
assert_equal resource_options, options.resource_options
|
160
231
|
assert_equal other_options, options.other
|
232
|
+
assert_equal titckets_options, options.tickets.map(&:text)
|
233
|
+
assert_equal titckets_options_ids, options.tickets.map(&:id)
|
161
234
|
assert options.advertising
|
162
235
|
assert options.busfor_recommend
|
163
236
|
end
|
@@ -234,4 +307,24 @@ class SearchTripsResponseTest < Minitest::Test
|
|
234
307
|
assert_equal 1, tariff.insurance_id
|
235
308
|
assert_equal '100000 RUB'.to_money, tariff.insurance_sum
|
236
309
|
end
|
310
|
+
|
311
|
+
def test_trips_with_round_trip_offers
|
312
|
+
response = get_trips_with_round_trip_offers
|
313
|
+
|
314
|
+
assert response.completed
|
315
|
+
assert_equal 1, response.back_trips.count
|
316
|
+
assert_equal 3, response.trips.count
|
317
|
+
assert_equal response.back_trips.first.id, response.trips.first.id
|
318
|
+
end
|
319
|
+
|
320
|
+
def test_trips_with_full_carriers_info
|
321
|
+
response = get_trips_with_full_carriers_info
|
322
|
+
trip = response.trips.first
|
323
|
+
|
324
|
+
assert_equal "RU \"Еременчук Е.А.\" ИП", trip.carrier_legal_name
|
325
|
+
assert_equal "260802027265", trip.carrier_inn
|
326
|
+
assert_equal "г СНТ Лилия, Московская, Наро-фоминский", trip.carrier_address_fact
|
327
|
+
assert_equal "г СНТ Лилия, Московская, Наро-фоминский", trip.carrier_address_leg
|
328
|
+
assert_equal "316265100057314", trip.carrier_egrul_egis
|
329
|
+
end
|
237
330
|
end
|
@@ -12,4 +12,67 @@ class TicketsBookingTest < Minitest::Test
|
|
12
12
|
def test_total
|
13
13
|
assert_equal(Money.new(110_00, 'UAH'), tickets_booking.tickets.first.total_amount)
|
14
14
|
end
|
15
|
+
|
16
|
+
def test_params_generation_with_no_luggage
|
17
|
+
request = Gillbus::TicketsBooking::Request.new(
|
18
|
+
passengers: [
|
19
|
+
{ },
|
20
|
+
{ },
|
21
|
+
],
|
22
|
+
)
|
23
|
+
expected_params = {
|
24
|
+
passenger0discountValue: '0.0',
|
25
|
+
passenger1discountValue: '0.0',
|
26
|
+
}
|
27
|
+
assert_equal expected_params, request.params
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_params_generation_with_luggage_with_one_segment
|
31
|
+
request = Gillbus::TicketsBooking::Request.new(
|
32
|
+
passengers: [
|
33
|
+
{
|
34
|
+
luggage: [1],
|
35
|
+
},
|
36
|
+
{
|
37
|
+
luggage: [2],
|
38
|
+
}
|
39
|
+
],
|
40
|
+
)
|
41
|
+
expected_params = {
|
42
|
+
passenger0discountValue: '0.0',
|
43
|
+
passenger0baggageCount: 1,
|
44
|
+
passenger1discountValue: '0.0',
|
45
|
+
passenger1baggageCount: 2,
|
46
|
+
}
|
47
|
+
assert_equal expected_params, request.params
|
48
|
+
end
|
49
|
+
|
50
|
+
def test_params_generation_with_baggage_with_two_segments
|
51
|
+
request = Gillbus::TicketsBooking::Request.new(
|
52
|
+
passengers: [
|
53
|
+
{
|
54
|
+
segments_luggage: [0, 1],
|
55
|
+
},
|
56
|
+
{
|
57
|
+
segments_luggage: [1, 0],
|
58
|
+
}
|
59
|
+
],
|
60
|
+
)
|
61
|
+
expected_params = {
|
62
|
+
passenger0discountValue: '0.0',
|
63
|
+
passenger0segment0baggageCount: 0,
|
64
|
+
passenger0segment1baggageCount: 1,
|
65
|
+
passenger1discountValue: '0.0',
|
66
|
+
passenger1segment0baggageCount: 1,
|
67
|
+
passenger1segment1baggageCount: 0,
|
68
|
+
}
|
69
|
+
assert_equal expected_params, request.params
|
70
|
+
end
|
71
|
+
|
72
|
+
def test_parse_is_luggage_field
|
73
|
+
response = tickets_booking
|
74
|
+
ticket = response.tickets.first
|
75
|
+
|
76
|
+
assert_equal true, ticket.is_luggage
|
77
|
+
end
|
15
78
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gillbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey "codesnik" Trofimenko
|
8
8
|
- Kirill Platonov
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-11-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -68,19 +68,19 @@ dependencies:
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: ox
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - "
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
76
|
+
version: '2.9'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
83
|
+
version: '2.9'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: bundler
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: 0.51.0
|
154
|
-
description:
|
154
|
+
description:
|
155
155
|
email:
|
156
156
|
- aronaxis@gmail.com
|
157
157
|
- mail@kirillplatonov.com
|
@@ -178,6 +178,7 @@ files:
|
|
178
178
|
- lib/gillbus/find_order.rb
|
179
179
|
- lib/gillbus/get_all_cities.rb
|
180
180
|
- lib/gillbus/get_bus_image.rb
|
181
|
+
- lib/gillbus/get_carriers.rb
|
181
182
|
- lib/gillbus/get_cities.rb
|
182
183
|
- lib/gillbus/get_countries.rb
|
183
184
|
- lib/gillbus/get_dates_new.rb
|
@@ -196,11 +197,16 @@ files:
|
|
196
197
|
- lib/gillbus/parse_error.rb
|
197
198
|
- lib/gillbus/reserve_tickets.rb
|
198
199
|
- lib/gillbus/return_position.rb
|
200
|
+
- lib/gillbus/return_position_forced.rb
|
201
|
+
- lib/gillbus/search_nearby_trips.rb
|
199
202
|
- lib/gillbus/search_trips.rb
|
200
203
|
- lib/gillbus/session_login.rb
|
201
204
|
- lib/gillbus/structs/bus_photo.rb
|
205
|
+
- lib/gillbus/structs/carrier.rb
|
202
206
|
- lib/gillbus/structs/commission.rb
|
203
207
|
- lib/gillbus/structs/item.rb
|
208
|
+
- lib/gillbus/structs/luggage.rb
|
209
|
+
- lib/gillbus/structs/nearby_cities_trip.rb
|
204
210
|
- lib/gillbus/structs/passenger_discount.rb
|
205
211
|
- lib/gillbus/structs/point.rb
|
206
212
|
- lib/gillbus/structs/return_cause.rb
|
@@ -209,6 +215,7 @@ files:
|
|
209
215
|
- lib/gillbus/structs/tariff.rb
|
210
216
|
- lib/gillbus/structs/tariff/return_cause.rb
|
211
217
|
- lib/gillbus/structs/ticket.rb
|
218
|
+
- lib/gillbus/structs/tickets_option.rb
|
212
219
|
- lib/gillbus/structs/timetable_segment.rb
|
213
220
|
- lib/gillbus/structs/timetable_trip.rb
|
214
221
|
- lib/gillbus/structs/trip.rb
|
@@ -233,10 +240,13 @@ files:
|
|
233
240
|
- test/get_countries_test.rb
|
234
241
|
- test/get_dates_new_test.rb
|
235
242
|
- test/get_order_ticket_test.rb
|
243
|
+
- test/get_required_fields_test.rb
|
236
244
|
- test/get_time_table_test.rb
|
237
245
|
- test/get_trip_seats_test.rb
|
238
246
|
- test/get_trip_segments_test.rb
|
239
247
|
- test/lock_seats_test.rb
|
248
|
+
- test/parse_trip_options_test.rb
|
249
|
+
- test/parse_trip_test.rb
|
240
250
|
- test/reserve_tickets_test.rb
|
241
251
|
- test/responses/bookingDifferentCurrencies.xml
|
242
252
|
- test/responses/buyBooking.xml
|
@@ -248,27 +258,39 @@ files:
|
|
248
258
|
- test/responses/getCities.xml
|
249
259
|
- test/responses/getCountries.xml
|
250
260
|
- test/responses/getOrderTicket.xml
|
261
|
+
- test/responses/getRequiredFieldsWithOneLuggage.xml
|
262
|
+
- test/responses/getRequiredFieldsWithTwoLuggageSegments.xml
|
263
|
+
- test/responses/getRequiredFieldsWithoutLuggage.xml
|
251
264
|
- test/responses/getTimeTable.xml
|
265
|
+
- test/responses/getTripSeats-back-seats.xml
|
252
266
|
- test/responses/getTripSeats-one-empty-segment.xml
|
253
267
|
- test/responses/getTripSeats-segments.xml
|
268
|
+
- test/responses/getTripSeats-two-floors.xml
|
254
269
|
- test/responses/getTripSeats.xml
|
255
270
|
- test/responses/getTripSegments.xml
|
271
|
+
- test/responses/legacy_trip.yml
|
272
|
+
- test/responses/legacy_trip_2.yml
|
256
273
|
- test/responses/lockSeats.xml
|
257
274
|
- test/responses/reserveTickets.xml
|
258
275
|
- test/responses/reserveTickets.yml
|
259
276
|
- test/responses/returnPositionFailure.xml
|
260
277
|
- test/responses/returnPositionSuccess.xml
|
261
278
|
- test/responses/searchTrips-empty.xml
|
279
|
+
- test/responses/searchTrips-full-carriers-info.xml
|
262
280
|
- test/responses/searchTrips-insurance.xml
|
281
|
+
- test/responses/searchTrips-new-options-format.xml
|
263
282
|
- test/responses/searchTrips-prod-invalid.xml
|
264
283
|
- test/responses/searchTrips-prod.xml
|
284
|
+
- test/responses/searchTrips-round-trip-offers.xml
|
265
285
|
- test/responses/searchTrips-segments-roundtrip.xml
|
266
286
|
- test/responses/searchTrips-segments.xml
|
287
|
+
- test/responses/searchTripsNearby.xml
|
267
288
|
- test/responses/sessionLogin.xml
|
268
289
|
- test/responses/ticketsBooking.xml
|
269
290
|
- test/responses/ticketsBookingAllCommissions.xml
|
270
291
|
- test/responses/very_empty.xml
|
271
292
|
- test/return_position_test.rb
|
293
|
+
- test/search_nearby_trips_test.rb
|
272
294
|
- test/search_trips_test.rb
|
273
295
|
- test/session_login_test.rb
|
274
296
|
- test/test_helper.rb
|
@@ -277,7 +299,7 @@ homepage: http://gillbus.com/
|
|
277
299
|
licenses:
|
278
300
|
- MIT
|
279
301
|
metadata: {}
|
280
|
-
post_install_message:
|
302
|
+
post_install_message:
|
281
303
|
rdoc_options: []
|
282
304
|
require_paths:
|
283
305
|
- lib
|
@@ -292,9 +314,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
314
|
- !ruby/object:Gem::Version
|
293
315
|
version: '0'
|
294
316
|
requirements: []
|
295
|
-
|
296
|
-
|
297
|
-
signing_key:
|
317
|
+
rubygems_version: 3.0.3
|
318
|
+
signing_key:
|
298
319
|
specification_version: 4
|
299
320
|
summary: Driver for Gillbus IDS API
|
300
321
|
test_files:
|
@@ -309,10 +330,13 @@ test_files:
|
|
309
330
|
- test/get_countries_test.rb
|
310
331
|
- test/get_dates_new_test.rb
|
311
332
|
- test/get_order_ticket_test.rb
|
333
|
+
- test/get_required_fields_test.rb
|
312
334
|
- test/get_time_table_test.rb
|
313
335
|
- test/get_trip_seats_test.rb
|
314
336
|
- test/get_trip_segments_test.rb
|
315
337
|
- test/lock_seats_test.rb
|
338
|
+
- test/parse_trip_options_test.rb
|
339
|
+
- test/parse_trip_test.rb
|
316
340
|
- test/reserve_tickets_test.rb
|
317
341
|
- test/responses/bookingDifferentCurrencies.xml
|
318
342
|
- test/responses/buyBooking.xml
|
@@ -324,27 +348,39 @@ test_files:
|
|
324
348
|
- test/responses/getCities.xml
|
325
349
|
- test/responses/getCountries.xml
|
326
350
|
- test/responses/getOrderTicket.xml
|
351
|
+
- test/responses/getRequiredFieldsWithOneLuggage.xml
|
352
|
+
- test/responses/getRequiredFieldsWithTwoLuggageSegments.xml
|
353
|
+
- test/responses/getRequiredFieldsWithoutLuggage.xml
|
327
354
|
- test/responses/getTimeTable.xml
|
355
|
+
- test/responses/getTripSeats-back-seats.xml
|
328
356
|
- test/responses/getTripSeats-one-empty-segment.xml
|
329
357
|
- test/responses/getTripSeats-segments.xml
|
358
|
+
- test/responses/getTripSeats-two-floors.xml
|
330
359
|
- test/responses/getTripSeats.xml
|
331
360
|
- test/responses/getTripSegments.xml
|
361
|
+
- test/responses/legacy_trip.yml
|
362
|
+
- test/responses/legacy_trip_2.yml
|
332
363
|
- test/responses/lockSeats.xml
|
333
364
|
- test/responses/reserveTickets.xml
|
334
365
|
- test/responses/reserveTickets.yml
|
335
366
|
- test/responses/returnPositionFailure.xml
|
336
367
|
- test/responses/returnPositionSuccess.xml
|
337
368
|
- test/responses/searchTrips-empty.xml
|
369
|
+
- test/responses/searchTrips-full-carriers-info.xml
|
338
370
|
- test/responses/searchTrips-insurance.xml
|
371
|
+
- test/responses/searchTrips-new-options-format.xml
|
339
372
|
- test/responses/searchTrips-prod-invalid.xml
|
340
373
|
- test/responses/searchTrips-prod.xml
|
374
|
+
- test/responses/searchTrips-round-trip-offers.xml
|
341
375
|
- test/responses/searchTrips-segments-roundtrip.xml
|
342
376
|
- test/responses/searchTrips-segments.xml
|
377
|
+
- test/responses/searchTripsNearby.xml
|
343
378
|
- test/responses/sessionLogin.xml
|
344
379
|
- test/responses/ticketsBooking.xml
|
345
380
|
- test/responses/ticketsBookingAllCommissions.xml
|
346
381
|
- test/responses/very_empty.xml
|
347
382
|
- test/return_position_test.rb
|
383
|
+
- test/search_nearby_trips_test.rb
|
348
384
|
- test/search_trips_test.rb
|
349
385
|
- test/session_login_test.rb
|
350
386
|
- test/test_helper.rb
|