fiscalizer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fiscalizer/communication.rb +1 -1
- data/lib/fiscalizer/response.rb +1 -1
- data/lib/fiscalizer/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: 6032f816b1031695310a1fcd250a2d3e950b8060
|
4
|
+
data.tar.gz: 0fc7e3d0af88889b22b99fe4caca52eaf51d5bd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a377e79e11a5c2d768a03d4e7ced90dcf677ce55e0cc9be89088024a2ae4a4de186e839022985055597f66d661ffcb9877985c43399b7291957b79f25f6066df
|
7
|
+
data.tar.gz: 381e4ce1ec803a645ae026d65ea5d7f09bc115940e6f3dd57b01ee6ec0db2c7ab4122ffe1e3b6058451bf0e7a52dbb887004d38f35deb5ba7ff2bf2174d1f5bc
|
@@ -118,7 +118,7 @@ class Fiscalizer
|
|
118
118
|
xml['tns'].Naselje object.adress_settlement
|
119
119
|
xml['tns'].Opcina object.adress_township
|
120
120
|
} if object.adress_other == nil
|
121
|
-
xml['tns'].OstaliTipoviPP object.adress_other
|
121
|
+
xml['tns'].OstaliTipoviPP object.adress_other
|
122
122
|
}
|
123
123
|
xml['tns'].RadnoVrijeme object.office_time
|
124
124
|
xml['tns'].DatumPocetkaPrimjene object.take_effect_date_str
|
data/lib/fiscalizer/response.rb
CHANGED
@@ -110,7 +110,7 @@ class Fiscalizer
|
|
110
110
|
end # parse_response_office
|
111
111
|
|
112
112
|
def parse_response_errors object
|
113
|
-
raw_errors = Nokogiri::XML(object).root.xpath('//tns:
|
113
|
+
raw_errors = Nokogiri::XML(object).root.xpath('//tns:Greska', 'tns' => @tns)
|
114
114
|
raw_errors.each do |raw_error|
|
115
115
|
error_code = raw_error.xpath('//tns:SifraGreske', 'tns' => @tns).first
|
116
116
|
error_message = raw_error.xpath('//tns:PorukaGreske', 'tns' => @tns).first
|
data/lib/fiscalizer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fiscalizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stanko Krtalić Rusendić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|