moysklad 0.4.7 → 0.4.8
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 +2 -0
- data/lib/moysklad/version.rb +1 -1
- data/moysklad.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3619de53a71c4d04bc3cd30bb71b8441296925a6a9a0d273f1bac40e928aa9b6
|
4
|
+
data.tar.gz: 5345218b3ef610e9e66f35c6b5c22fb64ac1680749ff04f601c933ebdeff888c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 021e4b631e692a3e7a11b068d014778828fe2399aae4417412a34295152f44983cc7cbec02cf055a5daae65c9b2e1d925f7ad2dc5477c9c2651979b09198713c
|
7
|
+
data.tar.gz: 21426e9df8553d1b33bb69a040b309e4a7942f47345571a982e50dd34109903a1b66264138050564a919a6f7125b87017f151fa6751e487df3381a01274e4d21
|
data/lib/moysklad/client.rb
CHANGED
@@ -11,6 +11,8 @@ class Moysklad::Client
|
|
11
11
|
|
12
12
|
def initialize login: nil, password: nil, logger: nil
|
13
13
|
@client = Faraday.new URL do |conn|
|
14
|
+
# Needs for downloads
|
15
|
+
conn.use FaradayMiddleware::FollowRedirects
|
14
16
|
unless logger.nil?
|
15
17
|
conn.response :detailed_logger, logger
|
16
18
|
conn.request :curl, logger, :info
|
data/lib/moysklad/version.rb
CHANGED
data/moysklad.gemspec
CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_runtime_dependency 'faraday'
|
24
24
|
spec.add_runtime_dependency 'faraday-gzip'
|
25
25
|
spec.add_runtime_dependency 'faraday-encoding'
|
26
|
+
spec.add_runtime_dependency 'faraday_middleware'
|
26
27
|
spec.add_runtime_dependency 'virtus'
|
27
28
|
spec.add_runtime_dependency 'activesupport', '>=3.0.0'
|
28
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moysklad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danil Pismenny
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: faraday_middleware
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: virtus
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|