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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11853c0cd626e6f922838a5d91e0cb83a48092f359ddc8b1437374d0ccf0c29a
4
- data.tar.gz: 61dbc0e2db3b56ba8ed1200dd8b2d91b5e7500a926bd32c839c92d2e73ce58a4
3
+ metadata.gz: 3619de53a71c4d04bc3cd30bb71b8441296925a6a9a0d273f1bac40e928aa9b6
4
+ data.tar.gz: 5345218b3ef610e9e66f35c6b5c22fb64ac1680749ff04f601c933ebdeff888c
5
5
  SHA512:
6
- metadata.gz: 5aeaa2c2892de2abed0dcabe6f30a88428bbe0635a67a548330aa049af6b303be2743394ceb8e2a41f73407addaa9bc606b26b51ca8c4dd43b62dbec701b8759
7
- data.tar.gz: c177b77a933b4ae86d18a353f7eb96d2a1e370707251cce96e22ef7138e04a531ef9aac159593fc7410e64ed784fd7a78bdd3e5575e72e0b0771d68f3a4c8be1
6
+ metadata.gz: 021e4b631e692a3e7a11b068d014778828fe2399aae4417412a34295152f44983cc7cbec02cf055a5daae65c9b2e1d925f7ad2dc5477c9c2651979b09198713c
7
+ data.tar.gz: 21426e9df8553d1b33bb69a040b309e4a7942f47345571a982e50dd34109903a1b66264138050564a919a6f7125b87017f151fa6751e487df3381a01274e4d21
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Moysklad
2
- VERSION = '0.4.7'
2
+ VERSION = '0.4.8'
3
3
  end
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.7
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: 2023-12-06 00:00:00.000000000 Z
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