gillbus 0.14.2 → 0.14.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 982001d704d3ac752218a336703baa55977012b4
4
- data.tar.gz: 91230ec7c43fa47809666bc893bbadedf1977ac8
3
+ metadata.gz: c1f9c1f664641532022e161da84efda95e922158
4
+ data.tar.gz: 766f12829e5cd9c73da4c68ae71dc37460cc07c1
5
5
  SHA512:
6
- metadata.gz: 81ed8c643d806c977a1daa6c50b111e6b60fb4978efcc43296f0d433ef12ef59ab4c6b587da3e9d848f7b99a2c11a43941080711968dac5fec612b7a586a1b37
7
- data.tar.gz: bab48717da4188e5a8500291c104c4bdd740eb7211dd3fa09c2bfe4eb9bea832d229938928c56ec17940dda3877c6aed46f33645357030ac5564cad6b87e52c4
6
+ metadata.gz: 37cbb7cc1895c820d3ca9aced318b7c5fbb862e6e5b7a0473b7767f0a9360e310e6b7d188f4ee07f1a9bfc1657d285b397da52ad37619b88cb30e191a53a1df6
7
+ data.tar.gz: ac9a90945e9dabe5a62c0b483476a98a504c22c84549f8e9c588c4050fc617ef698bf8c7bb5bb1f28ed9197fd85593dd450b1c819f9d03ee94b2ce7bf0d941e0
@@ -131,6 +131,9 @@ class Gillbus
131
131
  # => "1100"
132
132
  field :total_cost, :money
133
133
 
134
+ # => "false"
135
+ field :fake_time_in_road, :bool
136
+
134
137
  # => "RUB"
135
138
  field :currency
136
139
 
@@ -1,3 +1,3 @@
1
1
  class Gillbus
2
- VERSION = "0.14.2"
2
+ VERSION = "0.14.3"
3
3
  end
@@ -33,6 +33,7 @@
33
33
  <TRIP_MODE>1</TRIP_MODE>
34
34
  <IMAGE_URL>null</IMAGE_URL>
35
35
  <START_POINT_TYPE>null</START_POINT_TYPE>
36
+ <FAKE_TIME_IN_ROAD>true</FAKE_TIME_IN_ROAD>
36
37
  <VEHICLE_DESCRIPTION>null</VEHICLE_DESCRIPTION>
37
38
  <VEHICLE_FEATURES>null</VEHICLE_FEATURES>
38
39
  <TOTAL_COST>1410.0</TOTAL_COST>
@@ -40,6 +40,7 @@
40
40
  <SPECIAL_CONDITIONS/>
41
41
  <IMAGE_URL>null</IMAGE_URL>
42
42
  <START_POINT_TYPE>null</START_POINT_TYPE>
43
+ <FAKE_TIME_IN_ROAD>false</FAKE_TIME_IN_ROAD>
43
44
  <VEHICLE_DESCRIPTION>null</VEHICLE_DESCRIPTION>
44
45
  <VEHICLE_FEATURES>null</VEHICLE_FEATURES>
45
46
  <TOTAL_COST>41295.89</TOTAL_COST>
@@ -44,6 +44,7 @@
44
44
  <VEHICLE_FEATURES>null</VEHICLE_FEATURES>
45
45
  <TOTAL_COST>1160</TOTAL_COST>
46
46
  <CURRENCY>UAH</CURRENCY>
47
+ <FAKE_TIME_IN_ROAD>true</FAKE_TIME_IN_ROAD>
47
48
  <CURRENCY_CODE>980</CURRENCY_CODE>
48
49
  <SEGMENT>
49
50
  <SEGMENT_NUMBER>0</SEGMENT_NUMBER>
@@ -79,6 +79,7 @@ class SearchTripsResponseTest < Minitest::Test
79
79
  assert_equal Money.new(1410_00, "RUB"), response.trips.first.tariffs.first.cost
80
80
  assert_equal 'Europe/Moscow', response.trips.first.start_timezone
81
81
  assert_equal 'Europe/Moscow', response.trips.first.end_timezone
82
+ assert_equal true, response.trips.first.fake_time_in_road
82
83
  end
83
84
 
84
85
  def test_faking_response
@@ -96,6 +97,7 @@ class SearchTripsResponseTest < Minitest::Test
96
97
  assert_equal 2, response.trips.size
97
98
  assert_equal 'Europe/Kiev', response.trips.first.start_timezone
98
99
  assert_equal 'Europe/Kiev', response.trips.first.end_timezone
100
+ assert_equal true, response.trips.first.fake_time_in_road
99
101
  assert_equal 2, response.trips.first.segments.size
100
102
  end
101
103
 
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.2
4
+ version: 0.14.3
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-27 00:00:00.000000000 Z
12
+ date: 2017-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_xml