Skip to content

Commit 3b906ce

Browse files
committed
fix assets
1 parent e2938c0 commit 3b906ce

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/mongodb_logger/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module MongodbLogger
2-
VERSION = "0.3.0"
2+
VERSION = "0.3.1"
33
end

lib/tasks/mongodb_logger.rake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ namespace :mongodb_logger do
2929
task :compile_imgs, [:output_dir] => :environment do |t, args|
3030
return (raise "Specify output dir for assets") if args.output_dir.nil?
3131
sprockets = MongodbLogger::Assets.instance
32-
asset_name = 'logo.png'
33-
asset = sprockets[asset_name]
34-
asset.write_to(File.join(args.output_dir, sprockets.find_asset(asset_name).digest_path))
32+
asset_names = ['logo.png', 'spinner.gif']
33+
asset_names.each do |asset_name|
34+
asset = sprockets[asset_name]
35+
asset.write_to(File.join(args.output_dir, sprockets.find_asset(asset_name).digest_path))
36+
end
3537
puts "successfully compiled images assets"
3638
end
3739
end

0 commit comments

Comments
 (0)