From eae5c9af68fa6f23ac32de2763593560db4e00b2 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Sun, 21 Aug 2011 15:16:34 +0200 Subject: [PATCH] [#275] Use ChiliProject::VERSION for new code --- lib/redmine/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index 956617e0..e50e0853 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -118,7 +118,7 @@ module Redmine #:nodoc: def requires_chiliproject(*args) required_version = Gem::Requirement.new(*args) - chili_version = Gem::Version.new(Redmine::VERSION.to_semver) + chili_version = Gem::Version.new(ChiliProject::VERSION.to_semver) unless required_version.satisfied_by? chili_version raise PluginRequirementError.new("#{id} plugin requires ChiliProject version #{required_version} but current version is #{chili_version}.")