##// END OF EJS Templates
Merged r9755 from trunk....
Merged r9755 from trunk. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.0-stable@9756 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r9549:0512a3036813
r9573:5f23ebc31c8f
Show More
version.rb
44 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:
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 MAJOR = 2
MINOR = 0
Jean-Philippe Lang
Updates for 2.0.1 release....
r9549 TINY = 1
Toshi MARUYAMA
change tabs to spaces in lib/redmine/version.rb....
r5429
Jean-Philippe Lang
Changes version naming rule (#2162)....
r2034 # Branch values:
# * official release: nil
# * stable branch: stable
# * trunk: devel
Jean-Philippe Lang
Set version to stable....
r9512 BRANCH = 'stable'
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
Toshi MARUYAMA
replace RAILS_ROOT to Rails.root at lib/redmine/version.rb....
r5963 entries_path = "#{Rails.root}/.svn/entries"
Jean-Philippe Lang
Added revision number in Redmine::VERSION (the revision number is read from .svn/entries if it exists)....
r813 if File.readable?(entries_path)
begin
f = File.open(entries_path, 'r')
entries = f.read
f.close
Toshi MARUYAMA
change tabs to spaces in lib/redmine/version.rb....
r5429 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
Jean-Philippe Lang
Added revision number in Redmine::VERSION (the revision number is read from .svn/entries if it exists)....
r813 end
REVISION = self.revision
Toshi MARUYAMA
change tabs to spaces in lib/redmine/version.rb....
r5429 ARRAY = [MAJOR, MINOR, TINY, BRANCH, REVISION].compact
STRING = ARRAY.join('.')
Toshi MARUYAMA
remove trailing white-spaces from lib/redmine/version.rb....
r6401
Toshi MARUYAMA
change tabs to spaces in lib/redmine/version.rb....
r5429 def self.to_a; ARRAY end
Toshi MARUYAMA
remove trailing white-spaces from lib/redmine/version.rb....
r6401 def self.to_s; STRING end
Jean-Philippe Lang
Added "Watch" functionality on issues. It allows users to receive mail notifications about issue changes....
r450 end
end