apidae 1.3.9 → 1.3.10
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 +2 -2
- data/app/models/apidae/obj.rb +1 -2
- 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: ff7e99f43738b625845c69d825db7272d23ac2d65f95750434a5ec9c1f758c21
|
|
4
|
+
data.tar.gz: a445c317db55b883f9226bc41885445c9d67d481fe5e09bb520ebeb3f5b870b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 947899964c8bd92cf170f2efa7b26d174422cbaf6c6fee4dc582fe8fce8f1cce9ec4f165dd53147356fceb1a60b7c7b5829f40e2ff17057c9d53555c59967652
|
|
7
|
+
data.tar.gz: 89de66fd894f4138e5f658d25c4e606f9d797cc2405d3f76bf85b12952b3c6ced414dbf07d1b8fb0e91177346ef28f29f4ffaeab234253b011413369ce6b7050
|
|
@@ -286,8 +286,8 @@ module Apidae
|
|
|
286
286
|
tricky_sections: apidae_obj.apidae_type == Obj::EQU ? node_value(data_hash[:itineraire], :passagesDelicats, *locales) : nil,
|
|
287
287
|
products: lists_ids(data_hash[:typesProduit], data_hash[:aopAocIgps], data_hash[:specialites]),
|
|
288
288
|
audience: lists_ids(prestations_hash[:typesClientele]),
|
|
289
|
-
animals: {allowed: prestations_hash[:animauxAcceptes] == 'ACCEPTES',
|
|
290
|
-
fee: prestations_hash[:animauxAcceptesSupplement] == 'AVEC_SUPPLEMENT'},
|
|
289
|
+
animals: {allowed: prestations_hash[:animauxAcceptes] == 'ACCEPTES', unknown: prestations_hash[:animauxAcceptes] == 'NON_DISPONIBLE',
|
|
290
|
+
desc: node_value(prestations_hash, :descriptifAnimauxAcceptes, *locales), fee: prestations_hash[:animauxAcceptesSupplement] == 'AVEC_SUPPLEMENT'},
|
|
291
291
|
extra: apidae_obj.apidae_type == Obj::SPA ? node_value(data_hash, :formuleHebergement, *locales) : node_value(prestations_hash, :complementAccueil, *locales),
|
|
292
292
|
duration: apidae_obj.apidae_type == Obj::SPA ? {days: data_hash[:nombreJours], nights: data_hash[:nombreNuits]} : data_hash[:dureeSeance],
|
|
293
293
|
certifications: data_hash[:agrements].blank? ? [] : data_hash[:agrements].map {|a| {id: a[:type][:id], identifier: a[:numero]}},
|
data/app/models/apidae/obj.rb
CHANGED
|
@@ -80,11 +80,10 @@ module Apidae
|
|
|
80
80
|
STR = 'STRUCTURE'
|
|
81
81
|
TER = 'TERRITOIRE'
|
|
82
82
|
|
|
83
|
-
# Todo : subtype for DEG shoud be :statutsExploitant (double check and fix in 1.2 and master)
|
|
84
83
|
TYPES_DATA = {
|
|
85
84
|
ACT => {node: :informationsActivite, subtype: :activiteType},
|
|
86
85
|
COS => {node: :informationsCommerceEtService, subtype: :commerceEtServiceType},
|
|
87
|
-
DEG => {node: :informationsDegustation, subtype: :
|
|
86
|
+
DEG => {node: :informationsDegustation, subtype: :statutsExploitant},
|
|
88
87
|
DOS => {node: :informationsDomaineSkiable, subtype: :domaineSkiableType},
|
|
89
88
|
EQU => {node: :informationsEquipement, subtype: :rubrique},
|
|
90
89
|
FEM => {node: :informationsFeteEtManifestation, subtype: :feteEtManifestationType},
|
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.3.
|
|
4
|
+
version: 1.3.10
|
|
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-05-
|
|
11
|
+
date: 2022-05-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|