apidae 1.2.12 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/apidae/apidae_data_parser.rb +3 -2
- 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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d44db939b2c69c3821b8c82b9e38441b69e63ab7
|
|
4
|
+
data.tar.gz: 5762520b0275479d67ce316d177c3f750c7519e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12d44dcf49f4b3288ed04381405fc0188adb8715aa49cd2586b80a3bdab572780ba47470dfcab7d0033b21c05ebb5a42583ab346cd64c309d62b64d0da92aa3f
|
|
7
|
+
data.tar.gz: 63edb21d44e5997086a883570ac71de38e3910f85d39c322cbe37acdf377bbb2d764f08af339e1b1703f2279b29543259107610942de3b64830ee828940657ed
|
|
@@ -220,10 +220,10 @@ module Apidae
|
|
|
220
220
|
loc_data.merge!({place: type_data_hash[:nomLieu]}) if type_data_hash
|
|
221
221
|
geoloc_details = location_hash[:geolocalisation]
|
|
222
222
|
if geoloc_details && geoloc_details[:valide] && geoloc_details[:geoJson]
|
|
223
|
-
loc_data[:altitude] = geoloc_details[:altitude]
|
|
224
223
|
loc_data[:latitude] = geoloc_details[:geoJson][:coordinates][1]
|
|
225
224
|
loc_data[:longitude] = geoloc_details[:geoJson][:coordinates][0]
|
|
226
225
|
end
|
|
226
|
+
loc_data[:altitude] = geoloc_details[:altitude] if geoloc_details
|
|
227
227
|
loc_data[:access] = node_value(geoloc_details, :complement) if geoloc_details
|
|
228
228
|
loc_data[:environments] = location_hash[:environnements].map {|e| e[:id]} if location_hash[:environnements]
|
|
229
229
|
end
|
|
@@ -278,7 +278,8 @@ module Apidae
|
|
|
278
278
|
(node_id(data_hash, :typeLabel) ? [node_id(data_hash, :typeLabel)] : []),
|
|
279
279
|
chains: lists_ids(data_hash[:chaines]) + nodes_ids(data_hash[:chaineEtLabel]),
|
|
280
280
|
area: apidae_obj.apidae_type == Obj::DOS ? data_hash.except(:classification) : node_value(data_hash, :lieuDePratique),
|
|
281
|
-
track: apidae_obj.apidae_type == Obj::EQU ? data_hash[:itineraire] : nil,
|
|
281
|
+
track: apidae_obj.apidae_type == Obj::EQU ? (data_hash[:itineraire] || {}).except(:passagesDelicats) : nil,
|
|
282
|
+
tricky_sections: apidae_obj.apidae_type == Obj::EQU ? data_hash.dig(:itineraire, :passagesDelicats) : nil,
|
|
282
283
|
products: lists_ids(data_hash[:typesProduit], data_hash[:aopAocIgps], data_hash[:specialites]),
|
|
283
284
|
audience: lists_ids(prestations_hash[:typesClientele]),
|
|
284
285
|
animals: {allowed: prestations_hash[:animauxAcceptes] == 'ACCEPTES', desc: node_value(prestations_hash, :descriptifAnimauxAcceptes, *locales),
|
data/app/models/apidae/obj.rb
CHANGED
|
@@ -15,7 +15,7 @@ module Apidae
|
|
|
15
15
|
store_accessor :pictures_data, :pictures
|
|
16
16
|
store_accessor :attachments_data, :attachments
|
|
17
17
|
store_accessor :type_data, :categories, :themes, :capacity, :classification, :labels, :chains, :area, :track,
|
|
18
|
-
:products, :audience, :animals, :animals_desc, :extra, :duration, :certifications, :business
|
|
18
|
+
:tricky_sections, :products, :audience, :animals, :animals_desc, :extra, :duration, :certifications, :business
|
|
19
19
|
store_accessor :entity_data, :entity_id, :entity_name, :service_provider_id, :is_service_provider
|
|
20
20
|
store_accessor :contact_data, :telephone, :email, :website, :google, :facebook, :twitter, :yelp, :trip_advisor, :fax,
|
|
21
21
|
:mobile_website, :shorty_url, :contacts
|
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.13
|
|
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: 2021-
|
|
11
|
+
date: 2021-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|