moysklad 0.4.1 → 0.4.3

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: 3d6deac98d910e2122e5d088e5f296d5862e0444d321f6020c074d339b2c7e1c
4
- data.tar.gz: 32b680c577404846d787bf849f0a9c6b32cdcf857405c49b8c7d8177dd75edb7
3
+ metadata.gz: cc25a36fd2d2e6eece9acfa5049b5b7015b99247c5123573c48095f9a76e0459
4
+ data.tar.gz: edb8be39a3d3b071505900fccbad8f53ac5ba29ad4f07397c24534e1729160fd
5
5
  SHA512:
6
- metadata.gz: d256705204b4c6823c7d729c47cfd4d2ad62cc9e66688e171033a437c8d84973c469fe35fc86197bcb5a14c6001db1995ca3e16b3f381c9831780f30a994b5ee
7
- data.tar.gz: bb721e69e475031587bfedf6c3022640020d867fbb305dd452838a4a68d8dff56d31a2d7725574a6afb11227af3579af977036d86256524cbb105a14f7aefcee
6
+ metadata.gz: 73cfb20ec4f2a7e708099406f3f1373b9d8953cf3d19d592dc50c1281e0ff227171e23813a66190ccba8964ef141a554a3c8d2f861ebcdfa4673840089a6fccf
7
+ data.tar.gz: 5ecf16f9e2362677f31e3b3ee8a7768f6505c5dddb59cdbdf004a5bc61781e6e38bb7286030d402f4974fdc88117ad05f04645581c6627976d1117bbbe837fd8
@@ -77,7 +77,7 @@ class Moysklad::Client
77
77
  end
78
78
 
79
79
  def parse_response res
80
- Moysklad.logger.debug "Response [#{res.status}]: #{res.body}"
80
+ Moysklad.logger.debug "Response [#{res.status}]"
81
81
 
82
82
  if res.status == 200
83
83
  return if res.body.blank?
@@ -10,6 +10,10 @@ module Moysklad::Entities
10
10
  entity
11
11
  end
12
12
 
13
+ def initialize(data = {})
14
+ super data.merge(dump: data)
15
+ end
16
+
13
17
  def to_json(*args)
14
18
  presented = {}
15
19
  to_h.each_pair do |k, v|
@@ -1,3 +1,3 @@
1
1
  module Moysklad
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.3'
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.1
4
+ version: 0.4.3
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-11-15 00:00:00.000000000 Z
11
+ date: 2023-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday