apidae 1.2.30 → 1.2.32

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: 8acf5c12e537372c888d4e7215ae6d42a0d1bfada156cb4c09df72d3425d4119
4
- data.tar.gz: bd8ec42eaf3fef49e27ec4895766509530223da0d78cc1859efca72d13059146
3
+ metadata.gz: 3fcd6ed7fe68248f1afd25dac542413aacf16dc7215d754a88eca43621d28ddd
4
+ data.tar.gz: cf90c2756612c64ed15082e8b3e8fc3b83f32c01d2647aa766f45e8cdf562c87
5
5
  SHA512:
6
- metadata.gz: eff2ace093426266867157949dfb8eeaf55b49476bbeb7422c1967bfada14ebbe3037b441fb51e4649bc2159c3cdbc3656f06527546556cf639c64f3e502d9a8
7
- data.tar.gz: 5ad0b4798062f938ecc02f8971ac2cb65c8e8f3d9aeca31f9c407fb31123eadfa88ea1b5c2a9c4f10be6214cb173da0a658b5144a3fe10e9e832a65513156d7b
6
+ metadata.gz: 2be47f19c21d082da47bea33780d7d6e0e40636964901b566aa7e9d37bd68dfba14a39978f76a27b9a5ed94f6bbea932577c5f00f54d7a1e7accf27254dbe070
7
+ data.tar.gz: 5c015959607afd5f57c188b31934b635c0042d2f0e1ff52ff3fc471b70b79f3f78d8edf3edb89a9360757226c0741b8e36e450322c0e0991b0b101b7950a49b9
@@ -214,12 +214,12 @@ module Apidae
214
214
  def self.parse_location_data(location_hash, type_data_hash, territories)
215
215
  loc_data = {}
216
216
  unless location_hash.blank?
217
- address_hash = location_hash[:adresse]
217
+ address_hash = location_hash[:adresse] || {}
218
218
  computed_address = []
219
219
  unless address_hash.blank?
220
- computed_address << address_hash[:adresse1] unless address_hash[:adresse1].blank?
221
- computed_address << address_hash[:adresse2] unless address_hash[:adresse2].blank?
222
- computed_address << address_hash[:adresse3] unless address_hash[:adresse3].blank?
220
+ computed_address << address_hash[:adresse1]
221
+ computed_address << address_hash[:adresse2]
222
+ computed_address << address_hash[:adresse3]
223
223
  end
224
224
  loc_data.merge!({address: computed_address})
225
225
  loc_data.merge!({place: (type_data_hash ? type_data_hash[:nomLieu] : nil) || address_hash[:nomDuLieu]})
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "1.2.30"
2
+ VERSION = "1.2.32"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apidae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.30
4
+ version: 1.2.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Baptiste Vilain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-14 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails