spid-es 0.0.29 → 0.0.30

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
  SHA256:
3
- metadata.gz: 914b31e7840c617f7853dc604a2f89bc73d13b6ffd112d1486e7545ad7436d7f
4
- data.tar.gz: 931465c5e2d56a53738da3b2d165f8a17231ba8009a22dfb7faf38edc88b7318
3
+ metadata.gz: ef4d9da8e2a6d3b9e6f0b70a8970010864b1cc98a9b3ca7461717512ec6a04b4
4
+ data.tar.gz: 18c491970d8215cb051c0a505cf33a65b2f0a1170735d27b527a0c1b2777b5bf
5
5
  SHA512:
6
- metadata.gz: 673f12a17aba77f61dad64c49cecaf5ccddc6a11238575765777b23b7b8c22dd0c4c085413527afff9ec621ebcd7d1418206172dbd30286abbb66f0bdcef99a7
7
- data.tar.gz: 1e4ec887b388b9a25eacfa0a2d98dac6852436cf77de558d49f2659345a486a640af3f815b66d2bcc4741362c48b8b8c427200df43fed7d1a8d6967277031867
6
+ metadata.gz: 83e2246e5c07bc0b143c02a72db90dd75f67c0035f2265c524d82d0c5a9db1226fbf84e27bbda03fe58b71d03c0cd8329a451fc69d7097d03b07c2c0b1d3c482
7
+ data.tar.gz: e71257e4fe2e3627d25d880b392527d9f9b4e5a29e3900f2161d584cff4fde9cbafe79f130b5cb09890e7b5a37e8476eeee459aa30197751c533cf284d3bd109
@@ -235,16 +235,23 @@ module Spid
235
235
  "contactType" => "other",
236
236
  "spid:entityType" => "spid:aggregator"
237
237
  }
238
- company = contact_person_aggregatore.add_element "md:Company"
239
- company.text = settings.hash_aggregatore['soggetto_aggregatore']
238
+ unless settings.hash_aggregatore['soggetto_aggregatore'].blank?
239
+ company = contact_person_aggregatore.add_element "md:Company"
240
+ company.text = settings.hash_aggregatore['soggetto_aggregatore']
241
+ end
240
242
 
241
- email_address = contact_person_aggregatore.add_element "md:EmailAddress"
242
- email_address.text = settings.hash_aggregatore['email_address']
243
+ unless settings.hash_aggregatore['email_aggregatore'].blank?
244
+ email_address = contact_person_aggregatore.add_element "md:EmailAddress"
245
+ email_address.text = settings.hash_aggregatore['email_aggregatore']
246
+ end
243
247
 
244
- telephone_number = contact_person_aggregatore.add_element "md:TelephoneNumber"
245
- telephone_number.text = settings.hash_aggregatore['telephone_number']
248
+ unless settings.hash_aggregatore['telefono_aggregatore'].blank?
249
+ telephone_number = contact_person_aggregatore.add_element "md:TelephoneNumber"
250
+ telephone_number.text = settings.hash_aggregatore['telefono_aggregatore']
251
+ end
246
252
 
247
253
  extensions_aggregatore = contact_person_aggregatore.add_element "md:Extensions"
254
+
248
255
  unless settings.hash_aggregatore['piva_aggregatore'].blank?
249
256
  vat_number_aggregatore = extensions_aggregatore.add_element "spid:VATNumber"
250
257
  vat_number_aggregatore.text = settings.hash_aggregatore['piva_aggregatore']
@@ -2,7 +2,7 @@ $LOAD_PATH.push File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'spid-es'
5
- s.version = '0.0.29'
5
+ s.version = '0.0.30'
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Fabiano Pavan"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spid-es
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabiano Pavan