diff --git a/app/views/admin/info.rhtml b/app/views/admin/info.rhtml index 4777a151e61283705b4c9b8bf11041c92cfbcee5..81db03e21985ec484847342659a804921063dd3b 100644 --- a/app/views/admin/info.rhtml +++ b/app/views/admin/info.rhtml @@ -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> diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index f4d45f029d8842fe7116a8895475d83a8999cb17..77d84d7f8e9e213a4d6c06cd19279d725694e58d 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -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 %> © 2006-2007 Jean-Philippe Lang</p> </div> </div> diff --git a/config/environment.rb b/config/environment.rb index 3edc93ed7149a4be6a870624652140afbc95aede..90cdb83106fa7d554104c05f0196291e53cdd85e 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -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", diff --git a/lib/redmine.rb b/lib/redmine.rb new file mode 100644 index 0000000000000000000000000000000000000000..4787b7fc2b0f78d77eca3998df6a8b8be71928e4 --- /dev/null +++ b/lib/redmine.rb @@ -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 \ No newline at end of file