-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
53 lines (44 loc) · 1.92 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 the following from the rvm source root
\033[0;32mFor installing/updating: ./install\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 rvm.gemspec`
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 = "[email protected]"
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