From 79c4db675a5c523f5d6c780dffe30f3ff51ad567 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 8 Nov 2004 15:55:23 +0000 Subject: Change version numbering of RDoc and ri git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/rdoc.rb | 9 +-------- lib/rdoc/ri/ri_options.rb | 6 ++---- 2 files changed, 3 insertions(+), 12 deletions(-) (limited to 'lib/rdoc') diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb index 060e9ba826..2fd67553e3 100644 --- a/lib/rdoc/rdoc.rb +++ b/lib/rdoc/rdoc.rb @@ -2,14 +2,7 @@ # -RDOC_VERSION = "1.0pr1" - -rcs = '$Date$ $Revision$'. - gsub(/\$/, ''). - sub(/Date: /, ': '). - sub(/ Revision: (\S+)/) { "(#$1)" } - -VERSION_STRING = %{RDoc V} + RDOC_VERSION + rcs +VERSION_STRING = %{RDoc V1.0.1 - 20041108} require 'rdoc/parsers/parse_rb.rb' diff --git a/lib/rdoc/ri/ri_options.rb b/lib/rdoc/ri/ri_options.rb index f59cdeda1c..5ee9a45588 100644 --- a/lib/rdoc/ri/ri_options.rb +++ b/lib/rdoc/ri/ri_options.rb @@ -5,8 +5,7 @@ module RI require 'rdoc/ri/ri_display' - VERSION_STRING = "ri: beta1" - CVS_ID = "$Id$"; + VERSION_STRING = "ri v1.0.1 - 20041108" class Options @@ -170,8 +169,7 @@ module RI # Show the version and exit def show_version - cvs_info = CVS_ID.split - puts "#{VERSION_STRING} (#{cvs_info[2]} #{cvs_info[3]})" + puts VERSION_STRING exit(0) end -- cgit v1.2.3