Dec 09
Dec
09
Bad Monkey Patch.
A gem we are trying out (Blackbook) decided to override a common string method:
class String
alias :blank? :empty?
end
Um, this method is used everywhere in rails and has a much different definition:
class String #:nodoc:
def blank?
self !~ /\S/
end
end
Bad monkey
Dec 03
Dec
03
I read great things about giternal here.
I ran into problems trying to install it based on the README, though. I installed the gem from RubyForge but wasn’t able to find the giternal executable. And trying to run the sake tasks gave errors like:
/Library/Ruby/Gems/1.8/gems/RubyInline-3.6.7/lib/inline.rb:732:in `initialize’: Permission denied – /Users/jolma/.ruby_inline/Inline_ParseTree_fa12.c (Errno::EACCES)
and
undefined local variable or [...]