Browse files

Add RubyGems version number to command reference

  • Loading branch information...
1 parent 6f999f8 commit 87a10e6ee97c005d247bc29e5a026a17297c5f34 @ffmike ffmike committed Mar 7, 2013
Showing with 3 additions and 0 deletions.
  1. +1 −0 Rakefile
  2. +2 −0 command-reference.erb
View
1 Rakefile
@@ -30,6 +30,7 @@ task :command_guide do
require 'rubygems/command_manager'
require 'rdoc/erbio'
+ rubygems_version = Gem.rubygems_version.version
names = Gem::CommandManager.instance.command_names
commands = {}
names.each do |name|
View
2 command-reference.erb
@@ -7,6 +7,8 @@ next: /specification-reference
What each `gem` command does, and how to use it.
+This reference was automatically generated from RubyGems version <%= rubygems_version %>.
+
<% commands.each do |name, command| %>* [gem <%= name %>](#gem_<%= name %>)
<% end %>

0 comments on commit 87a10e6

Please sign in to comment.