rake-pipeline icon indicating copy to clipboard operation
rake-pipeline copied to clipboard

copy filter work wrong on binary files

Open rkmax opened this issue 12 years ago • 6 comments

when i try to copy file like images (ico, png) always the size grows

AssetFile

$: << 'lib'

require 'rake-pipeline'


output  'src/images'
input 'public/images' do
  match '*.png' do
    copy
  end
end

Command used

$ rakep

Enviroment

Ruby 1.9.3p194 (2012-04-20) [i386-mingw32] Windows 8 x64 bits

gem rake-pipeline 0.7.0 gem rake-pipeline-web-filters 0.7.0

rkmax avatar Oct 16 '12 01:10 rkmax

I think this might be fixed in #112, but I've only tested it on my Mac. Would you be able to try it on your Windows machine and see if it works? Thanks!

joefiorini avatar Oct 28 '12 17:10 joefiorini

@rkmax Any chance to look at this?

wagenet avatar Nov 13 '12 19:11 wagenet

I am getting this still, this is a showstopper. Any updates on this?

plrdev avatar Jan 24 '13 17:01 plrdev

The same here...

Images get corrupted with both binary concat and copy filters:

BINARY CONCAT

ConcatFilter = Rake::Pipeline::ConcatFilter ConcatFilter.processes_binary_files() match "static/*/" do filter ConcatFilter do |input| input.sub(/static//, '') end end

COPY

match 'static/*/' do copy end

ENVIRONMENT

Ruby 1.9.3p194 (2012-04-20) [i386-mingw32] Windows 8 x64 bits

gem rake-pipeline 0.8.0 gem rake-pipeline-web-filters 0.7.0

ronaldocpontes avatar Feb 13 '13 13:02 ronaldocpontes

Has anyone found a solution for this?

ronaldocpontes avatar Apr 26 '13 16:04 ronaldocpontes

I've just updated my pull request on this (#112) to the solution I've been using for awhile. It successfully copies images & fonts for me. Can anyone else try this out and see if it works for them?

joefiorini avatar Apr 28 '13 16:04 joefiorini