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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7426138fffb907d9917ac5d115a954002023efcc6a2ccbe0d6e27a0ca5f4e85d
4
- data.tar.gz: d4716809c8a3bb226d8cf538a23c07e2e926a65b1d396911f680cef4dba8cc3f
3
+ metadata.gz: d92dc099fdc8a2db216b64bc67748b47389b1288acbbe022bba48939fd3d1f38
4
+ data.tar.gz: 7b2b5197ccedd323f884d3bde5b160c37d1a059a3ab0e75c2938a0e31939bd71
5
5
  SHA512:
6
- metadata.gz: a0e49d2d72be1d4f9f0036ca7da7138fb778af340a363b97b2a027062d166dfdf88dc7bc9db9ba83b4b66a186290d157767592552eb889f42c4ba8b5a4b0671d
7
- data.tar.gz: 44d1a75ac8f9a9a14d3bc54ab31a9b9fdb1bef8bfa35f9edb7d2c19891e1637e89ed6e6f10bd1fd3131966293de66c788508988b1ac3b46cb71017dd3235bb37
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[:height]}
141
+ properties: {size: pic_file[:taille], width: pic_file[:largeur], height: pic_file[:hauteur]}
142
142
  }
143
143
  end
144
144
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apidae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Baptiste Vilain