laximo 0.3.2

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.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.BSD +24 -0
  5. data/README.md +87 -0
  6. data/laximo.gemspec +26 -0
  7. data/lib/laximo.rb +38 -0
  8. data/lib/laximo/am.rb +113 -0
  9. data/lib/laximo/defaults.rb +10 -0
  10. data/lib/laximo/oem.rb +398 -0
  11. data/lib/laximo/options.rb +92 -0
  12. data/lib/laximo/query.rb +201 -0
  13. data/lib/laximo/request.rb +78 -0
  14. data/lib/laximo/respond.rb +106 -0
  15. data/lib/laximo/respond/find_detail.rb +42 -0
  16. data/lib/laximo/respond/find_oem.rb +42 -0
  17. data/lib/laximo/respond/find_oem_correction.rb +42 -0
  18. data/lib/laximo/respond/find_replacements.rb +20 -0
  19. data/lib/laximo/respond/find_vehicle_by_frame.rb +16 -0
  20. data/lib/laximo/respond/find_vehicle_by_vin.rb +16 -0
  21. data/lib/laximo/respond/find_vehicle_by_wizard.rb +16 -0
  22. data/lib/laximo/respond/find_vehicle_by_wizard2.rb +16 -0
  23. data/lib/laximo/respond/get_catalog_info.rb +16 -0
  24. data/lib/laximo/respond/get_filter_by_detail.rb +16 -0
  25. data/lib/laximo/respond/get_filter_by_unit.rb +16 -0
  26. data/lib/laximo/respond/get_unit_info.rb +16 -0
  27. data/lib/laximo/respond/get_vehicle_info.rb +16 -0
  28. data/lib/laximo/respond/get_wizard.rb +16 -0
  29. data/lib/laximo/respond/get_wizard2.rb +16 -0
  30. data/lib/laximo/respond/get_wizard_next_step2.rb +16 -0
  31. data/lib/laximo/respond/list_catalogs.rb +16 -0
  32. data/lib/laximo/respond/list_categories.rb +16 -0
  33. data/lib/laximo/respond/list_detail_by_unit.rb +16 -0
  34. data/lib/laximo/respond/list_image_map_by_unit.rb +16 -0
  35. data/lib/laximo/respond/list_manufacturer.rb +20 -0
  36. data/lib/laximo/respond/list_quick_detail.rb +16 -0
  37. data/lib/laximo/respond/list_quick_group.rb +16 -0
  38. data/lib/laximo/respond/list_units.rb +16 -0
  39. data/lib/laximo/respond/manufacturer_info.rb +20 -0
  40. data/lib/laximo/version.rb +6 -0
  41. metadata +97 -0
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ module Laximo
3
+
4
+ module Respond
5
+
6
+ class ListQuickDetail < Laximo::Respond::Base
7
+
8
+ def parsing_result(str)
9
+ str
10
+ end
11
+
12
+ end # ListQuickDetail
13
+
14
+ end # Respond
15
+
16
+ end # Laximo
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ module Laximo
3
+
4
+ module Respond
5
+
6
+ class ListQuickGroup < Laximo::Respond::Base
7
+
8
+ def parsing_result(str)
9
+ str
10
+ end
11
+
12
+ end # ListQuickGroup
13
+
14
+ end # Respond
15
+
16
+ end # Laximo
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ module Laximo
3
+
4
+ module Respond
5
+
6
+ class ListUnits < Laximo::Respond::Base
7
+
8
+ def parsing_result(str)
9
+ str
10
+ end
11
+
12
+ end # ListUnits
13
+
14
+ end # Respond
15
+
16
+ end # Laximo
@@ -0,0 +1,20 @@
1
+ # encoding: utf-8
2
+ module Laximo
3
+
4
+ module Respond
5
+
6
+ class Manufacturer_Info < Laximo::Respond::Base
7
+
8
+ def parsing_result(str)
9
+
10
+ str.xpath('//ManufacturerInfo/row').inject([]) { |arr, node|
11
+ arr << attrs_to_hash(node)
12
+ }
13
+
14
+ end # parsing_result
15
+
16
+ end # Manufacturer_Info
17
+
18
+ end # Respond
19
+
20
+ end # Laximo
@@ -0,0 +1,6 @@
1
+ # encoding: utf-8
2
+ module Laximo
3
+
4
+ VERSION = '0.3.2'.freeze
5
+
6
+ end # Laximo
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: laximo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.2
5
+ platform: ruby
6
+ authors:
7
+ - Ivan Piliaiev
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ description: Api for Laximo services
28
+ email:
29
+ - piliaiev@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".gitignore"
35
+ - Gemfile
36
+ - LICENSE.BSD
37
+ - README.md
38
+ - laximo.gemspec
39
+ - lib/laximo.rb
40
+ - lib/laximo/am.rb
41
+ - lib/laximo/defaults.rb
42
+ - lib/laximo/oem.rb
43
+ - lib/laximo/options.rb
44
+ - lib/laximo/query.rb
45
+ - lib/laximo/request.rb
46
+ - lib/laximo/respond.rb
47
+ - lib/laximo/respond/find_detail.rb
48
+ - lib/laximo/respond/find_oem.rb
49
+ - lib/laximo/respond/find_oem_correction.rb
50
+ - lib/laximo/respond/find_replacements.rb
51
+ - lib/laximo/respond/find_vehicle_by_frame.rb
52
+ - lib/laximo/respond/find_vehicle_by_vin.rb
53
+ - lib/laximo/respond/find_vehicle_by_wizard.rb
54
+ - lib/laximo/respond/find_vehicle_by_wizard2.rb
55
+ - lib/laximo/respond/get_catalog_info.rb
56
+ - lib/laximo/respond/get_filter_by_detail.rb
57
+ - lib/laximo/respond/get_filter_by_unit.rb
58
+ - lib/laximo/respond/get_unit_info.rb
59
+ - lib/laximo/respond/get_vehicle_info.rb
60
+ - lib/laximo/respond/get_wizard.rb
61
+ - lib/laximo/respond/get_wizard2.rb
62
+ - lib/laximo/respond/get_wizard_next_step2.rb
63
+ - lib/laximo/respond/list_catalogs.rb
64
+ - lib/laximo/respond/list_categories.rb
65
+ - lib/laximo/respond/list_detail_by_unit.rb
66
+ - lib/laximo/respond/list_image_map_by_unit.rb
67
+ - lib/laximo/respond/list_manufacturer.rb
68
+ - lib/laximo/respond/list_quick_detail.rb
69
+ - lib/laximo/respond/list_quick_group.rb
70
+ - lib/laximo/respond/list_units.rb
71
+ - lib/laximo/respond/manufacturer_info.rb
72
+ - lib/laximo/version.rb
73
+ homepage: https://github.com/dancingbytes/laximo
74
+ licenses:
75
+ - BSD
76
+ metadata: {}
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: 1.9.3
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubyforge_project:
93
+ rubygems_version: 2.2.3
94
+ signing_key:
95
+ specification_version: 4
96
+ summary: Api for Laximo services
97
+ test_files: []