Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 69 lines (54 sloc) 2.571 kB
feae046 @wayneeseguin Bugfix: GEM_HOME is now handled correcty.
wayneeseguin authored
1 task :default => ["test"]
85c3fd9 @wayneeseguin Feature: Added macruby to 'rvm list'. Adjusted VERSION to latest jewe…
wayneeseguin authored
2 task :test do exec "bash -l -c \"./test/suite\"" ; end
feae046 @wayneeseguin Bugfix: GEM_HOME is now handled correcty.
wayneeseguin authored
3
ae94b5d @wayneeseguin Bugfix: gemsets no longer default to version :-p
wayneeseguin authored
4 namespace :gem do
5 task :refresh do
6 exec "gem uninstall rvm ; rm -f pkg/*.gem ./rvm.gemspec && rake gemspec && rake build && gem install pkg/*.gem --no-rdoc --no-ri"
7 end
8
9 desc "Build the rvm gem."
10 task :build do
0baa69d @wayneeseguin Added patch by Jim Lindley on how to 'install from source'.
wayneeseguin authored
11 puts <<-LOCAL_INSTALL_WARNING
12
feae046 @wayneeseguin Bugfix: GEM_HOME is now handled correcty.
wayneeseguin authored
13 $(tput setaf 3)INSTALLING FROM SOURCE$(tput sgr0)
0baa69d @wayneeseguin Added patch by Jim Lindley on how to 'install from source'.
wayneeseguin authored
14
85c3fd9 @wayneeseguin Feature: Added macruby to 'rvm list'. Adjusted VERSION to latest jewe…
wayneeseguin authored
15 If you are using rvm from source, DO NOT build the gem.
16 Instead, run the following from the rvm source's root dir.
0baa69d @wayneeseguin Added patch by Jim Lindley on how to 'install from source'.
wayneeseguin authored
17
feae046 @wayneeseguin Bugfix: GEM_HOME is now handled correcty.
wayneeseguin authored
18 $(tput setaf 2)For installing/updating: ./install$(tput sgr0)
0baa69d @wayneeseguin Added patch by Jim Lindley on how to 'install from source'.
wayneeseguin authored
19
20 LOCAL_INSTALL_WARNING
2c33ce0 @wayneeseguin Switched code to use preferred subshell method.
wayneeseguin authored
21 puts "$(gem build rvm.gemspec)"
206aa6e @wayneeseguin Initial Gem version.
wayneeseguin authored
22 end
23
24 desc "Install the rvm gem (NO sudo)."
c9541fc @wayneeseguin Removed lots of trailing whitespace for Pistos.
wayneeseguin authored
25 task :install do
206aa6e @wayneeseguin Initial Gem version.
wayneeseguin authored
26 %x{gem install rvm*.gem --no-rdoc --no-ri -l}
27 end
28 end
29
30 begin
31 require "jeweler"
85c3fd9 @wayneeseguin Feature: Added macruby to 'rvm list'. Adjusted VERSION to latest jewe…
wayneeseguin authored
32 require "lib/rvm/version"
33
206aa6e @wayneeseguin Initial Gem version.
wayneeseguin authored
34 Jeweler::Tasks.new do |gemspec|
35 gemspec.name = "rvm"
85c3fd9 @wayneeseguin Feature: Added macruby to 'rvm list'. Adjusted VERSION to latest jewe…
wayneeseguin authored
36 gemspec.version = RVM::Version::STRING
206aa6e @wayneeseguin Initial Gem version.
wayneeseguin authored
37 gemspec.summary = "Ruby Version Manager (rvm)"
38 gemspec.require_paths = ["lib"]
39 gemspec.date = Time.now.strftime("%Y-%m-%d")
1888f21 @wayneeseguin Documentation updates.
wayneeseguin authored
40 gemspec.description = "Manages Ruby interpreter environments and switching between them."
206aa6e @wayneeseguin Initial Gem version.
wayneeseguin authored
41 gemspec.platform = Gem::Platform::RUBY
cd5d0ed @wayneeseguin Initial SysAdmin root level support -- specficially targeted to hosti…
wayneeseguin authored
42 gemspec.files = ["install", "README", "LICENCE", "rvm.gemspec", "bash/*", "binscripts/*", "scripts/*", "examples/*", "config/*", Dir::glob("lib/**/**")].flatten
701c604 @wayneeseguin gemdup getting there...
wayneeseguin authored
43 gemspec.executables = Dir::glob("bin/rvm-*").map{ |script| File::basename script }
206aa6e @wayneeseguin Initial Gem version.
wayneeseguin authored
44 gemspec.require_path = "lib"
45 gemspec.has_rdoc = File::exist?("doc")
46 gemspec.rdoc_options = ["--inline-source", "--charset=UTF-8"]
47 gemspec.authors = ["Wayne E. Seguin"]
48 gemspec.email = "wayneeseguin@gmail.com"
49 gemspec.homepage = "http://github.com/wayneeseguin/rvm"
50 gemspec.extensions << "extconf.rb" if File::exists?("extconf.rb")
ae94b5d @wayneeseguin Bugfix: gemsets no longer default to version :-p
wayneeseguin authored
51 gemspec.rubyforge_project = "rvm"
3f1cc4f @wayneeseguin Feature: Added post-gem-install message. Thanks tmm1!
wayneeseguin authored
52 gemspec.post_install_message = <<-POST_INSTALL_MESSAGE
53 #{"*" * 80}
54
55 In order to setup rvm for your user's environment you must now run rvm-install.
56 rvm-install will be found in your current gems bin directory corresponding to where the gem was installed.
57
58 rvm-install will install the scripts to your user account and append itself to your profiles in order to
59 inject the proper rvm functions into your shell so that you can manage multiple rubies.
60
61 #{"*" * 80}
62 POST_INSTALL_MESSAGE
63
206aa6e @wayneeseguin Initial Gem version.
wayneeseguin authored
64 end
65 rescue LoadError
85c3fd9 @wayneeseguin Feature: Added macruby to 'rvm list'. Adjusted VERSION to latest jewe…
wayneeseguin authored
66 puts "Jeweler not available. Install it with: gem install jeweler -s http://gemcutter.org/"
206aa6e @wayneeseguin Initial Gem version.
wayneeseguin authored
67 end
68
Something went wrong with that request. Please try again.