[DRE-maint] Bug#797972: add sprockets tests for rails engines

Pirate Praveen praveen at debian.org
Sun Sep 6 14:51:38 UTC 2015



On 2015, സെപ്റ്റംബർ 6 6:25:51 PM IST, Antonio Terceiro <terceiro at debian.org> wrote:
>On Sun, Sep 06, 2015 at 03:14:42PM +0530, Pirate Praveen wrote:
>> @import always succeed and =require always fails.
>> 
>> Copying debian-ruby for ideas.
>
>@import is only for css/sass ... you want =require. the fact that it
>always fails most probably means the package broken, or it's looking
>for
>the assets in /usr/share during the build, when they are there yet.

They are failing even after the package is installed. 

Package is not broken because 

bundle exec rake assets:precompile 

Works fine on a rails app

rails new foo
cd foo
echo '// = require favico.js' >> app/assets/javascripts/application.js

It fails if we don't add rails-assets-favico.js to Gemfile. But it succeeds once I add it to Gemfile and run bundle install --local.

Is sprockets -r enough to load the gem?

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the Pkg-ruby-extras-maintainers mailing list