##// END OF EJS Templates
Updates for 0.9.4 release....
Updates for 0.9.4 release. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3727 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3613:a499efd3288a
r3613:a499efd3288a
Show More
version.rb
43 lines | 1.0 KiB | text/x-ruby | RubyLexer
Jean-Philippe Lang
Added revision number in Redmine::VERSION (the revision number is read from .svn/entries if it exists)....
r813 require 'rexml/document'
Jean-Philippe Lang
Added "Watch" functionality on issues. It allows users to receive mail notifications about issue changes....
r450 module Redmine
module VERSION #:nodoc:
MAJOR = 0
Jean-Philippe Lang
Set version to 0.9.0....
r3119 MINOR = 9
Jean-Philippe Lang
Updates for 0.9.4 release....
r3613 TINY = 4
Jean-Philippe Lang
Changes version naming rule (#2162)....
r2034
# Branch values:
# * official release: nil
# * stable branch: stable
# * trunk: devel
BRANCH = 'devel'
Jean-Philippe Lang
Added "Watch" functionality on issues. It allows users to receive mail notifications about issue changes....
r450
Jean-Philippe Lang
Added revision number in Redmine::VERSION (the revision number is read from .svn/entries if it exists)....
r813 def self.revision
revision = nil
entries_path = "#{RAILS_ROOT}/.svn/entries"
if File.readable?(entries_path)
begin
f = File.open(entries_path, 'r')
entries = f.read
f.close
if entries.match(%r{^\d+})
revision = $1.to_i if entries.match(%r{^\d+\s+dir\s+(\d+)\s})
else
xml = REXML::Document.new(entries)
revision = xml.elements['wc-entries'].elements[1].attributes['revision'].to_i
end
rescue
# Could not find the current revision
end
end
revision
end
REVISION = self.revision
Jean-Philippe Lang
Adds Plugin#requires_redmine method so that plugin compatibility can be checked against current Redmine version (#2162)....
r2040 ARRAY = [MAJOR, MINOR, TINY, BRANCH, REVISION].compact
STRING = ARRAY.join('.')
Jean-Philippe Lang
Added "Watch" functionality on issues. It allows users to receive mail notifications about issue changes....
r450
Jean-Philippe Lang
Adds Plugin#requires_redmine method so that plugin compatibility can be checked against current Redmine version (#2162)....
r2040 def self.to_a; ARRAY end
Jean-Philippe Lang
Added "Watch" functionality on issues. It allows users to receive mail notifications about issue changes....
r450 def self.to_s; STRING end
end
end