EgbertW / redmine_planning

Redmine plugin that makes it easier to create a project planning
GNU General Public License v3.0
43 stars 29 forks source link

Installation / execution problem #6

Closed asinteg-daehn closed 10 years ago

asinteg-daehn commented 10 years ago

Hi,

I'm running a Debian Wheezy with Ruby 1.8.7 and Rails 3.2.18 to host a Redmine 2.4 instance via Apache2 + mod_passenger.

After installing the redmine_planning 0.6.6 my rake/redmine crashes on every startup with syntax/compile errors:

/var/redmine-2.4/plugins/redmine_planning/init.rb:45: odd number list for Hash issue_height: 20, /var/redmine-2.4/plugins/redmine_planning/init.rb:45: syntax error, unexpected ':', expecting '}' issue_height: 20, /var/redmine-2.4/plugins/redmine_planning/init.rb:50: odd number list for Hash margin: {x: 10, y: 20},

and so on...

Is it a problem of the old Ruby 1.8 version? Or am I missing something?

Here my currently installed gems (output of bundle show):

Using rake (10.1.1) Using i18n (0.6.9) Using multi_json (1.10.1) Using activesupport (3.2.18) Using builder (3.0.0) Using activemodel (3.2.18) Using erubis (2.7.0) Using journey (1.0.4) Using rack (1.4.5) Using rack-cache (1.2) Using rack-test (0.6.2) Using hike (1.2.3) Using tilt (1.4.1) Using sprockets (2.2.2) Using actionpack (3.2.18) Using mime-types (1.25.1) Using polyglot (0.3.4) Using treetop (1.4.15) Using mail (2.5.4) Using actionmailer (3.2.18) Using arel (3.0.3) Using tzinfo (0.3.39) Using activerecord (3.2.18) Using activeresource (3.2.18) Using bundler (1.3.5) Using coderay (1.1.0) Using fastercsv (1.5.5) Using rack-ssl (1.3.4) Using json (1.8.1) Using rdoc (3.12.2) Using thor (0.19.1) Using railties (3.2.18) Using jquery-rails (2.0.3) Using mysql2 (0.3.16) Using net-ldap (0.3.1) Using ruby-openid (2.3.0) Using rack-openid (1.4.2) Using rails (3.2.18) Using rmagick (2.13.2)

Thanks a lot four any hints or help in advance!

ciao, Chris

EgbertW commented 10 years ago

Hi, thanks for the report. You're right, it's the older Ruby version. The plugin used the new hash notation a lot which results in the errors you're getting in Ruby < 1.9. I just updated the occasions to use the old style notation. Hopefully I got them all, otherwise please post the new results. Check out commits 8bab5dd0c678ee7f56902f0755f01105ab05e060 and 53a100e9a9ec9628f1af4d14aca6ba5d7a671ce8 for a possible fix and please let me know if it helps at all.

asinteg-daehn commented 10 years ago

Hi, I'm sorry - but just in the moment I read this, my system already got updated to Ruby 1.9 - now it works flawlessly.

My colleagues and I love the plugin! Really great work!

asinteg-daehn commented 10 years ago

PS: A list / note to the requirements inside the Readme would be great.

EgbertW commented 10 years ago

Thanks for the update. I already put a note in the Redmine plugin register that 1.9 is advisable. I'll still try to make it work since Redmine supports Ruby 1.8.7 too.