phallstrom / slackistrano

Slack integration for Capistrano deployments.
MIT License
373 stars 74 forks source link

Errors when running cap #11

Closed drafie closed 10 years ago

drafie commented 10 years ago

Not sure what is going on - I installed per instructions. I am using CAP 3.2.1, Ruby 1.9.3

created Gemfile added gem to it ran bundle

cap

cap aborted! SyntaxError: /var/lib/gems/1.9.1/gems/slackistrano-0.1.0/lib/slackistrano.rb:8: syntax error, unexpected tLABEL, expecting ')' def self.post(team: nil, token: nil, via_slackbo... ^ /var/lib/gems/1.9.1/gems/slackistrano-0.1.0/lib/slackistrano.rb:8: Can't assign to nil def self.post(team: nil, token: nil, via_slackbot: fa... ^ /var/lib/gems/1.9.1/gems/slackistrano-0.1.0/lib/slackistrano.rb:8: Can't assign to nil ...elf.post(team: nil, token: nil, via_slackbot: false, payload... ... ^ /var/lib/gems/1.9.1/gems/slackistrano-0.1.0/lib/slackistrano.rb:8: Can't assign to false ...oken: nil, via_slackbot: false, payload: {}) ... ^ /var/lib/gems/1.9.1/gems/slackistrano-0.1.0/lib/slackistrano.rb:23: syntax error, unexpected keyword_end, expecting $end


My Gemfile looks like this:

A sample Gemfile

source "https://rubygems.org"

gem "rails"

gem 'slackistrano', require: false

drafie commented 10 years ago

End user error. Ruby 2.0 required. Duh.