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 +4 -4
- data/app/models/apidae/apidae_data_parser.rb +4 -4
- 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: 062ad531aa659b7d8a57b19e6104e0e4636213fec13b4672d7d81aaf3213e0f9
|
4
|
+
data.tar.gz: 28a6b823f51365534631d787db318ab17c8061231447538dc5cfe58ca0a1a69f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]
|
221
|
-
computed_address << address_hash[:adresse2]
|
222
|
-
computed_address << address_hash[:adresse3]
|
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]
|
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.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:
|
11
|
+
date: 2023-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|