laximo 0.3.2 → 0.3.3
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 +4 -4
- data/README.md +11 -1
- data/lib/laximo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4cfb39263229869df79357c9e5e3c6d3511d8a33
|
|
4
|
+
data.tar.gz: bb889d80dc6c345651e22b5a7d501f4f922e95a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9557e607046696bbcf1cb2ccc262bc84b5b945cc0e56f33f540c8e895a598e4fa3a56326d33a6ed7d1a16cb410a9fea92ab7d2228281782bce53ab8562d6c2ce
|
|
7
|
+
data.tar.gz: 766f30bf452ddffcf1194ea364273b706be2751fdaca4387b391b3991ebca1992dcd260302a419e24dbc1ee43773f5e4a78910fbc104f62cf5769dc44ac8eb84
|
data/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Ruby 1.9.3+
|
|
9
9
|
|
|
10
10
|
### Установка (Rails)
|
|
11
|
-
1. Добавляем в Gemfile строку:`gem '
|
|
11
|
+
1. Добавляем в Gemfile строку:`gem 'laximo'`
|
|
12
12
|
2. В консоле `bundle install`
|
|
13
13
|
3. Задаем параметры конфигурации в файле `config/initializers/laximo.rb`:
|
|
14
14
|
```ruby
|
|
@@ -85,3 +85,13 @@ res.error? # false
|
|
|
85
85
|
res.error # nil
|
|
86
86
|
res.result # [{:detailid=>"31454425", :formattedoem=>"078100105NX", :manufacturer=>"SEAT", ...]
|
|
87
87
|
```
|
|
88
|
+
|
|
89
|
+
### Замечание
|
|
90
|
+
После вызова одного из методов апи, может быть возвращены разного рода ошибки. Но, есть спец. ошибки:
|
|
91
|
+
* `Net::HTTPNotFound` (404) -- ваш ssl-сертификат не позвоялет вызывать данный метод апи
|
|
92
|
+
* `Net::HTTPBadRequest` (400) -- не задан ssl-сертификат
|
|
93
|
+
|
|
94
|
+
### Лицензия
|
|
95
|
+
|
|
96
|
+
Автор: [Tyralion](mailto:piliaiev@gmail.com)
|
|
97
|
+
Copyright (c) 2015 DansingBytes.ru, под лицензией BSD
|
data/lib/laximo/version.rb
CHANGED
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.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Piliaiev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-07-
|
|
11
|
+
date: 2015-07-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|