Feature #7780

Upgrade version of Rails

Added by Jacob Helwig 12 months ago. Updated 11 months ago.

Status:Duplicate Start date:06/03/2011
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Keywords: Affected URL:
Branch: Affected Dashboard version:
Votes: 4

Description

The currently vendored version of Rails (2.3.5) has a rather annoying issue if you have rack 1.1+ installed. 2.3.11 was released 2011-02-08. I think the big decision is whether to continue on with 2.3.x, or make the jump to 3.x.


Related issues

related to Puppet Dashboard - Bug #7678: excessive versioned dependency on rack Investigating 05/26/2011
duplicates Puppet Dashboard - Refactor #7913: Upgrade vendored version of Dashboard to 2.3.12 Closed 06/14/2011

History

Updated by William Van Hevelingen 12 months ago

I did a quick update to Rails 2.3.12 / new versions of the other dependencies and came across the following.

Notes:

  • The new version of haml no longer comes with sass bundled.
  • The new version of rails no longer comes bundled with the mysql gem
  • Had to install the json gem

Deprecation Warnings (from ruby script/server):

  • config.load_paths= is deprecated and removed in Rails 3, please use autoload_paths= instead
  • DEPRECATION WARNING: Kernel#returning has been deprecated in favor of Object#tap. (called from node_title_text at /opt/puppet-dashboard/app/helpers/nodes_helper.rb:8)
  • DEPRECATION WARNING: Kernel#returning has been deprecated in favor of Object#tap. (called from report_title_text at /opt/puppet-dashboard/app/helpers/nodes_helper.rb:14)

Overall the application seems to be working with new versions of the gems and rails, but the spec tests are in an unhappy state after updating to Rspec 2.x.

Also we should be using bundler to manage dashboards gem dependencies. :)

http://gembundler.com/

Updated by Jacob Helwig 12 months ago

One quick note about the mysql gem is that we shouldn’t really be encouraging people to use it. We should be encouraging them to use the mysql2 gem instead. The mysql2 gem is much faster since it uses the MySQL client C libraries, instead of being pure Ruby.

Updated by William Van Hevelingen 11 months ago

  • Status changed from Needs Decision to Duplicate

duplicate of #7913

Also available in: Atom PDF