gillbus 0.18.3 → 0.18.4

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: f286e9589d91443f37e13548fc7914d305285b0e
4
- data.tar.gz: 0b8afadc2c1496d752102e04638e256d23a7ef76
3
+ metadata.gz: 84d260ee35702d87945cd4dea9dd6ef8dc5392cf
4
+ data.tar.gz: c0e68d626e532121056d27d46624767cf4ac8f62
5
5
  SHA512:
6
- metadata.gz: 44c6c4108bbce6afada0e9a94c2a18231ec4671f9c9aff2b34aa1ed6995bf5560e105d2d8c5f5b4f1a047925b15b725663a1886a8b1c1aa0ba1eb3b64aab1a30
7
- data.tar.gz: a2251447771903874d594ffbb7e29e286b6047c438407ed83508e0d25a6f5dd168202d4553aea117600ea4c2f4408d7d14542a22637269adae3881f358fcab6f
6
+ metadata.gz: af8ad57648d461d595e19db39f0c03936cac01b184488f3321102d1bd29a79a4d556b06934986faad835aa135fd4957d340aed1ab421cafdb675853b92aa633f
7
+ data.tar.gz: 789b5380fcfbc3091464c901dbe8d36ba5583f87fcb23a5d73ed15cc2e54dee867592cf893040b931a3a5bb1660bee6e638c4080ce87086c984f9abc4b879bdf
@@ -65,6 +65,7 @@ class Gillbus
65
65
 
66
66
  require 'gillbus/structs/seat'
67
67
  require 'gillbus/structs/item'
68
+ require 'gillbus/structs/carrier'
68
69
 
69
70
  require 'gillbus/parse_error'
70
71
  require 'gillbus/base_request'
@@ -97,4 +98,5 @@ class Gillbus
97
98
  require 'gillbus/logout'
98
99
  require 'gillbus/return_position'
99
100
  require 'gillbus/return_position_forced'
101
+ require 'gillbus/get_carriers'
100
102
  end
@@ -0,0 +1,13 @@
1
+ class Gillbus
2
+ module GetCarriers
3
+ Gillbus.register self, :get_carriers
4
+
5
+ class Request < BaseRequest
6
+ def path; '/online2/getCarriers' end
7
+ end
8
+
9
+ class Response < BaseResponse
10
+ field :carriers, [Carrier], key: 'CARRIER'
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,10 @@
1
+ class Gillbus
2
+ class Carrier
3
+ extend Fields
4
+ include UpdateAttrs
5
+
6
+ field :id
7
+ field :name
8
+ field :inn
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  class Gillbus
2
- VERSION = '0.18.3'.freeze
2
+ VERSION = '0.18.4'.freeze
3
3
  end
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.18.3
4
+ version: 0.18.4
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: 2018-06-22 00:00:00.000000000 Z
12
+ date: 2018-07-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -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
@@ -200,6 +201,7 @@ files:
200
201
  - lib/gillbus/search_trips.rb
201
202
  - lib/gillbus/session_login.rb
202
203
  - lib/gillbus/structs/bus_photo.rb
204
+ - lib/gillbus/structs/carrier.rb
203
205
  - lib/gillbus/structs/commission.rb
204
206
  - lib/gillbus/structs/item.rb
205
207
  - lib/gillbus/structs/passenger_discount.rb
@@ -296,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
296
298
  version: '0'
297
299
  requirements: []
298
300
  rubyforge_project:
299
- rubygems_version: 2.6.13
301
+ rubygems_version: 2.5.2
300
302
  signing_key:
301
303
  specification_version: 4
302
304
  summary: Driver for Gillbus IDS API
@@ -354,4 +356,3 @@ test_files:
354
356
  - test/session_login_test.rb
355
357
  - test/test_helper.rb
356
358
  - test/tickets_booking_test.rb
357
- has_rdoc: