added Redmine::VERSION module

git-svn-id: http://redmine.rubyforge.org/svn/trunk@170 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-01-21 12:54:51 +00:00
parent 4ccbc65628
commit bd3458da6e
4 changed files with 13 additions and 21 deletions

View File

@ -1,6 +1,6 @@
<h2><%=l(:label_information_plural)%></h2>
<p><%=l(:field_version)%>: <strong><%= RDM_APP_NAME %> <%= RDM_APP_VERSION %></strong></p>
<p><%=l(:field_version)%>: <strong>redMine <%= Redmine::VERSION %></strong></p>
<%=l(:label_environment)%>:
<ul>

View File

@ -135,7 +135,7 @@
</div>
<div id="footer">
<p><a href="http://redmine.rubyforge.org/"><%= RDM_APP_NAME %></a> <%= RDM_APP_VERSION %></p>
<p><a href="http://redmine.rubyforge.org/">redMine</a> <%= Redmine::VERSION %> &copy 2006-2007 Jean-Philippe Lang</p>
</div>
</div>

View File

@ -59,25 +59,6 @@ Rails::Initializer.run do |config|
config.action_mailer.delivery_method = :smtp
end
# Add new inflection rules using the following format
# (all these examples are active by default):
# Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
# end
# IMPORTANT !!! DO NOT MODIFY PARAMETERS HERE
# Instead, rename config_custom.example.rb to config_custom.rb
# and set your own configuration in that file
# Parameters defined in config_custom.rb override those defined below
# application name
RDM_APP_NAME = "redMine"
# application version
RDM_APP_VERSION = "0.4.1"
ActiveRecord::Errors.default_error_messages = {
:inclusion => "activerecord_error_inclusion",
:exclusion => "activerecord_error_exclusion",

11
lib/redmine.rb Normal file
View File

@ -0,0 +1,11 @@
module Redmine
module VERSION #:nodoc:
MAJOR = 0
MINOR = 4
TINY = 2
STRING= [MAJOR, MINOR, TINY].join('.')
def self.to_s; STRING end
end
end