rails/commands

Ruby 1.8.7 not supported

mobilutz opened this issue · 1 comments

Unfortunately I can't use commands because my project uses ruby 1.8.7

The problem is the new Hash Syntax.

/XXX/vendor/bundle/gems/backports-3.3.2/lib/backports/tools.rb:328:in 'require_without_backports': /XXX/vendor/bundle/gems/commands-0.2.1/lib/rails/commands/console_delegation.rb:19: syntax error, unexpected ':', expecting kEND (SyntaxError)
      delegate :rake, :generate, :destroy, :update, to: :commander
                                                       ^

Note the backports-3.3.2 in the path: that's in the backports gem, not commands. Try freezing backports to an earlier version to work around that!