Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 69 lines (54 sloc) 2.571 kb
feae046 Wayne E. Seguin Bugfix: GEM_HOME is now handled correcty.
authored
1 task :default => ["test"]
85c3fd9 Wayne E. Seguin Feature: Added macruby to 'rvm list'. Adjusted VERSION to latest jeweler...
authored
2 task :test do exec "bash -l -c \"./test/suite\"" ; end
feae046 Wayne E. Seguin Bugfix: GEM_HOME is now handled correcty.
authored
3
ae94b5d Wayne E. Seguin Bugfix: gemsets no longer default to version :-p
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 Wayne E. Seguin Added patch by Jim Lindley on how to 'install from source'.
authored
11 puts <<-LOCAL_INSTALL_WARNING
12
feae046 Wayne E. Seguin Bugfix: GEM_HOME is now handled correcty.
authored
13 $(tput setaf 3)INSTALLING FROM SOURCE$(tput sgr0)
0baa69d Wayne E. Seguin Added patch by Jim Lindley on how to 'install from source'.
authored
14
85c3fd9 Wayne E. Seguin Feature: Added macruby to 'rvm list'. Adjusted VERSION to latest jeweler...
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 Wayne E. Seguin Added patch by Jim Lindley on how to 'install from source'.
authored
17
feae046 Wayne E. Seguin Bugfix: GEM_HOME is now handled correcty.
authored
18 $(tput setaf 2)For installing/updating: ./install$(tput sgr0)
0baa69d Wayne E. Seguin Added patch by Jim Lindley on how to 'install from source'.
authored
19
20 LOCAL_INSTALL_WARNING
2c33ce0 Wayne E. Seguin Switched code to use preferred subshell method.
authored
21 puts "$(gem build rvm.gemspec)"
206aa6e Wayne E. Seguin Initial Gem version.
authored
22 end
23
24 desc "Install the rvm gem (NO sudo)."
c9541fc Wayne E. Seguin Removed lots of trailing whitespace for Pistos.
authored
25 task :install do
206aa6e Wayne E. Seguin Initial Gem version.
authored
26 %x{gem install rvm*.gem --no-rdoc --no-ri -l}
27 end
28 end
29
30 begin
31 require "jeweler"
85c3fd9 Wayne E. Seguin Feature: Added macruby to 'rvm list'. Adjusted VERSION to latest jeweler...
authored
32 require "lib/rvm/version"
33
206aa6e Wayne E. Seguin Initial Gem version.
authored
34 Jeweler::Tasks.new do |gemspec|
35 gemspec.name = "rvm"
85c3fd9 Wayne E. Seguin Feature: Added macruby to 'rvm list'. Adjusted VERSION to latest jeweler...
authored
36 gemspec.version = RVM::Version::STRING
206aa6e Wayne E. Seguin Initial Gem version.
authored
37 gemspec.summary = "Ruby Version Manager (rvm)"
38 gemspec.require_paths = ["lib"]
39 gemspec.date = Time.now.strftime("%Y-%m-%d")
1888f21 Wayne E. Seguin Documentation updates.
authored
40 gemspec.description = "Manages Ruby interpreter environments and switching between them."
206aa6e Wayne E. Seguin Initial Gem version.
authored
41 gemspec.platform = Gem::Platform::RUBY
cd5d0ed Wayne E. Seguin Initial SysAdmin root level support -- specficially targeted to hosting ...
authored
42 gemspec.files = ["install", "README", "LICENCE", "rvm.gemspec", "bash/*", "binscripts/*", "scripts/*", "examples/*", "config/*", Dir::glob("lib/**/**")].flatten
701c604 Wayne E. Seguin gemdup getting there...
authored
43 gemspec.executables = Dir::glob("bin/rvm-*").map{ |script| File::basename script }
206aa6e Wayne E. Seguin Initial Gem version.
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 Wayne E. Seguin Bugfix: gemsets no longer default to version :-p
authored
51 gemspec.rubyforge_project = "rvm"
3f1cc4f Wayne E. Seguin Feature: Added post-gem-install message. Thanks tmm1!
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 Wayne E. Seguin Initial Gem version.
authored
64 end
65 rescue LoadError
85c3fd9 Wayne E. Seguin Feature: Added macruby to 'rvm list'. Adjusted VERSION to latest jeweler...
authored
66 puts "Jeweler not available. Install it with: gem install jeweler -s http://gemcutter.org/"
206aa6e Wayne E. Seguin Initial Gem version.
authored
67 end
68
Something went wrong with that request. Please try again.