Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (45 sloc) 2 KB
task :default => [:gem]
puts <<-LOCAL_INSTALL_WARNING
\033[0;33mINSTALLING FROM SOURCE\033[0m
If you're using rvm from source, don't build the gem
Instead, run one of the following from the rvm source root
\033[0;32mFor first-time install: ./bash/rvm-install\033[0m
\033[0;32mFor updating install: ./bash/rvm-update\033[0m
LOCAL_INSTALL_WARNING
desc "Build the rvm gem and then install it (NO sudo)."
task :gem do
exec "gem uninstall rvm ; rm -f pkg/*.gem ./rvm.gemspec && rake gemspec && rake build && gem install pkg/*.gem --no-rdoc --no-ri"
end
namespace :gem do
desc "Build the rvm gem."
task :build do
puts `gem build gemspec.rb`
end
desc "Install the rvm gem (NO sudo)."
task :install do
%x{gem install rvm*.gem --no-rdoc --no-ri -l}
end
end
begin
require "jeweler"
Jeweler::Tasks.new do |gemspec|
gemspec.name = "rvm"
gemspec.summary = "Ruby Version Manager (rvm)"
gemspec.require_paths = ["lib"]
gemspec.date = Time.now.strftime("%Y-%m-%d")
gemspec.description = "Manages Ruby interpreter installations and switching between them."
gemspec.platform = Gem::Platform::RUBY
gemspec.files = ["INSTALL", "README", "LICENCE", "rvm.gemspec", "bash/*", "scripts/*", "examples/*", "config/*", Dir::glob("lib/**/**")].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.email = "wayneeseguin@gmail.com"
gemspec.homepage = "http://github.com/wayneeseguin/rvm"
gemspec.extensions << "extconf.rb" if File::exists?("extconf.rb")
gemspec.rubyforge_project = "dynamicreports"
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end