lib/emojidex/data/emoji/asset_information.rb in emojidex-0.3.5 vs lib/emojidex/data/emoji/asset_information.rb in emojidex-0.4.0

- old
+ new

@@ -61,10 +61,11 @@ @paths[:svg] = paths[:svg] if paths.include? :svg return unless paths.include? :png Emojidex::Defaults.sizes.keys.each do |size| @paths[:png][size] = paths[:png][size] if paths[:png].include? size end + @combinations.each { |combo| combo.fill_paths(paths) } @paths end # Acquires path and caches the target file if not found or out of date def path(format, size = nil) @@ -110,9 +111,10 @@ def generate_checksums @checksums[:svg] = _checksum_for_file(@paths[:svg]) @paths[:png].keys.each do |size| @checksums[:png][size] = _checksum_for_file(@paths[:png][size]) end + @combinations.each { |combo| combo.generate_checksums } @checksums end private