apidae 0.9.35 → 0.9.36
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/obj.rb +4 -4
- data/lib/apidae/version.rb +1 -1
- data/test/dummy/log/development.log +9483 -0
- data/test/dummy/tmp/local_secret.txt +1 -0
- metadata +7 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 230eb7a67ade68fa0c3e3323d2a1e67d11c09c7d5a385f83772f1201e085a1c7
|
|
4
|
+
data.tar.gz: 73c9f271dfbbdbef9a37db2288e8d1ae8cd661184f90821b9409ad57bbc57dc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6566a5e800cfba619944e7c1a41c59eb96486673de33a69a130e5dc428a35e8da57f5a1e4781b0c5591331a44c0c373a5310047a0ccde00ffe782d9f9457d946
|
|
7
|
+
data.tar.gz: 031af09c2b6748b229320261b32e1ca6690322c9d9ebdf6eeea265477753a05d0d0faaaf6a0630d4915a7f43853c492de88591f2c1e55f55f80b701abdf43316
|
data/app/models/apidae/obj.rb
CHANGED
|
@@ -16,7 +16,7 @@ module Apidae
|
|
|
16
16
|
store_accessor :type_data, :categories, :themes, :capacity, :classification, :labels, :chains, :area, :track,
|
|
17
17
|
:products, :audience, :animals, :extra, :duration, :certifications, :business, :complement
|
|
18
18
|
store_accessor :entity_data, :entity_id, :entity_name, :service_provider_id
|
|
19
|
-
store_accessor :contact, :telephone, :email, :website
|
|
19
|
+
store_accessor :contact, :telephone, :email, :website, :contacts
|
|
20
20
|
store_accessor :location_data, :address, :place, :latitude, :longitude, :access, :territories, :environments
|
|
21
21
|
store_accessor :openings_data, :openings_desc, :openings_desc_mode, :openings, :time_periods, :openings_extra
|
|
22
22
|
store_accessor :rates_data, :rates_desc, :rates_desc_mode, :rates, :payment_methods, :includes, :excludes, :rates_complement
|
|
@@ -154,7 +154,7 @@ module Apidae
|
|
|
154
154
|
apidae_obj.apidae_subtype = node_id(object_data[type_fields[:node]], type_fields[:subtype])
|
|
155
155
|
apidae_obj.title_data = parse_title(object_data, *locales)
|
|
156
156
|
apidae_obj.description_data = parse_desc_data(object_data[:presentation], object_data[:donneesPrivees], *locales)
|
|
157
|
-
apidae_obj.contact = contact(object_data[:informations])
|
|
157
|
+
apidae_obj.contact = contact(object_data[:informations], object_data[:contacts])
|
|
158
158
|
apidae_obj.location_data = parse_location_data(object_data[:localisation], object_data[type_fields[:node]],
|
|
159
159
|
object_data[:territoires])
|
|
160
160
|
apidae_obj.town = town(object_data[:localisation])
|
|
@@ -284,8 +284,8 @@ module Apidae
|
|
|
284
284
|
{attachments: atts_data}
|
|
285
285
|
end
|
|
286
286
|
|
|
287
|
-
def self.contact(information_hash)
|
|
288
|
-
contact_details = {}
|
|
287
|
+
def self.contact(information_hash, contacts)
|
|
288
|
+
contact_details = {contacts: contacts || []}
|
|
289
289
|
unless information_hash.blank?
|
|
290
290
|
contact_entries = information_hash[:moyensCommunication] || []
|
|
291
291
|
contact_entries.each do |c|
|
data/lib/apidae/version.rb
CHANGED