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 +4 -4
- data/app/models/apidae/apidae_data_parser.rb +1 -1
- data/app/models/apidae/obj.rb +1 -1
- data/lib/apidae/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8acf5c12e537372c888d4e7215ae6d42a0d1bfada156cb4c09df72d3425d4119
|
4
|
+
data.tar.gz: bd8ec42eaf3fef49e27ec4895766509530223da0d78cc1859efca72d13059146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]
|
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]
|
data/app/models/apidae/obj.rb
CHANGED
@@ -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[:
|
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)
|
data/lib/apidae/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|