apidae 1.2.29 → 1.2.31

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: b2b32d29c7fda2d444873eb02202333f0b4aba4fa88aa885ca6dfc122046471e
4
- data.tar.gz: c7c603f93c675854d30420c2febab0f472c4bc71b404572809fda5d5d382b514
3
+ metadata.gz: 062ad531aa659b7d8a57b19e6104e0e4636213fec13b4672d7d81aaf3213e0f9
4
+ data.tar.gz: 28a6b823f51365534631d787db318ab17c8061231447538dc5cfe58ca0a1a69f
5
5
  SHA512:
6
- metadata.gz: 6bc3877ca1af9382b728947c17e31309753536e2242a257c808585ec6692886f950bb93216f2b79bb5aa7ad315db6e3b56a50a276ed08f2c3ce9bfad4dcccbbe
7
- data.tar.gz: '0619277eb5e642f0f2d4a6158de9f924f9eabee4cc90b1e6835b5ebb93c2f0e74ba94970f25caedd6c477247f5670841b684b754f1dd1835028f6b2cb7fdd1c3'
6
+ metadata.gz: 3b9b6e32ddf0fda31552ea8cd61efea276f5db7d5b5dad20c6b33d233e995ad92354b75142ab596ab80a106131f2699f7c494ed32ffe34b3f4b5a4f76cec5375
7
+ data.tar.gz: 4c805857fdfa7f04ae20bac8ea2a2df6ca4aac3c1f11346a2319b2aa91fe3d97ec724818a6aea982f50eadcecc487b913a6d1ebc9fd4e1348bfa1ab697e45666
@@ -217,12 +217,12 @@ module Apidae
217
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
- loc_data.merge!({place: type_data_hash[:nomLieu]}) if type_data_hash
225
+ loc_data.merge!({place: (type_data_hash ? type_data_hash[:nomLieu] : nil) || address_hash[:nomDuLieu]})
226
226
  geoloc_details = location_hash[:geolocalisation]
227
227
  if geoloc_details && geoloc_details[:valide] && geoloc_details[:geoJson]
228
228
  loc_data[:latitude] = geoloc_details[:geoJson][:coordinates][1]
@@ -175,7 +175,7 @@ module Apidae
175
175
  def self.populate_fields(apidae_obj, object_data, locales)
176
176
  type_fields = TYPES_DATA[object_data[:type]]
177
177
  apidae_obj.last_update = DateTime.parse(object_data[:gestion][:dateModification]) unless object_data[:gestion].blank?
178
- apidae_obj.owner_data = ApidaeDataParser.parse_owner_data(object_data[:gestion][:membreProprietaire], object_data[:enquete]) unless (object_data[:gestion].blank? && object_data[:gestion].blank?)
178
+ apidae_obj.owner_data = ApidaeDataParser.parse_owner_data(object_data[:gestion][:membreProprietaire], object_data[:enquete]) unless (object_data[:gestion].blank? && object_data[:enquete].blank?)
179
179
  apidae_obj.apidae_type = object_data[:type]
180
180
  apidae_obj.apidae_subtype = ApidaeDataParser.node_id(object_data[type_fields[:node]], type_fields[:subtype])
181
181
  apidae_obj.title_data = ApidaeDataParser.parse_title(object_data, *locales)
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "1.2.29"
2
+ VERSION = "1.2.31"
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.29
4
+ version: 1.2.31
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-10-16 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails