jrupesh / event_notifications

Redmine event notifications : Add event notification options to the each event at the redmine project. For EX: notifications can be enabled / disabled on each document added or news added. Further the tracking can be done at the issue tracker level.
BSD 3-Clause "New" or "Revised" License
28 stars 26 forks source link

Error while installing plugin #9

Closed webslice closed 10 years ago

webslice commented 10 years ago

Hello,

Today I tried to install the event_notifications plugin, and I got the following error;

rake redmine:plugins:migrate RAILS_ENV=production

rake aborted! /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:14: syntax error, unexpected '=', expecting '|' define_method(:mail) do |headers={}, &block| ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:15: syntax error, unexpected tSTRING_BEG, expecting kEND headers.merge! 'X-Mailer' => 'Redmine', ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:15: syntax error, unexpected tASSOC, expecting kEND headers.merge! 'X-Mailer' => 'Redmine', ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:15: syntax error, unexpected ',', expecting kEND headers.merge! 'X-Mailer' => 'Redmine', ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:16: syntax error, unexpected tASSOC, expecting kEND 'X-Redmine-Host' => Setting.host_name, ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:17: syntax error, unexpected tASSOC, expecting tCOLON2 or '[' or '.' 'X-Redmine-Site' => Setting.app_title, ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:18: syntax error, unexpected tASSOC, expecting tCOLON2 or '[' or '.' 'X-Auto-Response-Suppress' => 'OOF', ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:18: syntax error, unexpected ',', expecting kEND 'X-Auto-Response-Suppress' => 'OOF', ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:19: syntax error, unexpected tASSOC, expecting kEND 'Auto-Submitted' => 'auto-generated', ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:19: syntax error, unexpected ',', expecting kEND 'Auto-Submitted' => 'auto-generated', ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:20: syntax error, unexpected tASSOC, expecting kEND 'From' => redmine_from, ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:21: syntax error, unexpected tASSOC, expecting tCOLON2 or '[' or '.' 'List-Id' => "<#{Setting.mail_from.to_s.gs... ^ /data/home/redmine/redmine-2.5.2/plugins/event_notifications/lib/patches/mailer_patch.rb:112: syntax error, unexpected kEND, expecting $end /data/home/redmine/redmine-2.5.2/plugins/event_notifications/init.rb:15 /data/home/redmine/redmine-2.5.2/lib/redmine/plugin.rb:133:in load' /data/home/redmine/redmine-2.5.2/lib/redmine/plugin.rb:124:ineach' /data/home/redmine/redmine-2.5.2/lib/redmine/plugin.rb:124:in `load' /data/home/redmine/redmine-2.5.2/config/initializers/30-redmine.rb:19 /data/home/redmine/redmine-2.5.2/config/environment.rb:14 Tasks: TOP => redmine:plugins:migrate => environment (See full trace by running task with --trace)

Is this a know issue, and if so, how could this be fixed?

We use the following versions of rake, ruby etc:

rake, version 10.0.4 ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

If you need more information, please let me know.

Thank you in advance!

jrupesh commented 10 years ago

Hi, Ruby 1.8 ? I have not tested on this version of Ruby. I am using 2.0 and in production 2.1.1 and works fine.

webslice commented 10 years ago

Hi jrupesh,

Thank you for your quick answer. I tried to install the plugin with Ruby version 2.1.2, and that works.

jrupesh commented 10 years ago

You are welcome. closing this issue. :)