gillbus 0.14.0 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gillbus/structs/trip.rb +6 -0
- data/lib/gillbus/version.rb +1 -1
- data/test/responses/searchTrips-prod.xml +2 -0
- data/test/responses/searchTrips-segments-roundtrip.xml +2 -0
- data/test/responses/searchTrips-segments.xml +2 -0
- data/test/search_trips_test.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3eb3b673e3386cbf4c8aff9b1c5545f84400ade4
|
4
|
+
data.tar.gz: 18d33afdcdff288e027aa7c6656d3e2d3ec94302
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbe7b684ad9b66b4d273b372c0605221d00d9af17fe74f6cdc35b408faf51f5ee5fdc9646ad9250934bc86430d2b9fee1e0e8b19634ff3fe7c92d46c8aaa4abf
|
7
|
+
data.tar.gz: 8029fa4b0c01861c84f9f2b7a0eb23f8dde32e5eec5db5ba6b1e39d29bd1d61a48bc87e7f50b917cb6a70d55839e644e84c89d02ce30fde1f0f68f1ebe4c95cc
|
data/lib/gillbus/structs/trip.rb
CHANGED
@@ -29,9 +29,15 @@ class Gillbus
|
|
29
29
|
# => "22:50"
|
30
30
|
field :start_time, :time
|
31
31
|
|
32
|
+
# => "Europe/Moscow"
|
33
|
+
field :start_timezone
|
34
|
+
|
32
35
|
# => "08:00"
|
33
36
|
field :end_time, :time
|
34
37
|
|
38
|
+
# => "Europe/Kiev"
|
39
|
+
field :end_timezone
|
40
|
+
|
35
41
|
# => "Сетра S 315 НDH"
|
36
42
|
field :bus_model
|
37
43
|
|
data/lib/gillbus/version.rb
CHANGED
@@ -9,7 +9,9 @@
|
|
9
9
|
<START_DATE>23.08.2014</START_DATE>
|
10
10
|
<END_DATE>24.08.2014</END_DATE>
|
11
11
|
<START_TIME>19:00</START_TIME>
|
12
|
+
<START_TIMEZONE>Europe/Moscow</START_TIMEZONE>
|
12
13
|
<END_TIME>06:30</END_TIME>
|
14
|
+
<END_TIMEZONE>Europe/Moscow</END_TIMEZONE>
|
13
15
|
<BUS_MODEL/>
|
14
16
|
<PLACES_COUNT>18</PLACES_COUNT>
|
15
17
|
<FREE_PLACES_COUNT>3</FREE_PLACES_COUNT>
|
@@ -9,7 +9,9 @@
|
|
9
9
|
<START_DATE>27.06.2015</START_DATE>
|
10
10
|
<END_DATE>02.07.2015</END_DATE>
|
11
11
|
<START_TIME>05:30</START_TIME>
|
12
|
+
<START_TIMEZONE>Europe/Kiev</START_TIMEZONE>
|
12
13
|
<END_TIME>18:30</END_TIME>
|
14
|
+
<END_TIMEZONE>Europe/Kiev</END_TIMEZONE>
|
13
15
|
<BUS_MODEL>MAN(VIP), Neoplan(Free), Volkswagen</BUS_MODEL>
|
14
16
|
<BUS_CLASS/>
|
15
17
|
<TRIP_SEATS_MAP>true</TRIP_SEATS_MAP>
|
@@ -9,7 +9,9 @@
|
|
9
9
|
<START_DATE>26.06.2015</START_DATE>
|
10
10
|
<END_DATE>27.06.2015</END_DATE>
|
11
11
|
<START_TIME>08:30</START_TIME>
|
12
|
+
<START_TIMEZONE>Europe/Kiev</START_TIMEZONE>
|
12
13
|
<END_TIME>16:00</END_TIME>
|
14
|
+
<END_TIMEZONE>Europe/Kiev</END_TIMEZONE>
|
13
15
|
<BUS_MODEL>Neoplan(Free), Setra</BUS_MODEL>
|
14
16
|
<BUS_CLASS/>
|
15
17
|
<TRIP_SEATS_MAP>true</TRIP_SEATS_MAP>
|
data/test/search_trips_test.rb
CHANGED
@@ -73,6 +73,8 @@ class SearchTripsResponseTest < Minitest::Test
|
|
73
73
|
assert_equal Date.new(2014,8,23), response.trips.first.start_date
|
74
74
|
assert_equal Money.new(1410_00, "RUB"), response.trips.first.total_cost
|
75
75
|
assert_equal Money.new(1410_00, "RUB"), response.trips.first.tariffs.first.cost
|
76
|
+
assert_equal 'Europe/Moscow', response.trips.first.start_timezone
|
77
|
+
assert_equal 'Europe/Moscow', response.trips.first.end_timezone
|
76
78
|
end
|
77
79
|
|
78
80
|
def test_faking_response
|
@@ -88,6 +90,8 @@ class SearchTripsResponseTest < Minitest::Test
|
|
88
90
|
response = get_trips_with_segments
|
89
91
|
assert response.completed
|
90
92
|
assert_equal 2, response.trips.size
|
93
|
+
assert_equal 'Europe/Kiev', response.trips.first.start_timezone
|
94
|
+
assert_equal 'Europe/Kiev', response.trips.first.end_timezone
|
91
95
|
assert_equal 2, response.trips.first.segments.size
|
92
96
|
end
|
93
97
|
|
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.14.
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey "codesnik" Trofimenko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-03-
|
12
|
+
date: 2017-03-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_xml
|