gillbus 0.14.0 → 0.14.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
  SHA1:
3
- metadata.gz: 6e967c8446ef81abea1d78c2a65b347bf9f9cac7
4
- data.tar.gz: 3b6b92154b530f2c0cb9f2cdd1569df04142cecf
3
+ metadata.gz: 3eb3b673e3386cbf4c8aff9b1c5545f84400ade4
4
+ data.tar.gz: 18d33afdcdff288e027aa7c6656d3e2d3ec94302
5
5
  SHA512:
6
- metadata.gz: b4ecde0f8320dcee976b504543343c3b0790a2d0fd30586fc0ba77dd565b34b0fafbbfe4184f0d8d8930dcc9ae5f2cdd792637f5ff56d371179fe59489164703
7
- data.tar.gz: 5c7065a612da886f5c672a47e790ef26be481cd0bb16bed841eeffe08d6953ecaefc0af2042f67394490e9315c034aa035aef85c8f8f36d2e60e7efa6961dda5
6
+ metadata.gz: cbe7b684ad9b66b4d273b372c0605221d00d9af17fe74f6cdc35b408faf51f5ee5fdc9646ad9250934bc86430d2b9fee1e0e8b19634ff3fe7c92d46c8aaa4abf
7
+ data.tar.gz: 8029fa4b0c01861c84f9f2b7a0eb23f8dde32e5eec5db5ba6b1e39d29bd1d61a48bc87e7f50b917cb6a70d55839e644e84c89d02ce30fde1f0f68f1ebe4c95cc
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  class Gillbus
2
- VERSION = "0.14.0"
2
+ VERSION = "0.14.1"
3
3
  end
@@ -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>
@@ -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.0
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-16 00:00:00.000000000 Z
12
+ date: 2017-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_xml