Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (55 sloc) 2.59 KB
require "rubygems"
task :default => ["test"]
task :test do exec "bash -l -c \"./test/suite\"" ; end
namespace :gem do
task :refresh do
exec "gem uninstall rvm ; rm -f pkg/*.gem ./rvm.gemspec && rake gemspec && rake build && gem install pkg/*.gem --no-rdoc --no-ri"
desc "Build the rvm gem."
task :build do
$(tput setaf 3)INSTALLING FROM SOURCE$(tput sgr0)
If you are using rvm from source, DO NOT build the gem.
Instead, run the following from the rvm source's root dir.
$(tput setaf 2)For installing/updating: ./install$(tput sgr0)
puts "$(gem build rvm.gemspec)"
desc "Install the rvm gem (NO sudo)."
task :install do
%x{gem install rvm*.gem --no-rdoc --no-ri -l}
require "jeweler"
require "lib/rvm/version" do |gemspec| = "rvm"
gemspec.version = RVM::Version::STRING
gemspec.summary = "Ruby Version Manager (rvm)"
gemspec.require_paths = ["lib"] ="%Y-%m-%d")
gemspec.description = "Manages Ruby interpreter environments and switching between them."
gemspec.platform = Gem::Platform::RUBY
gemspec.files = ["install", "README", "sha1", "LICENCE", "rvm.gemspec", "bash/*", "binscripts/*", "scripts/*", "patches/*", "examples/*", "config/*", "help/**", "gemsets/*", "contrib/*", Dir::glob("lib/**/**"), Dir::glob("man/**/**")].flatten
gemspec.executables = Dir::glob("bin/rvm-*").map{ |script| File::basename script }
gemspec.require_path = "lib"
gemspec.has_rdoc = File::exist?("doc")
gemspec.rdoc_options = ["--inline-source", "--charset=UTF-8"]
gemspec.authors = ["Wayne E. Seguin"] = ""
gemspec.homepage = ""
gemspec.extensions << "extconf.rb" if File::exists?("extconf.rb")
gemspec.rubyforge_project = "rvm"
gemspec.post_install_message = <<-POST_INSTALL_MESSAGE
#{"*" * 80}
In order to setup rvm for your user's environment you must now run rvm-install.
rvm-install will be found in your current gems bin directory corresponding to where the gem was installed.
rvm-install will install the scripts to your user account and append itself to your profiles in order to
inject the proper rvm functions into your shell so that you can manage multiple rubies.
#{"*" * 80}
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
Jump to Line
Something went wrong with that request. Please try again.