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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf3a0286c80975a48c24f12bacbb56dd52e7bff9
4
- data.tar.gz: 665daba6e0e75aeea89a3375a68ec7110e800e3b
3
+ metadata.gz: 6032f816b1031695310a1fcd250a2d3e950b8060
4
+ data.tar.gz: 0fc7e3d0af88889b22b99fe4caca52eaf51d5bd1
5
5
  SHA512:
6
- metadata.gz: b1527568363f50c83ea0d7fce1dce5b7581b474a44f534cde2afac59b292e2ddf44e3e96d1adf503f7cf24203bb6370230b08d281075fe915d5cbd607aab4c02
7
- data.tar.gz: 6033347fda031491a8200df26d1dbf4d47b8fd374c5c364e2463f72d55072df6e9f77b226f325fb9e6d95f634f7320a8fbe982b53297baafe74a3b88b0a9e893
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 if object.adress_other != nil
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
@@ -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:Greske', 'tns' => @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
@@ -1,3 +1,3 @@
1
1
  class Fiscalizer
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2014-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri