dannypurcell / rubycom

Turn your library into a command-line app by simply including Rubycom.
http://dannypurcell.github.io/rubycom/
MIT License
5 stars 0 forks source link

sources and yard_doc use syntax incompatible with ruby 2.0+ #24

Open dannypurcell opened 9 years ago

dannypurcell commented 9 years ago

I have not found the reason for it yet but it seems Ruby 2+ no longer interprets bare if statements correctly when used as a value within a literal map.

In order to support Ruby 2.0+ the if blocks at the following locations must be wrapped in parens /Users/dp025224/.rvm/gems/ruby-2.1.3/gems/rubycom-0.4.3/lib/rubycom/yard_doc.rb:43

/Users/dp025224/.rvm/gems/ruby-2.1.3/gems/rubycom-0.4.3/lib/rubycom/sources.rb:41

Until this fix is in place rubycom may be used with 1.9.3 to work around the issue.