less.ruby icon indicating copy to clipboard operation
less.ruby copied to clipboard

less and sitemap_generator don't like each other

Open rounders opened this issue 15 years ago • 3 comments

hi, I run into errors when trying to use less and sitemap_generator gems on the same project. The cause ,as best as I can tell, seems to be that less adds a method called verbose to Object. sitemap_generator has its own method called verbose but it gets overridden by the one in the less gem.

rounders avatar Oct 13 '10 19:10 rounders

Yes, it happens to me too.

This is already been spotted by the following two threads in http://github.com/kjvarga/sitemap_generator Issues: http://github.com/kjvarga/sitemap_generator/issues/closed#issue/14 http://github.com/kjvarga/sitemap_generator/issues/closed#issue/17

bye Luca

lgs avatar Oct 27 '10 16:10 lgs

The way that less overrides the Object#verbose breaks the Rake API, which is what sitemap_generator uses.

You'll need to only extend certain objects, rather than all objects.

kjvarga avatar Oct 28 '10 17:10 kjvarga

Still an issue today, about a year later!

glennfu avatar Sep 14 '11 19:09 glennfu