apidae 1.2.27 → 1.2.29

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a6d99e78f384b6bf1807fc9a6ba07cda1f9bff30ed932c2ae6ebccb229f354a
4
- data.tar.gz: c52c6b9221392e353b863ef489d6fd1f739036b137a1d627e8b525c9e81f6cd4
3
+ metadata.gz: b2b32d29c7fda2d444873eb02202333f0b4aba4fa88aa885ca6dfc122046471e
4
+ data.tar.gz: c7c603f93c675854d30420c2febab0f472c4bc71b404572809fda5d5d382b514
5
5
  SHA512:
6
- metadata.gz: c407158dba1f94aff7b68a11782717deb4b7d81f55ca3f9defa74752de7bd78a1cdece35ae203c9e8db032c23e6c35c25164c1d1e0b00b1714b64a7506e33d22
7
- data.tar.gz: 7110133dca759d1df90aec75b1f83fae826aae1a2ba3282eca456ca7ba6a4274c25aaad3b46a4dea3cf337299e78d6a65e40de55d4297fbca69b92bee2bace8f
6
+ metadata.gz: 6bc3877ca1af9382b728947c17e31309753536e2242a257c808585ec6692886f950bb93216f2b79bb5aa7ad315db6e3b56a50a276ed08f2c3ce9bfad4dcccbbe
7
+ data.tar.gz: '0619277eb5e642f0f2d4a6158de9f924f9eabee4cc90b1e6835b5ebb93c2f0e74ba94970f25caedd6c477247f5670841b684b754f1dd1835028f6b2cb7fdd1c3'
@@ -101,10 +101,15 @@ module Apidae
101
101
  {title: node_value(data_hash, :nom, *locales)}
102
102
  end
103
103
 
104
- def self.parse_owner_data(data_hash)
104
+ def self.parse_owner_data(data_hash, polls_data)
105
+ owner_data = {}
105
106
  unless data_hash.blank?
106
- {owner_name: data_hash[:nom], owner_id: data_hash[:id]}
107
+ owner_data.merge!({owner_name: data_hash[:nom], owner_id: data_hash[:id]})
107
108
  end
109
+ unless polls_data.blank?
110
+ owner_data.merge!({polls: polls_data[:enquetes] || []})
111
+ end
112
+ owner_data
108
113
  end
109
114
 
110
115
  def self.parse_desc_data(data_hash, private_data, *locales)
@@ -332,7 +337,7 @@ module Apidae
332
337
  def self.parse_booking(reservation_hash, visits_hash, *locales)
333
338
  booking_hash = {}
334
339
  if reservation_hash
335
- booking_hash[:booking_desc] = node_value(reservation_hash, :complement, *locales),
340
+ booking_hash[:booking_desc] = node_value(reservation_hash, :complement, *locales)
336
341
  booking_hash[:booking_entities] = reservation_hash[:organismes]
337
342
  end
338
343
  if visits_hash
@@ -10,7 +10,7 @@ module Apidae
10
10
  attr_accessor :obj_versions
11
11
 
12
12
  store_accessor :title_data, :title
13
- store_accessor :owner_data, :owner_name, :owner_id
13
+ store_accessor :owner_data, :owner_name, :owner_id, :polls
14
14
  store_accessor :description_data, :short_desc, :long_desc, :theme_desc, :private_desc
15
15
  store_accessor :pictures_data, :pictures
16
16
  store_accessor :attachments_data, :attachments
@@ -175,7 +175,7 @@ module Apidae
175
175
  def self.populate_fields(apidae_obj, object_data, locales)
176
176
  type_fields = TYPES_DATA[object_data[:type]]
177
177
  apidae_obj.last_update = DateTime.parse(object_data[:gestion][:dateModification]) unless object_data[:gestion].blank?
178
- apidae_obj.owner_data = ApidaeDataParser.parse_owner_data(object_data[:gestion][:membreProprietaire]) unless object_data[:gestion].blank?
178
+ apidae_obj.owner_data = ApidaeDataParser.parse_owner_data(object_data[:gestion][:membreProprietaire], object_data[:enquete]) unless (object_data[:gestion].blank? && object_data[:gestion].blank?)
179
179
  apidae_obj.apidae_type = object_data[:type]
180
180
  apidae_obj.apidae_subtype = ApidaeDataParser.node_id(object_data[type_fields[:node]], type_fields[:subtype])
181
181
  apidae_obj.title_data = ApidaeDataParser.parse_title(object_data, *locales)
@@ -219,7 +219,7 @@ module Apidae
219
219
  def get_response(args)
220
220
  response = ''
221
221
  query = JSON.generate args.except(:url)
222
- logger.info "Apidae API query : #{args[:url]}?query=#{query}"
222
+ logger.debug "Apidae API query : #{args[:url]}?query=#{query}"
223
223
  open("#{args[:url]}?query=#{CGI.escape query}") { |f|
224
224
  f.each_line {|line| response += line if line}
225
225
  }
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "1.2.27"
2
+ VERSION = "1.2.29"
3
3
  end
@@ -22,3 +22,195 @@ For historical reasons, it may run twice, so it has to be idempotent.
22
22
  Check the "Autoloading and Reloading Constants" guide to learn more about how
23
23
  Rails autoloads and reloads.
24
24
  (called from <top (required)> at /Users/jbvilain/workspace/apidae-engine-rails/test/dummy/config/environment.rb:5)
25
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
26
+
27
+ Being able to do this is deprecated. Autoloading during initialization is going
28
+ to be an error condition in future versions of Rails.
29
+
30
+ Reloading does not reboot the application, and therefore code executed during
31
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
32
+ the expected changes won't be reflected in that stale Module object.
33
+
34
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
35
+
36
+ In order to autoload safely at boot time, please wrap your code in a reloader
37
+ callback this way:
38
+
39
+ Rails.application.reloader.to_prepare do
40
+ # Autoload classes and modules needed at boot time here.
41
+ end
42
+
43
+ That block runs when the application boots, and every time there is a reload.
44
+ For historical reasons, it may run twice, so it has to be idempotent.
45
+
46
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
47
+ Rails autoloads and reloads.
48
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
49
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
50
+
51
+ Being able to do this is deprecated. Autoloading during initialization is going
52
+ to be an error condition in future versions of Rails.
53
+
54
+ Reloading does not reboot the application, and therefore code executed during
55
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
56
+ the expected changes won't be reflected in that stale Module object.
57
+
58
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
59
+
60
+ In order to autoload safely at boot time, please wrap your code in a reloader
61
+ callback this way:
62
+
63
+ Rails.application.reloader.to_prepare do
64
+ # Autoload classes and modules needed at boot time here.
65
+ end
66
+
67
+ That block runs when the application boots, and every time there is a reload.
68
+ For historical reasons, it may run twice, so it has to be idempotent.
69
+
70
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
71
+ Rails autoloads and reloads.
72
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
73
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
74
+
75
+ Being able to do this is deprecated. Autoloading during initialization is going
76
+ to be an error condition in future versions of Rails.
77
+
78
+ Reloading does not reboot the application, and therefore code executed during
79
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
80
+ the expected changes won't be reflected in that stale Module object.
81
+
82
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
83
+
84
+ In order to autoload safely at boot time, please wrap your code in a reloader
85
+ callback this way:
86
+
87
+ Rails.application.reloader.to_prepare do
88
+ # Autoload classes and modules needed at boot time here.
89
+ end
90
+
91
+ That block runs when the application boots, and every time there is a reload.
92
+ For historical reasons, it may run twice, so it has to be idempotent.
93
+
94
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
95
+ Rails autoloads and reloads.
96
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
97
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
98
+
99
+ Being able to do this is deprecated. Autoloading during initialization is going
100
+ to be an error condition in future versions of Rails.
101
+
102
+ Reloading does not reboot the application, and therefore code executed during
103
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
104
+ the expected changes won't be reflected in that stale Module object.
105
+
106
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
107
+
108
+ In order to autoload safely at boot time, please wrap your code in a reloader
109
+ callback this way:
110
+
111
+ Rails.application.reloader.to_prepare do
112
+ # Autoload classes and modules needed at boot time here.
113
+ end
114
+
115
+ That block runs when the application boots, and every time there is a reload.
116
+ For historical reasons, it may run twice, so it has to be idempotent.
117
+
118
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
119
+ Rails autoloads and reloads.
120
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
121
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
122
+
123
+ Being able to do this is deprecated. Autoloading during initialization is going
124
+ to be an error condition in future versions of Rails.
125
+
126
+ Reloading does not reboot the application, and therefore code executed during
127
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
128
+ the expected changes won't be reflected in that stale Module object.
129
+
130
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
131
+
132
+ In order to autoload safely at boot time, please wrap your code in a reloader
133
+ callback this way:
134
+
135
+ Rails.application.reloader.to_prepare do
136
+ # Autoload classes and modules needed at boot time here.
137
+ end
138
+
139
+ That block runs when the application boots, and every time there is a reload.
140
+ For historical reasons, it may run twice, so it has to be idempotent.
141
+
142
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
143
+ Rails autoloads and reloads.
144
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
145
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
146
+
147
+ Being able to do this is deprecated. Autoloading during initialization is going
148
+ to be an error condition in future versions of Rails.
149
+
150
+ Reloading does not reboot the application, and therefore code executed during
151
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
152
+ the expected changes won't be reflected in that stale Module object.
153
+
154
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
155
+
156
+ In order to autoload safely at boot time, please wrap your code in a reloader
157
+ callback this way:
158
+
159
+ Rails.application.reloader.to_prepare do
160
+ # Autoload classes and modules needed at boot time here.
161
+ end
162
+
163
+ That block runs when the application boots, and every time there is a reload.
164
+ For historical reasons, it may run twice, so it has to be idempotent.
165
+
166
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
167
+ Rails autoloads and reloads.
168
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
169
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
170
+
171
+ Being able to do this is deprecated. Autoloading during initialization is going
172
+ to be an error condition in future versions of Rails.
173
+
174
+ Reloading does not reboot the application, and therefore code executed during
175
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
176
+ the expected changes won't be reflected in that stale Module object.
177
+
178
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
179
+
180
+ In order to autoload safely at boot time, please wrap your code in a reloader
181
+ callback this way:
182
+
183
+ Rails.application.reloader.to_prepare do
184
+ # Autoload classes and modules needed at boot time here.
185
+ end
186
+
187
+ That block runs when the application boots, and every time there is a reload.
188
+ For historical reasons, it may run twice, so it has to be idempotent.
189
+
190
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
191
+ Rails autoloads and reloads.
192
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
193
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
194
+
195
+ Being able to do this is deprecated. Autoloading during initialization is going
196
+ to be an error condition in future versions of Rails.
197
+
198
+ Reloading does not reboot the application, and therefore code executed during
199
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
200
+ the expected changes won't be reflected in that stale Module object.
201
+
202
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
203
+
204
+ In order to autoload safely at boot time, please wrap your code in a reloader
205
+ callback this way:
206
+
207
+ Rails.application.reloader.to_prepare do
208
+ # Autoload classes and modules needed at boot time here.
209
+ end
210
+
211
+ That block runs when the application boots, and every time there is a reload.
212
+ For historical reasons, it may run twice, so it has to be idempotent.
213
+
214
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
215
+ Rails autoloads and reloads.
216
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)