xsys 0.19.1 → 0.19.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/xsys/api.rb +7 -1
- data/lib/xsys/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aca7283d2a561984f6e56638ce1283280c40a08
|
4
|
+
data.tar.gz: a16a7f535431f90427b5300eafa5a59f490fb9f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88c5b9347061b962b519ae6eb0e9c2d2d9651739504820ab3a73a467cee456c382fd98a4ffec67282ac18a6748d5102854b9f5319a97eecfbca03d114bf3befc
|
7
|
+
data.tar.gz: '0842e56e1b432a6d241ab87b86c9f084d29e0ec8f857d7b595e302fd68a3e19bed593bec9c268e06baa08f8a1ac4bed613f451e940cc54dc1ca6cb75c5209383'
|
data/CHANGELOG.md
CHANGED
data/lib/xsys/api.rb
CHANGED
@@ -208,7 +208,13 @@ module Xsys
|
|
208
208
|
end
|
209
209
|
|
210
210
|
def self.get_company(code)
|
211
|
-
|
211
|
+
result = get_request("/companies/#{code}")[:body]
|
212
|
+
|
213
|
+
if result == 'null'
|
214
|
+
nil
|
215
|
+
else
|
216
|
+
Model::Company.new(get_request("/companies/#{code}")[:body])
|
217
|
+
end
|
212
218
|
end
|
213
219
|
|
214
220
|
def self.calculate_company_taxes(company_code, items)
|
data/lib/xsys/version.rb
CHANGED
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.19.
|
4
|
+
version: 0.19.2
|
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-05-
|
11
|
+
date: 2017-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|