moysklad 0.4.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moysklad/attributes_converter.rb +2 -3
- data/lib/moysklad/client.rb +0 -1
- data/lib/moysklad/entities/base.rb +4 -0
- 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: 705793c278ca83f557d2df12ddde3d09972e4ef85dcb8f8b0e6b4e6d523f2734
|
4
|
+
data.tar.gz: 6bda49d2e3d1e54df59ee1e75a39e404aba26a7eae8b21a1fad021937ba9bc78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98fa23eb05c3d2176bad5e8a9a2b8ea97d5cbfebf87384bda832e1e7fde26ff038d5ee106b553692acae3f36eac541f185b1aa7413bf104f1cb80e4c2b75b6cf
|
7
|
+
data.tar.gz: dd2c9037094646561832ec642be8f06ca18cf683c724f945a7f30991378f6b3b2e071d62de10c102b719697795f5e5daf4dcb8146c4266c65b10d628ee766c5a
|
@@ -4,11 +4,10 @@ module AttributesConverter
|
|
4
4
|
if data['attributes']
|
5
5
|
if data['attributes'].is_a? Array
|
6
6
|
data['attrs'] = data.delete 'attributes'
|
7
|
-
binding.pry
|
8
7
|
elsif data['attributes'].is_a? Hash
|
9
|
-
|
8
|
+
# do nothing
|
10
9
|
else
|
11
|
-
|
10
|
+
raise "Strange attribute class #{data['attribute']}"
|
12
11
|
end
|
13
12
|
end
|
14
13
|
super data
|
data/lib/moysklad/client.rb
CHANGED
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.
|
4
|
+
version: 0.4.2
|
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-
|
11
|
+
date: 2023-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|