[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: favico.js and sprockets 3



On Friday 08 of January 2016 01:03:29 Pirate Praveen wrote:
> On Thursday 07 January 2016 02:02 AM, Pirate Praveen wrote:
> > On Sunday 03 January 2016 12:26 PM, Pirate Praveen wrote:
> >> reported against ruby-sprockets
> >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809707
> > 
> > sprockets 3 is causing more issues
> > https://rubygems.org/gems/compass-rails wants sprockets < 2.13 and rake
> > assets:precompile fails in diaspora. I think the best option is to embed
> > sprockets 2.12 inside diaspora like we did bootstrap-sass. I don't think
> > a proper fix will come any time soon
> > https://github.com/Compass/compass-rails/issues/232
> 
> I added sprockets 2.12.4 inside diaspora source and bundler happily
> accepts it, but when I run rake assets:precompile it uses sprockets 3.3
> from system path and fails
> 
> rake aborted!
> TypeError: Cache is not a class
> /usr/lib/ruby/vendor_ruby/sprockets/cache.rb:38:in `<module:Sprockets>'
> /usr/lib/ruby/vendor_ruby/sprockets/cache.rb:4:in `<top (required)>'
> /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:274:in `require'
> /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:274:in `block
> in require'
> 
> See full log attached.
> 
> If I remove ruby-sprockets 3.3 with dpkg -r --force-all ruby-sprockets
> rake proceeds and precompile is successful.
> 
> I tried adding path to embedded sprockets to loadpath in Rakefile as
> well as setting RUBYLIB variable from commandline, but both did not work.
> 
> # Work around for sprockets 2.12
> $:.unshift '/usr/share/diaspora/vendor/gems/sprockets-2.12.4/lib'
> 
> RUBYLIB=/usr/share/diaspora/vendor/gems/sprockets-2.12.4/lib sudo -E -u
> diaspora bundle exec rake assets:precompile --trace 2>&1 | tee
> /tmp/assets-precompile.log
> 
> Any other way I missed which I can use to force bundler to use sprockets
> 2.12.4? I cannot add a conflict with ruby-sprockets >= 3.3 as sass-rails
> and many other packages depend on ruby-sprockets (only 3.3 in the archive).
> 
> Any help fixing this issue is appreciated. This would make diaspora
> installable again, its sad when people can't install it immediately
> after entering testing.

Hi, 
you should probably do the same in gitlab, after you find the right solution .
There is also problem with sprockets 3.3, it cannot find mousetrap/pause 
during assets compile.

Should it be possible to create package like ruby-sprockets2 or something like 
that? (I don't really understand ruby and how bundler works, so just asking)

Libor


Reply to: