moysklad 0.4.8 → 0.4.9
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/version.rb +1 -1
- data/moysklad.gemspec +0 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5279b0bbde5c2eced55d035f2f41a0b39dbddc2fb9e7a7189a22aaddfe057ca
|
4
|
+
data.tar.gz: bc3a5ab29925eb31ab47af2e75de133a2617824a65fbfd917b897730a6824f6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44c92678ef10b66e2ce25af8b0054c208b73b54d488eb8f58958f4108c2e493ae027c58e03a0fd5f433416ad7b0cee0b794847a3fd6980a4abe4d384f9f7469f
|
7
|
+
data.tar.gz: a2fdb8c978c5f528ede202b9f523043d601a3d85e971a27e7ce03546b45a00dd4e6b414864ddbf13a707be50a3b027283c3764bad38fd30c9eb5ad4fd5b38a9b
|
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,7 +1,7 @@
|
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danil Pismenny
|
@@ -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
|