backlogs / redmine_backlogs

A Redmine plugin for agile teams
https://backlogs.github.io/www/
GNU General Public License v2.0
772 stars 460 forks source link

Return Ruby 1.9 compatibility - fix prawn dependency to pre-2.0.0 #1106

Open singalen opened 9 years ago

singalen commented 9 years ago

I've tried to install the 1.0.6 tag, on Ruby 1.9.39. redmine_backlogs required latest prawn (2.0.3), which only supports Ruby 2. Should the prawn version be fixed to pre-2.0.0 in order not to break Ruby 1.9 compatibility?

ekcolam commented 9 years ago

You can edit the redmine_backlogs Gemfile to add an if check for the Ruby version in use. Search for "prawn" in the Gemfile and replace with:

if RUBY_VERSION >= "2.0"
  gem "prawn"
else
  gem "prawn", "< 2.0"
end'
singalen commented 9 years ago

Thanks, that's what I did for my installation.