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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3619de53a71c4d04bc3cd30bb71b8441296925a6a9a0d273f1bac40e928aa9b6
4
- data.tar.gz: 5345218b3ef610e9e66f35c6b5c22fb64ac1680749ff04f601c933ebdeff888c
3
+ metadata.gz: d5279b0bbde5c2eced55d035f2f41a0b39dbddc2fb9e7a7189a22aaddfe057ca
4
+ data.tar.gz: bc3a5ab29925eb31ab47af2e75de133a2617824a65fbfd917b897730a6824f6d
5
5
  SHA512:
6
- metadata.gz: 021e4b631e692a3e7a11b068d014778828fe2399aae4417412a34295152f44983cc7cbec02cf055a5daae65c9b2e1d925f7ad2dc5477c9c2651979b09198713c
7
- data.tar.gz: 21426e9df8553d1b33bb69a040b309e4a7942f47345571a982e50dd34109903a1b66264138050564a919a6f7125b87017f151fa6751e487df3381a01274e4d21
6
+ metadata.gz: 44c92678ef10b66e2ce25af8b0054c208b73b54d488eb8f58958f4108c2e493ae027c58e03a0fd5f433416ad7b0cee0b794847a3fd6980a4abe4d384f9f7469f
7
+ data.tar.gz: a2fdb8c978c5f528ede202b9f523043d601a3d85e971a27e7ce03546b45a00dd4e6b414864ddbf13a707be50a3b027283c3764bad38fd30c9eb5ad4fd5b38a9b
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Moysklad
2
- VERSION = '0.4.8'
2
+ VERSION = '0.4.9'
3
3
  end
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.8
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