Sha256: bdf57888e5b29b359cf7aab286b03d218eb4b4bc9304b7540de4abf159321d9a

Contents?: true

Size: 694 Bytes

Versions: 1

Compression:

Stored size: 694 Bytes

Contents

#!/usr/bin/env ruby
require 'ruby_core_ri/ruby_core_source'

# sanity check
myself = Gem.source_index.find_name('ruby_core_ri')
myself ||= Gem.source_index.find_name('rogerdpack-ruby_core_ri')
throw 'uninstall all old version of this gem first!' if myself.length > 1
myself = myself[0]

# put it in a generic dir, until I can figure out how to get gem rdoc to accept it from elsewhere
to_dir = myself.full_gem_path + "/lib/downloaded_full_source"
puts "installing your full source (for rdoc/ri purposes) to #{to_dir}"
Ruby_core_source.download_headers nil, to_dir, false

command = "gem rdoc --no-rdoc --ri ruby_core_ri"
puts "downloading--extracting out the ri via " + command

system command

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_core_ri-0.3.0 bin/ruby_core_ri