laximo 0.8 → 0.8.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
  SHA256:
3
- metadata.gz: 4dcca4e832fb957b9e61bdb79ccba0ee5a6053a762cf550d8cdc52901e08a090
4
- data.tar.gz: 5f7f98073c292fd76b13f84c59b490dfb1e04666718f3a5c4850b75674ed7b0d
3
+ metadata.gz: 28edc5878491fa8bfe606c59b36a6b3cb9b9250b90eb1171aab7cdc13bab79f6
4
+ data.tar.gz: 4d5b34d20dda9a0bfc1a9dab30da38c0d6c572a0e250764bcb9fade0d98476b6
5
5
  SHA512:
6
- metadata.gz: e023303eea541c70022f2af1ff580442e0b42815b43aa72e4f031c6761e7f26084375f4695cec7baf70bf7b3c0fc20cb7218a42f847f023d3acbc7b1eb3bc9e2
7
- data.tar.gz: 2db7ce7f5d48488f1cf2ea66bf5d11e91a63945c5223ecc74dd2f5f0f9422d863e7695fdc08bbb0837a59b84f09b4e8f0da2259ded52cd87cbf90cab2aebfaf3
6
+ metadata.gz: b5d7d83c22fb47de7a11ef338934a96f691295619b0b4bececb8057856adaf0b0f0a667f881c1557750c9684a5352afedafad3cb479f55ae70f281a32fc5426b
7
+ data.tar.gz: d0139defc10f55fdd03e01e1f85d7d8ffde67a7256e8ecbfee1a971edb512dc4473f37e221fa84c36755a59559e22d8533adc03479933271016d9b3882e30276
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 DansingBytes.ru
1
+ Copyright (c) 2015-2019 DansingBytes.ru
2
2
  All rights reserved.
3
3
 
4
4
  Author: Tyralion (piliaiev@gmail.com)
data/README.md CHANGED
@@ -48,26 +48,26 @@ Laximo.options.locale 'ru_RU'
48
48
  * `result` - возвращает массив хешей или пустой массив, если ничего не найдено, или если в процессе выполения произошла ошибка.
49
49
 
50
50
  ### Методы web-сервиса [Laximo.OEM](https://laximo.ru/oem/)
51
- * [Laximo.oem.list_catalogs(locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListCatalogs)
52
- * [Laximo.oem.get_catalog_info(catalog:, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetCatalogInfo)
51
+ * [Laximo.oem.list_catalogs(ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListCatalogs)
52
+ * [Laximo.oem.get_catalog_info(catalog:, ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetCatalogInfo)
53
53
  * [Laximo.oem.find_vehicle_by_vin(vin:, catalog: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:FindVehicleByVIN)
54
54
  * [Laximo.oem.find_vehicle_by_frame(frame:, frame_no:, catalog: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:FindVehicleByFrame)
55
55
  * [Laximo.oem.find_vehicle_by_frame_no(frame_no:, catalog: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:FindVehicleByFrameNo)
56
56
  * [Laximo.oem.find_vehicle(ident_string:, catalog: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:FindVehicle)
57
- * [Laximo.oem.get_wizard2(catalog:, ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetWizard2)s
57
+ * [Laximo.oem.get_wizard2(catalog:, ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetWizard2)
58
58
  * [Laximo.oem.get_wizard_next_step2(catalog:, ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetWizardNextStep2)
59
- * [Laximo.oem.find_vehicle_by_wizard2(catalog:, ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:FindVehicleByWizard2)
60
- * [Laximo.oem.get_vehicle_info(catalog:, vehicle_id:, ssd: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetVehicleInfo)
59
+ * [Laximo.oem.find_vehicle_by_wizard2(catalog:, ssd:, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:FindVehicleByWizard2)
60
+ * [Laximo.oem.get_vehicle_info(catalog:, vehicle_id:, ssd:, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetVehicleInfo)
61
61
  * [Laximo.oem.exec_custom_operation(catalog:, operation:, param:, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ExecCustomOperation)
62
- * [Laximo.oem.list_units(catalog:, vehicle_id:, ssd: nil, category_id: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListUnits)
63
- * [Laximo.oem.list_categories(catalog:, vehicle_id:, ssd: nil, category_id: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListCategories)
64
- * [Laximo.oem.get_filter_by_unit(catalog:, unit_id:, vehicle_id:, filter:, ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetFilterByUnit)
65
- * [Laximo.oem.get_unit_info(catalog:, unit_id:, ssd: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetUnitInfo)
66
- * [Laximo.oem.list_detail_by_unit(catalog:, unit_id:, ssd: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListDetailByUnit)
67
- * [Laximo.oem.list_image_map_by_unit(catalog:, unit_id:, ssd: nil)](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListImageMapByUnit)
68
- * [Laximo.oem.get_filter_by_detail(catalog:, unit_id: , detail_id: , filter: , ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetFilterByDetail)
69
- * [Laximo.oem.list_quick_group(catalog, vehicle_id, ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListQuickGroup)
70
- * [Laximo.oem.list_quick_detail(catalog:, vehicle_id:, quick_group_id:, all:, ssd: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListQuickDetail)
62
+ * [Laximo.oem.list_units(catalog:, vehicle_id:, ssd:, category_id: -1, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListUnits)
63
+ * [Laximo.oem.list_categories(catalog:, vehicle_id:, ssd:, category_id: -10, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListCategories)
64
+ * [Laximo.oem.get_filter_by_unit(catalog:, unit_id:, vehicle_id:, filter:, ssd:, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetFilterByUnit)
65
+ * [Laximo.oem.get_unit_info(catalog:, unit_id:, ssd:, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetUnitInfo)
66
+ * [Laximo.oem.list_detail_by_unit(catalog:, unit_id:, ssd:, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListDetailByUnit)
67
+ * [Laximo.oem.list_image_map_by_unit(catalog:, unit_id:, ssd:)](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListImageMapByUnit)
68
+ * [Laximo.oem.get_filter_by_detail(catalog:, unit_id:, detail_id:, filter:, ssd:, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetFilterByDetail)
69
+ * [Laximo.oem.list_quick_group(catalog:, vehicle_id, ssd:, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListQuickGroup)
70
+ * [Laximo.oem.list_quick_detail(catalog:, vehicle_id:, quick_group_id:, ssd:, all: 1, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListQuickDetail)
71
71
 
72
72
  Данные методы возвращают объект, у которого заданы методы:
73
73
 
@@ -13,12 +13,14 @@ module Laximo
13
13
  end # initialize
14
14
 
15
15
  def list_catalogs(
16
+ ssd: nil,
16
17
  locale: ::Laximo.options.locale
17
18
  )
18
19
 
19
20
  resp = ::Laximo::Query.
20
21
  new('ListCatalogs').
21
22
  locale(locale).
23
+ ssd(ssd).
22
24
  call(@request)
23
25
 
24
26
  ::Laximo::Respond::ListCatalogs.new(resp)
@@ -27,6 +29,7 @@ module Laximo
27
29
 
28
30
  def get_catalog_info(
29
31
  catalog:,
32
+ ssd: nil,
30
33
  locale: ::Laximo.options.locale
31
34
  )
32
35
 
@@ -34,6 +37,7 @@ module Laximo
34
37
  new('GetCatalogInfo').
35
38
  locale(locale).
36
39
  catalog(catalog).
40
+ ssd(ssd).
37
41
  call(@request)
38
42
 
39
43
  ::Laximo::Respond::GetCatalogInfo.new(resp)
@@ -154,7 +158,8 @@ module Laximo
154
158
 
155
159
  def find_vehicle_by_wizard2(
156
160
  catalog:,
157
- ssd: nil,
161
+ ssd:,
162
+ localized: true,
158
163
  locale: ::Laximo.options.locale
159
164
  )
160
165
 
@@ -163,6 +168,7 @@ module Laximo
163
168
  locale(locale).
164
169
  catalog(catalog).
165
170
  ssd(ssd).
171
+ localized(localized).
166
172
  call(@request)
167
173
 
168
174
  ::Laximo::Respond::FindVehicleByWizard2.new(resp)
@@ -172,7 +178,7 @@ module Laximo
172
178
  def get_vehicle_info(
173
179
  catalog:,
174
180
  vehicle_id:,
175
- ssd: nil,
181
+ ssd:,
176
182
  localized: true,
177
183
  locale: ::Laximo.options.locale
178
184
  )
@@ -212,7 +218,7 @@ module Laximo
212
218
  def list_units(
213
219
  catalog:,
214
220
  vehicle_id:,
215
- ssd: nil,
221
+ ssd:,
216
222
  category_id: -1,
217
223
  localized: true,
218
224
  locale: ::Laximo.options.locale
@@ -235,7 +241,7 @@ module Laximo
235
241
  def list_categories(
236
242
  catalog:,
237
243
  vehicle_id:,
238
- ssd: nil,
244
+ ssd:,
239
245
  category_id: -1,
240
246
  locale: ::Laximo.options.locale
241
247
  )
@@ -258,7 +264,7 @@ module Laximo
258
264
  unit_id:,
259
265
  vehicle_id:,
260
266
  filter:,
261
- ssd: nil,
267
+ ssd:,
262
268
  locale: ::Laximo.options.locale
263
269
  )
264
270
 
@@ -279,7 +285,7 @@ module Laximo
279
285
  def get_unit_info(
280
286
  catalog:,
281
287
  unit_id:,
282
- ssd: nil,
288
+ ssd:,
283
289
  localized: true,
284
290
  locale: ::Laximo.options.locale
285
291
  )
@@ -300,7 +306,7 @@ module Laximo
300
306
  def list_detail_by_unit(
301
307
  catalog:,
302
308
  unit_id:,
303
- ssd: nil,
309
+ ssd:,
304
310
  localized: true,
305
311
  locale: ::Laximo.options.locale
306
312
  )
@@ -321,7 +327,7 @@ module Laximo
321
327
  def list_image_map_by_unit(
322
328
  catalog:,
323
329
  unit_id:,
324
- ssd: nil
330
+ ssd:
325
331
  )
326
332
 
327
333
  resp = ::Laximo::Query.
@@ -340,7 +346,7 @@ module Laximo
340
346
  unit_id:,
341
347
  detail_id:,
342
348
  filter:,
343
- ssd: nil,
349
+ ssd:,
344
350
  locale: ::Laximo.options.locale
345
351
  )
346
352
 
@@ -361,7 +367,7 @@ module Laximo
361
367
  def list_quick_group(
362
368
  catalog:,
363
369
  vehicle_id:,
364
- ssd: nil,
370
+ ssd:,
365
371
  locale: ::Laximo.options.locale
366
372
  )
367
373
 
@@ -381,8 +387,8 @@ module Laximo
381
387
  catalog:,
382
388
  vehicle_id:,
383
389
  quick_group_id:,
390
+ ssd:,
384
391
  all: 1,
385
- ssd: nil,
386
392
  localized: true,
387
393
  locale: ::Laximo.options.locale
388
394
  )
@@ -38,7 +38,7 @@ module Laximo
38
38
 
39
39
  def result!
40
40
 
41
- raise StandardError, error.inspect if failure?
41
+ raise error.class, error.message if failure?
42
42
  result
43
43
 
44
44
  end # result!
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Laximo
3
3
 
4
- VERSION = '0.8'.freeze
4
+ VERSION = '0.8.1'.freeze
5
5
 
6
6
  end # Laximo
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laximo
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Pilyaev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-20 00:00:00.000000000 Z
11
+ date: 2019-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -91,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubyforge_project:
95
- rubygems_version: 2.7.7
94
+ rubygems_version: 3.0.3
96
95
  signing_key:
97
96
  specification_version: 4
98
97
  summary: Api for Laximo services