apidae 1.2.29 → 1.2.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: b2b32d29c7fda2d444873eb02202333f0b4aba4fa88aa885ca6dfc122046471e
4
- data.tar.gz: c7c603f93c675854d30420c2febab0f472c4bc71b404572809fda5d5d382b514
3
+ metadata.gz: 8acf5c12e537372c888d4e7215ae6d42a0d1bfada156cb4c09df72d3425d4119
4
+ data.tar.gz: bd8ec42eaf3fef49e27ec4895766509530223da0d78cc1859efca72d13059146
5
5
  SHA512:
6
- metadata.gz: 6bc3877ca1af9382b728947c17e31309753536e2242a257c808585ec6692886f950bb93216f2b79bb5aa7ad315db6e3b56a50a276ed08f2c3ce9bfad4dcccbbe
7
- data.tar.gz: '0619277eb5e642f0f2d4a6158de9f924f9eabee4cc90b1e6835b5ebb93c2f0e74ba94970f25caedd6c477247f5670841b684b754f1dd1835028f6b2cb7fdd1c3'
6
+ metadata.gz: eff2ace093426266867157949dfb8eeaf55b49476bbeb7422c1967bfada14ebbe3037b441fb51e4649bc2159c3cdbc3656f06527546556cf639c64f3e502d9a8
7
+ data.tar.gz: 5ad0b4798062f938ecc02f8971ac2cb65c8e8f3d9aeca31f9c407fb31123eadfa88ea1b5c2a9c4f10be6214cb173da0a658b5144a3fe10e9e832a65513156d7b
@@ -222,7 +222,7 @@ module Apidae
222
222
  computed_address << address_hash[:adresse3] unless address_hash[:adresse3].blank?
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.30"
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.30
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: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails