Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support/core_ext/hash/indifferent_access.rb #73

Open
ivomarino opened this issue Feb 3, 2015 · 0 comments

Comments

@ivomarino
Copy link

using require 'capistrano-notifier' (this require 'capistrano/notifier/mail' does not work at all) I get:

% bundle exec cap production deploy:notify:mail

/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support/core_ext/hash/indifferent_access.rb:18: warning: else without rescue is useless
cap aborted!
SyntaxError: /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support/core_ext/hash/indifferent_access.rb:15: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
      when Symbol: regular_reader(key) || regular_reader(key.to_s)
                  ^
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support/core_ext/hash/indifferent_access.rb:16: syntax error, unexpected keyword_when, expecting keyword_end
      when String: regular_reader(key) || regular_reader(key.to_sym)
          ^
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support/core_ext/hash/indifferent_access.rb:26: syntax error, unexpected keyword_end, expecting end-of-input
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support/core_ext/hash.rb:2:in `require'
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support/core_ext/hash.rb:2:in `<top (required)>'
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support/core_ext.rb:1:in `require'
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support/core_ext.rb:1:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support/core_ext.rb:1:in `each'
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support/core_ext.rb:1:in `<top (required)>'
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support.rb:26:in `require'
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-1.0.0/lib/active_support.rb:26:in `<top (required)>'
/usr/local/lib/ruby/gems/2.1.0/gems/actionpack-1.5.0/lib/action_controller.rb:27:in `require'
/usr/local/lib/ruby/gems/2.1.0/gems/actionpack-1.5.0/lib/action_controller.rb:27:in `<top (required)>'
/usr/local/lib/ruby/gems/2.1.0/gems/actionmailer-0.7.0/lib/action_mailer.rb:25:in `require'
/usr/local/lib/ruby/gems/2.1.0/gems/actionmailer-0.7.0/lib/action_mailer.rb:25:in `<top (required)>'
/usr/local/lib/ruby/gems/2.1.0/gems/capistrano-notifier-0.0.1/lib/capistrano_notifier.rb:1:in `require'
/usr/local/lib/ruby/gems/2.1.0/gems/capistrano-notifier-0.0.1/lib/capistrano_notifier.rb:1:in `<top (required)>'
/usr/local/lib/ruby/gems/2.1.0/gems/capistrano-notifier-0.0.1/lib/capistrano-notifier.rb:1:in `require'
/usr/local/lib/ruby/gems/2.1.0/gems/capistrano-notifier-0.0.1/lib/capistrano-notifier.rb:1:in `<top (required)>'
/Users/eim/Documents/webdev/development/swiss-chalet/Capfile:15:in `require'
/Users/eim/Documents/webdev/development/swiss-chalet/Capfile:15:in `<top (required)>'
/usr/local/lib/ruby/gems/2.1.0/gems/capistrano-3.2.1/lib/capistrano/application.rb:15:in `run'
/usr/local/lib/ruby/gems/2.1.0/gems/capistrano-3.2.1/bin/cap:3:in `<top (required)>'
/usr/local/bin/cap:23:in `load'
/usr/local/bin/cap:23:in `<main>'
(See full trace by running task with --trace)

% bundle
Using rake 10.3.2
Using activesupport 1.0.0
Using actionpack 1.5.0
Using actionmailer 0.7.0
Using i18n 0.6.11
Using colorize 0.7.3
Using net-ssh 2.9.1
Using net-scp 1.2.1
Using sshkit 1.5.1
Using capistrano 3.2.1
Using capistrano-composer 0.0.4
Using terminal-notifier 1.6.2
Using capistrano-nc 0.1.4
Using capistrano-notifier 0.0.1
Using capistrano-wpcli 0.0.7
Using bundler 1.7.3
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.

% ruby -v
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin14.0]

% bundle show capistrano-notifier
/usr/local/lib/ruby/gems/2.1.0/gems/capistrano-notifier-0.0.1

any suggestions?
Thanks.

P.S. OSX Yosemite, brew, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant