xsys 0.18 → 0.19.0

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
  SHA1:
3
- metadata.gz: 0ad1dd277d86afbc29ebcbf561cd2fcdafbaa6f4
4
- data.tar.gz: 83145c7efe388cfee27f9d1fd89ce450fe1aaff1
3
+ metadata.gz: def1870a666b2a83b6b8a0c5ef8dcccf3fba337f
4
+ data.tar.gz: 361cf3a74092b62c080df7fd5c7c4816dcad6a14
5
5
  SHA512:
6
- metadata.gz: 75660be0f746edefd62a84b38866b8ca55bb0670420787bb4a2af82c9d522310784055e9edd79b1cc70452a17382be8f8cb7904eeaa3dcfbae899a7a39eb9bc4
7
- data.tar.gz: cb3c74b03b9a66f67c24759cce4121a7b95a3f03f46858c6f39020f58ef2db15c34735b6e993c42a8fede27ed6249c432c98a5dfc2e645388bc2069311a0164e
6
+ metadata.gz: cc5398a7c8014aa0a27898c0d2581f124cf4bc603d355dfa7c69f4bfb88d207d9d87f85a826099854f5267fdb51ba51a1008287dda67a480cb265b8222d5e1f9
7
+ data.tar.gz: 980da7aafdafe5321f882c4ea33dd52be136321a931ad434aac74552ebc6825402cecace210b5d5c3327c6298cde28eedec2cb4d34338a1709428a9ac04576af
data/CHANGELOG.md CHANGED
@@ -366,6 +366,10 @@
366
366
 
367
367
  * Changed interface for method to calculate taxes for company
368
368
 
369
- ## v0.18
369
+ ## v0.18.0
370
370
 
371
371
  * Added taxed price attribute in price lists
372
+
373
+ ## v0.19.0
374
+
375
+ * Fixed output for create stock reserve method
data/lib/xsys/api.rb CHANGED
@@ -157,7 +157,11 @@ module Xsys
157
157
  response = post_request('/stock_reserves', attrs)
158
158
 
159
159
  if response[:status_code] == 200
160
- Model::StockReserve.new(response[:body])
160
+ if response[:body] == 'null'
161
+ false
162
+ else
163
+ Model::StockReserve.new(response[:body])
164
+ end
161
165
  else
162
166
  false
163
167
  end
data/lib/xsys/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.18"
2
+ VERSION = "0.19.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.18'
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-16 00:00:00.000000000 Z
11
+ date: 2017-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler