Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
37
lib/redmine/version.rb
Normal file
37
lib/redmine/version.rb
Normal file
|
@ -0,0 +1,37 @@
|
|||
require 'rexml/document'
|
||||
|
||||
module Redmine
|
||||
module VERSION #:nodoc:
|
||||
MAJOR = 3
|
||||
MINOR = 4
|
||||
TINY = 4
|
||||
|
||||
# Branch values:
|
||||
# * official release: nil
|
||||
# * stable branch: stable
|
||||
# * trunk: devel
|
||||
BRANCH = 'stable'
|
||||
|
||||
# Retrieves the revision from the working copy
|
||||
def self.revision
|
||||
if File.directory?(File.join(Rails.root, '.svn'))
|
||||
begin
|
||||
path = Redmine::Scm::Adapters::AbstractAdapter.shell_quote(Rails.root.to_s)
|
||||
if `svn info --xml #{path}` =~ /revision="(\d+)"/
|
||||
return $1.to_i
|
||||
end
|
||||
rescue
|
||||
# Could not find the current revision
|
||||
end
|
||||
end
|
||||
nil
|
||||
end
|
||||
|
||||
REVISION = self.revision
|
||||
ARRAY = [MAJOR, MINOR, TINY, BRANCH, REVISION].compact
|
||||
STRING = ARRAY.join('.')
|
||||
|
||||
def self.to_a; ARRAY end
|
||||
def self.to_s; STRING end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue