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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3619de53a71c4d04bc3cd30bb71b8441296925a6a9a0d273f1bac40e928aa9b6
4
- data.tar.gz: 5345218b3ef610e9e66f35c6b5c22fb64ac1680749ff04f601c933ebdeff888c
3
+ metadata.gz: 37c33055d9037081371d23e529de7e7b0c1c7ed5169a60d309f49af7af91efa3
4
+ data.tar.gz: c809c97846c4a146484b9cd0bff8a53703b26906a34be02a8723f8d36dadc6d6
5
5
  SHA512:
6
- metadata.gz: 021e4b631e692a3e7a11b068d014778828fe2399aae4417412a34295152f44983cc7cbec02cf055a5daae65c9b2e1d925f7ad2dc5477c9c2651979b09198713c
7
- data.tar.gz: 21426e9df8553d1b33bb69a040b309e4a7942f47345571a982e50dd34109903a1b66264138050564a919a6f7125b87017f151fa6751e487df3381a01274e4d21
6
+ metadata.gz: 2df2a41f6733a9adecec107f1c4425182b38dfe10616e2096f7de3f777398dba7b6d9aa7449f4e866b7c1f13412a6c46ff471f6bbb444e0cc1638fb9873ecb69
7
+ data.tar.gz: 5860715760277838771032b0a9ad7006619f30b5759cbe41232ee8b65d00222dfe39e1733d7b93ed30f844475143da8cf8d4c89c4d4a49d3291e89c476b6fa39
@@ -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
@@ -50,7 +50,7 @@ module Moysklad::Resources
50
50
  end
51
51
 
52
52
  def index
53
- pull_list unless cached_index
53
+ all unless cached_index
54
54
  cached_index
55
55
  end
56
56
 
@@ -1,3 +1,3 @@
1
1
  module Moysklad
2
- VERSION = '0.4.8'
2
+ VERSION = '0.4.10'
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,14 +1,14 @@
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.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-01-24 00:00:00.000000000 Z
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