apidae 1.2.6 → 1.2.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e166d9bb85e035c9e26b58af45ac77d8c94daa28
|
4
|
+
data.tar.gz: 5c78c072cf0b37a4a257f4b97df8ff442dfdbbc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 925cf979dce41df57663f83ecaeb1985e74dda5da4b83dbd5765aceaff2257902ac4a2c67297a5fd91670e10f6973e34011d251da5da8f45cbd9b753c4f2fae6
|
7
|
+
data.tar.gz: cd1f6aafe332f3f3949d45ef5fc681eb43b2213b0ad4c4b8ca57b14e14c903a20d7a094ccbed8fe4d53a70673553ad8e9393654c09d26791286e3e07b3da91fd
|
@@ -44,7 +44,7 @@ module Apidae
|
|
44
44
|
'LUNDI' => MONDAY,
|
45
45
|
'MARDI' => TUESDAY,
|
46
46
|
'MERCREDI' => WEDNESDAY,
|
47
|
-
'
|
47
|
+
'JEUDI' => THURSDAY,
|
48
48
|
'VENDREDI' => FRIDAY,
|
49
49
|
'SAMEDI' => SATURDAY,
|
50
50
|
'DIMANCHE' => SUNDAY
|
@@ -151,6 +151,7 @@ module Apidae
|
|
151
151
|
name: localized_value(att, :nom, locale),
|
152
152
|
url: att[:traductionFichiers][0][:url].gsub('http:', 'https:'),
|
153
153
|
type: att[:type],
|
154
|
+
link: att[:link],
|
154
155
|
description: localized_value(att, :legende, locale)
|
155
156
|
}
|
156
157
|
end
|
@@ -336,10 +337,15 @@ module Apidae
|
|
336
337
|
end
|
337
338
|
end
|
338
339
|
|
339
|
-
def self.parse_entity_fields(information_hash, type_data_hash)
|
340
|
+
def self.parse_entity_fields(information_hash, type_data_hash, sp_hash)
|
341
|
+
entity_hash = {}
|
340
342
|
if information_hash && information_hash[:structureGestion]
|
341
|
-
{entity_id: information_hash[:structureGestion][:id], service_provider_id: node_id(type_data_hash, :prestataireActivites)}
|
343
|
+
entity_hash.merge!({entity_id: information_hash[:structureGestion][:id], service_provider_id: node_id(type_data_hash, :prestataireActivites)})
|
342
344
|
end
|
345
|
+
if sp_hash && sp_hash[:prestataireActivites]
|
346
|
+
entity_hash[:is_service_provider] = true
|
347
|
+
end
|
348
|
+
entity_hash
|
343
349
|
end
|
344
350
|
|
345
351
|
def self.node_id(node, key)
|
data/app/models/apidae/obj.rb
CHANGED
@@ -16,7 +16,7 @@ module Apidae
|
|
16
16
|
store_accessor :attachments_data, :attachments
|
17
17
|
store_accessor :type_data, :categories, :themes, :capacity, :classification, :labels, :chains, :area, :track,
|
18
18
|
:products, :audience, :animals, :animals_desc, :extra, :duration, :certifications, :business
|
19
|
-
store_accessor :entity_data, :entity_id, :entity_name, :service_provider_id
|
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
|
22
22
|
store_accessor :location_data, :address, :place, :latitude, :longitude, :access, :territories, :environments
|
@@ -84,7 +84,7 @@ module Apidae
|
|
84
84
|
COS => {node: :informationsCommerceEtService, subtype: :commerceEtServiceType},
|
85
85
|
DEG => {node: :informationsDegustation, subtype: :degustationType},
|
86
86
|
DOS => {node: :informationsDomaineSkiable, subtype: :domaineSkiableType},
|
87
|
-
EQU => {node: :informationsEquipement, subtype: :
|
87
|
+
EQU => {node: :informationsEquipement, subtype: :rubrique},
|
88
88
|
FEM => {node: :informationsFeteEtManifestation, subtype: :feteEtManifestationType},
|
89
89
|
HCO => {node: :informationsHebergementCollectif, subtype: :hebergementCollectifType},
|
90
90
|
HLO => {node: :informationsHebergementLocatif, subtype: :hebergementLocatifType},
|
@@ -190,7 +190,7 @@ module Apidae
|
|
190
190
|
object_data[:tourismeAffaires], *locales)
|
191
191
|
apidae_obj.pictures_data = ApidaeDataParser.parse_pictures_data(object_data[:illustrations], *locales)
|
192
192
|
apidae_obj.attachments_data = ApidaeDataParser.parse_attachments_data(object_data[:multimedias], *locales)
|
193
|
-
apidae_obj.entity_data = ApidaeDataParser.parse_entity_fields(object_data[:informations], object_data[type_fields[:node]])
|
193
|
+
apidae_obj.entity_data = ApidaeDataParser.parse_entity_fields(object_data[:informations], object_data[type_fields[:node]], object_data[:informationsPrestataireActivites])
|
194
194
|
apidae_obj.service_data = ApidaeDataParser.parse_service_data(object_data[:prestations], object_data[type_fields[:node]])
|
195
195
|
apidae_obj.tags_data = ApidaeDataParser.parse_tags_data(object_data[:presentation], object_data[:criteresInternes], object_data[:liens])
|
196
196
|
apidae_obj.meta_data = object_data[:metadonnees]
|
@@ -8,9 +8,10 @@ module Apidae
|
|
8
8
|
LOCALE_ZH = 'zh'
|
9
9
|
LOCALE_ES = 'es'
|
10
10
|
LOCALE_PT_BR = 'pt-BR'
|
11
|
+
LOCALE_JP = 'jp'
|
11
12
|
|
12
13
|
DEFAULT_LOCALE = LOCALE_FR
|
13
|
-
ALL_LOCALES = [LOCALE_FR, LOCALE_EN, LOCALE_IT, LOCALE_DE, LOCALE_NL, LOCALE_RU, LOCALE_ZH, LOCALE_ES, LOCALE_PT_BR]
|
14
|
+
ALL_LOCALES = [LOCALE_FR, LOCALE_EN, LOCALE_IT, LOCALE_DE, LOCALE_NL, LOCALE_RU, LOCALE_ZH, LOCALE_ES, LOCALE_PT_BR, LOCALE_JP]
|
14
15
|
|
15
16
|
STANDARD_VERSION = 'STANDARD'
|
16
17
|
WINTER_VERSION = 'HIVER'
|
@@ -24,11 +25,11 @@ module Apidae
|
|
24
25
|
ALL_VERSIONS = [STANDARD_VERSION, WINTER_VERSION, SUMMER_VERSION, CHALLENGED_VERSION, BUSINESS_VERSION,
|
25
26
|
GROUPS_VERSION, ACTIVITIES_VERSION]
|
26
27
|
|
27
|
-
LOCALIZED_FIELDS = [:title, :short_desc, :long_desc, :
|
28
|
+
LOCALIZED_FIELDS = [:title, :short_desc, :long_desc, :pictures, :attachments,
|
28
29
|
:openings_desc, :rates_desc, :includes, :excludes, :extra, :booking_desc]
|
29
30
|
ALL_FIELDS = LOCALIZED_FIELDS + [:theme_desc, :private_desc, :capacity, :telephone, :email, :website,
|
30
31
|
:google, :facebook, :twitter, :yelp, :trip_advisor, :fax, :mobile_website, :shorty_url,
|
31
|
-
:openings, :rates, :services, :payment_methods, :categories, :themes,
|
32
|
-
:classification, :challenged, :environments, :languages, :products,
|
33
|
-
:equipments, :comfort, :activities, :promo, :internal, :linked]
|
32
|
+
:openings, :openings_extra, :rates, :services, :payment_methods, :categories, :themes,
|
33
|
+
:labels, :chains, :classification, :challenged, :environments, :languages, :products,
|
34
|
+
:animals, :equipments, :comfort, :activities, :promo, :internal, :linked]
|
34
35
|
end
|
data/lib/apidae/version.rb
CHANGED
@@ -65,3 +65,5 @@ Migrating to AddLocalesDataToApidaeProjects (20190123214635)
|
|
65
65
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
66
66
|
[1m[36mApidae::Obj Load (26.8ms)[0m [1m[34mSELECT apidae_id, COUNT(id) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL GROUP BY "apidae_objs"."apidae_id" HAVING (COUNT(id) > 1)[0m
|
67
67
|
[1m[36mApidae::Obj Load (2.4ms)[0m [1m[34mSELECT apidae_id, COUNT(id) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL GROUP BY "apidae_objs"."apidae_id" HAVING (COUNT(id) > 1)[0m
|
68
|
+
[1m[36mApidae::Obj Load (0.8ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" ORDER BY "apidae_objs"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
69
|
+
[1m[35m (3.4ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs"[0m
|
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.11
|
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: 2021-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|