leandrosilva/slogger — Issue #5: Syntax error in 1.8.7
Author: rb2k
Created: 2012-02-17 12:21:27+00:00
State: open

Seems to load fine in 1.9 for me, but for 1.8.7 I end up with this:

slogger-0.0.7/lib/slogger/common_logger.rb:72: syntax error, unexpected '=', expecting '|' (SyntaxError)
define_method severity do |message = nil, &block|
^
./vendor/gems/slogger-0.0.7/lib/slogger/common_logger.rb:72: Can't assign to nil
define_method severity do |message = nil, &block|
^
./vendor/gems/slogger-0.0.7/lib/slogger/common_logger.rb:73: syntax error, unexpected tCONSTANT, expecting kDO or '{' or '('
log BRIDGE_SEVERITIES[severity], message, &block
^
./vendor/gems/slogger-0.0.7/lib/slogger/common_logger.rb:73: syntax error, unexpected tAMPER, expecting '='
log BRIDGE_SEVERITIES[severity], message, &block
^
./vendor/gems/slogger-0.0.7/lib/slogger/common_logger.rb:81: syntax error, unexpected kEND, expecting $end
from /Users/mseeger/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from ./vendor/gems/slogger-0.0.7/lib/slogger.rb:6