moysklad 0.3.1 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moysklad/client.rb +5 -1
- data/lib/moysklad/resources/assortments.rb +2 -2
- data/lib/moysklad/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bd42ca1b98829c02677b2ccadabf70265acb292be42b2d0e0ec3cccb49d75f4
|
4
|
+
data.tar.gz: b11bff11b11a96f2d7696fe85265a794d7b3d44383cb2442c3a4d42743ebf9e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da0bdcad48a8ec0195a8746163dab6bcdc7258f8e21745eba7c0874bf9eeebc1f81756e29efb8fc1852bd36d0558762d656241fd30feacbec8b7d5dfe329a296
|
7
|
+
data.tar.gz: 538f55b00f891fa7e913e89a32f323cc28b328a48d7d5909494684005ce47e1de44640897c170f48fea7772713d463f5b98e60e9cd2e0a536d19a84e40fee117
|
data/lib/moysklad/client.rb
CHANGED
@@ -9,7 +9,11 @@ class Moysklad::Client
|
|
9
9
|
|
10
10
|
def initialize login: nil, password: nil
|
11
11
|
@client = Faraday.new URL do |conn|
|
12
|
-
|
12
|
+
if Faraday::VERSION.split('.').first.to_i < 2
|
13
|
+
conn.request(:basic_auth, login, password)
|
14
|
+
else
|
15
|
+
conn.request(:authorization, :basic, login, password)
|
16
|
+
end
|
13
17
|
end
|
14
18
|
end
|
15
19
|
|
data/lib/moysklad/version.rb
CHANGED