Module: DashboardHelper

Defined in:
app/helpers/dashboard_helper.rb

Instance Method Summary collapse

Instance Method Details

#all_gemsObject


8
9
10
11
12
13
14
15
16
17
# File 'app/helpers/dashboard_helper.rb', line 8

def all_gems
  cnt = 0
  others = "<table class='table'><tr><td>"
  bundled_gems.sort{|a,b|a.name<=>b.name}.each do |spec|
    cnt += 1
    others += "#{spec.name} #{spec.version}<br />"
    others += "</td><td>" if (cnt % 18) == 0
  end
  others +  "</td></tr></table>"
end

#bundled_gemsObject


4
5
6
# File 'app/helpers/dashboard_helper.rb', line 4

def bundled_gems
  Bundler.load.specs
end