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 +4 -4
- data/lib/moysklad/client.rb +2 -2
- data/lib/moysklad/universe.rb +2 -2
- data/lib/moysklad/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83e33077e85dee3bdc6ec10c11550ba81a55084a9b7ffaad39a8170c556bad83
|
4
|
+
data.tar.gz: aafd7e926142dd835b60e1f53d5d5e01c9818868c77a4ae72f40adf9bdcf0c73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f050ad514e9c0f67460799998123977eae2e3900895e5ac2bcecb57c05f48f6bc0ff4e8b236c6274582bddb7378e993be3e827a07e4003b94a994e946760f61
|
7
|
+
data.tar.gz: 5b5726510d5bcd9f7d4e37c7da4e52dfa3a0289bf720da4937fbb6a9604851651fb4daa94297497c05babb83bb459ad33c5ac0cbd7e4fbc65e896a1262b0c25d
|
data/lib/moysklad/client.rb
CHANGED
@@ -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
|
data/lib/moysklad/universe.rb
CHANGED
@@ -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 = []
|
data/lib/moysklad/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2024-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|