moysklad 0.4.8 → 0.4.10
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 +0 -7
- data/lib/moysklad/resources/indexed.rb +1 -1
- data/lib/moysklad/version.rb +1 -1
- data/moysklad.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37c33055d9037081371d23e529de7e7b0c1c7ed5169a60d309f49af7af91efa3
|
4
|
+
data.tar.gz: c809c97846c4a146484b9cd0bff8a53703b26906a34be02a8723f8d36dadc6d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2df2a41f6733a9adecec107f1c4425182b38dfe10616e2096f7de3f777398dba7b6d9aa7449f4e866b7c1f13412a6c46ff471f6bbb444e0cc1638fb9873ecb69
|
7
|
+
data.tar.gz: 5860715760277838771032b0a9ad7006619f30b5759cbe41232ee8b65d00222dfe39e1733d7b93ed30f844475143da8cf8d4c89c4d4a49d3291e89c476b6fa39
|
data/lib/moysklad/client.rb
CHANGED
@@ -11,8 +11,6 @@ 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
|
16
14
|
unless logger.nil?
|
17
15
|
conn.response :detailed_logger, logger
|
18
16
|
conn.request :curl, logger, :info
|
@@ -31,11 +29,6 @@ class Moysklad::Client
|
|
31
29
|
end
|
32
30
|
end
|
33
31
|
|
34
|
-
def download(path, filename)
|
35
|
-
response = client.get path
|
36
|
-
File.open(filename, 'wb') { |fp| fp.write(response.body) }
|
37
|
-
end
|
38
|
-
|
39
32
|
def get path, params={}
|
40
33
|
logger.debug "Client: GET #{path} #{params}"
|
41
34
|
parse_response client.get path, params
|
data/lib/moysklad/version.rb
CHANGED
data/moysklad.gemspec
CHANGED
@@ -23,7 +23,6 @@ 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'
|
27
26
|
spec.add_runtime_dependency 'virtus'
|
28
27
|
spec.add_runtime_dependency 'activesupport', '>=3.0.0'
|
29
28
|
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danil Pismenny
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -52,20 +52,6 @@ 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'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: virtus
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|