apidae 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/apidae/apidae_data_parser.rb +1 -1
- data/app/models/apidae/obj.rb +2 -1
- data/lib/apidae/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d92dc099fdc8a2db216b64bc67748b47389b1288acbbe022bba48939fd3d1f38
|
4
|
+
data.tar.gz: 7b2b5197ccedd323f884d3bde5b160c37d1a059a3ab0e75c2938a0e31939bd71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8becb5d521d51399edb4ff5dbd51ecc5e30ee6bce5469ecb1fcdce4866bea774e88e62f34b8a8582c174cbe3cf5fb36b03f63a2d7655a8d03896f19b550ed7bb
|
7
|
+
data.tar.gz: 5f021e8d243e7ccedbcdf7e08a872bda1ae7ce0c5b65ad6601e0413490847ae369de2666f9470f8f5d4ec244511a6eb3b2595481feeb4581090458a1c14dfd5a
|
@@ -138,7 +138,7 @@ module Apidae
|
|
138
138
|
description: localized_value(pic, :legende, locale),
|
139
139
|
credits: localized_value(pic, :copyright, locale),
|
140
140
|
expiration_date: pic[:dateLimiteDePublication] || '',
|
141
|
-
properties: {size: pic_file[:taille], width: pic_file[:largeur], height: pic_file[:
|
141
|
+
properties: {size: pic_file[:taille], width: pic_file[:largeur], height: pic_file[:hauteur]}
|
142
142
|
}
|
143
143
|
end
|
144
144
|
end
|
data/app/models/apidae/obj.rb
CHANGED
@@ -8,6 +8,7 @@ module Apidae
|
|
8
8
|
attr_accessor :locale
|
9
9
|
attr_accessor :obj_version
|
10
10
|
attr_accessor :obj_versions
|
11
|
+
attr_accessor :skip_archiving
|
11
12
|
|
12
13
|
store_accessor :title_data, :title
|
13
14
|
store_accessor :owner_data, :owner_name, :owner_id, :polls
|
@@ -152,7 +153,7 @@ module Apidae
|
|
152
153
|
self.prev_data ||= {}
|
153
154
|
ignored_root_attributes = ['prev_data', 'updated_at']
|
154
155
|
changed_attributes.each_pair do |attr, prev_value|
|
155
|
-
unless ignored_root_attributes.include?(attr)
|
156
|
+
unless ignored_root_attributes.include?(attr) || skip_archiving
|
156
157
|
if prev_value.is_a?(Hash)
|
157
158
|
archive_hash_value(prev_value)
|
158
159
|
else
|
data/lib/apidae/version.rb
CHANGED