injekt/slop — Issue #35: Small warning in 1.8.7
Author: shevegen
Created: 2011-11-11 20:12:21+00:00
State: open

Ruby 1.8.7 throws a warning:

options.push (@arguments || extras[:argument]) ? true : (args.shift ? true : false)

Should be changed to:

options.push(@arguments || extras[:argument]) ? true : (args.shift ? true : false)

Then the warning disappears:

/Programs/Ruby/1.8.7p334/lib/ruby/site_ruby/1.8/slop.rb:1019: warning: don't put space before argument parentheses