gillbus 0.22.9 → 0.23.0

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
  SHA256:
3
- metadata.gz: b85dbfeb542cb41597bcaff503e35298c94742adcf937f536f41d26849c41f0b
4
- data.tar.gz: fe22b0ac687bf787630356475e001b40f8ecbeccb1f6a3560816b8663666a75d
3
+ metadata.gz: 1e8ed5ef5b87a0c94701d4f69508dc02fdef5926020e6eaafbe546f2f8d8a731
4
+ data.tar.gz: bd54a5348b8e3e26dd4fb8c6c0faa92c9f8d675a3b5f01a5cb9d04ba0c768f45
5
5
  SHA512:
6
- metadata.gz: 5bdc19f44370f737270f8220415b9c6ef927a7821e08d072bf2f778c6adbfe9b847a212b53a036b7ab226772bc1459cbab5d5be29337fb16bd5de11d89d61cd0
7
- data.tar.gz: 24b1d2cf5459a9f61bafa62adf9f2cdfd27c18562ca3bdb5f15afcdf306ed60e98f29e19444682f955d26380b5162adfd3b1d4d8e97c8cba11907b5d907952d0
6
+ metadata.gz: 2a340f90c4ba3df79cd8d4ae4a861b204454ef2bbe1d53907609d78efccd5f987dda6218ef56eb270777a90e0d599d4e9a2b3d4f46e028406239378bf4eb3478
7
+ data.tar.gz: 0a9b56dfa5e9a6fabcfd6d8248f7fafed3cd91de9c4f49b0670ae47abb573a1ba7551c7b9a71d01ed858ffce45913874d853c21f4cae5289823d595582d87740
@@ -181,6 +181,9 @@ class Gillbus
181
181
  # => "643"
182
182
  field :currency_code
183
183
 
184
+ # => "https://www.blablacar.com.ua/trip?source=PRO_PARTNER&id=..."
185
+ field :deep_link
186
+
184
187
  # => "1"
185
188
  field :bus_floors_number, :int
186
189
 
@@ -1,3 +1,3 @@
1
1
  class Gillbus
2
- VERSION = '0.22.9'.freeze
2
+ VERSION = '0.23.0'.freeze
3
3
  end
@@ -22,4 +22,15 @@ class ParseTripYAML < Minitest::Test
22
22
  "Добровольно, более чем за 2 ч., до отправления рейса. Ориентировочная сумма возврата 783.71RUB",
23
23
  "не менше ніж за 24 години до відправлення рейсу. Ориентировочная сумма возврата 888.2RUB"], response.tariffs.first.return_cause.map(&:cause)
24
24
  end
25
+
26
+ def deeplink_test_1
27
+ response = Gillbus::Trip.parse(YAML.load(File.read('test/responses/legacy_trip.yml')))
28
+ expected_causes = 'https://www.blablacar.com.ua/trip?source=PRO_PARTNER&amp;id=...'
29
+ assert_equal expected_causes, response.deep_link
30
+ end
31
+
32
+ def deeplink_test_2
33
+ response = Gillbus::Trip.parse(YAML.load(File.read('test/responses/legacy_trip_2.yml')))
34
+ assert_equal nil, response.deep_link
35
+ end
25
36
  end
@@ -51,6 +51,7 @@ VEHICLE_FEATURES: 'null'
51
51
  TOTAL_COST: '550.0'
52
52
  CURRENCY: RUB
53
53
  CURRENCY_CODE: '643'
54
+ DEEP_LINK: https://www.blablacar.com.ua/trip?source=PRO_PARTNER&amp;id=...
54
55
  TARIFF:
55
56
  SHORT_NAME: Y
56
57
  FULL_NAME: Базовый тариф
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.22.9
4
+ version: 0.23.0
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: 2022-11-02 00:00:00.000000000 Z
12
+ date: 2023-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -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
@@ -299,7 +299,7 @@ homepage: http://gillbus.com/
299
299
  licenses:
300
300
  - MIT
301
301
  metadata: {}
302
- post_install_message:
302
+ post_install_message:
303
303
  rdoc_options: []
304
304
  require_paths:
305
305
  - lib
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
315
315
  version: '0'
316
316
  requirements: []
317
317
  rubygems_version: 3.0.3
318
- signing_key:
318
+ signing_key:
319
319
  specification_version: 4
320
320
  summary: Driver for Gillbus IDS API
321
321
  test_files: