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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14c1e6c1ecb7759e122f8b6598d38df5a3c6c65e
4
- data.tar.gz: b053447b481455f07d200ea6c3c2ddaa306ce451
3
+ metadata.gz: d44db939b2c69c3821b8c82b9e38441b69e63ab7
4
+ data.tar.gz: 5762520b0275479d67ce316d177c3f750c7519e1
5
5
  SHA512:
6
- metadata.gz: 75533fc47e84a10f7fe1409103bb4aa027a7f807581565f690fb575c45beb9f05a21e3741702ec47dd85a77ca9534b82a8087af911e0f32df81e1142881e7a36
7
- data.tar.gz: 4ce2cc2ebd34a81f1029d258a36fe522a9900f33adfcd029cfb01c29a22034ff3b0edb84a8d40cd3542ec0df95ce33741047e07607edacaffd82426084bc0c69
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),
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "1.2.12"
2
+ VERSION = "1.2.13"
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.12
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-03-22 00:00:00.000000000 Z
11
+ date: 2021-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails