Rails::Info doesn't require version for unwanted frameworks

[#3124 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
Geoff Buesing 2009-08-31 17:58:54 -05:00 committed by Jeremy Kemper
parent a5588ffc08
commit cc1efe7e5a

@ -29,9 +29,11 @@ def frameworks
end
def framework_version(framework)
if Object.const_defined?(framework.classify)
require "#{framework}/version"
"#{framework.classify}::VERSION::STRING".constantize
end
end
def edge_rails_revision(info = git_info)
info[/commit ([a-z0-9-]+)/, 1] || freeze_edge_version