moysklad 0.4.10 → 0.5

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: 37c33055d9037081371d23e529de7e7b0c1c7ed5169a60d309f49af7af91efa3
4
- data.tar.gz: c809c97846c4a146484b9cd0bff8a53703b26906a34be02a8723f8d36dadc6d6
3
+ metadata.gz: 83e33077e85dee3bdc6ec10c11550ba81a55084a9b7ffaad39a8170c556bad83
4
+ data.tar.gz: aafd7e926142dd835b60e1f53d5d5e01c9818868c77a4ae72f40adf9bdcf0c73
5
5
  SHA512:
6
- metadata.gz: 2df2a41f6733a9adecec107f1c4425182b38dfe10616e2096f7de3f777398dba7b6d9aa7449f4e866b7c1f13412a6c46ff471f6bbb444e0cc1638fb9873ecb69
7
- data.tar.gz: 5860715760277838771032b0a9ad7006619f30b5759cbe41232ee8b65d00222dfe39e1733d7b93ed30f844475143da8cf8d4c89c4d4a49d3291e89c476b6fa39
6
+ metadata.gz: 0f050ad514e9c0f67460799998123977eae2e3900895e5ac2bcecb57c05f48f6bc0ff4e8b236c6274582bddb7378e993be3e827a07e4003b94a994e946760f61
7
+ data.tar.gz: 5b5726510d5bcd9f7d4e37c7da4e52dfa3a0289bf720da4937fbb6a9604851651fb4daa94297497c05babb83bb459ad33c5ac0cbd7e4fbc65e896a1262b0c25d
@@ -9,8 +9,8 @@ require_relative 'client/errors'
9
9
  class Moysklad::Client
10
10
  URL ='https://api.moysklad.ru/api/remap/1.2/'
11
11
 
12
- def initialize login: nil, password: nil, logger: nil
13
- @client = Faraday.new URL do |conn|
12
+ def initialize login: nil, password: nil, logger: nil, proxy: nil
13
+ @client = Faraday.new URL, proxy: proxy do |conn|
14
14
  unless logger.nil?
15
15
  conn.response :detailed_logger, logger
16
16
  conn.request :curl, logger, :info
@@ -27,8 +27,8 @@ module Moysklad
27
27
  #
28
28
  # @param login
29
29
  # @param password
30
- def self.build login: nil, password: nil, logger: nil
31
- new client: client_class.new(login: login, password: password, logger: nil)
30
+ def self.build login: nil, password: nil, logger: nil, proxy: nil
31
+ new client: client_class.new(login: login, password: password, logger: nil, proxy: proxy)
32
32
  end
33
33
 
34
34
  @@resources_list = []
@@ -1,3 +1,3 @@
1
1
  module Moysklad
2
- VERSION = '0.4.10'
2
+ VERSION = '0.5'
3
3
  end
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.10
4
+ version: '0.5'
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-04-07 00:00:00.000000000 Z
11
+ date: 2024-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday