Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved from jeweler to hoe (mostly... needs check my wayneeseguin)

  • Loading branch information...
commit 990ec390d89a3200e782cc1474154f35f7da90cc 1 parent 47eea13
@zenspider zenspider authored
View
5 History.txt
@@ -0,0 +1,5 @@
+=== 1.2.6 / 2011-02-07
+
+* 1 major enhancement
+
+ * Switched from jeweler to hoe. No clue what other changes are in here.
View
309 Manifest.txt
@@ -0,0 +1,309 @@
+0001-Fixed-variable-initialization-problems-in-scripts-rv.patch
+History.txt
+LICENCE
+Manifest.txt
+README.txt
+Rakefile
+VERSION.yml
+binscripts/rvm
+binscripts/rvm-auto-ruby
+binscripts/rvm-install
+binscripts/rvm-prompt
+binscripts/rvm-shell
+binscripts/rvm-update-head
+binscripts/rvm-update-latest
+binscripts/rvmsudo
+blah.diff
+config/db
+config/known
+config/md5
+contrib/bootstrap_rails_environment
+contrib/gemset_snapshot
+contrib/hudson/README.md
+contrib/hudson/rvmRake-1.0-SNAPSHOT-20100819.hpi
+contrib/hudson/rvmRuby-1.0-SNAPSHOT-20100819.hpi
+contrib/hudson/rvmRubyMetrics-1.0-SNAPSHOT-20100819.hpi
+contrib/install-system-wide
+contrib/r
+docs/rebuild.sh
+docs/rvm.txt
+examples/rvmrc
+gemsets/default.gems
+gemsets/global.gems
+gemsets/jruby/global.gems
+gemsets/rbx/global.gems
+gemsets/ree/1.8.7/global.gems
+gemsets/ruby/1.8.7/global.gems
+gemsets/ruby/1.9.1/global.gems
+gemsets/ruby/1.9.2/global.gems
+help/alias
+help/benchmark
+help/cleanup
+help/current
+help/debug
+help/disk-usage
+help/docs
+help/exec
+help/fetch
+help/gem
+help/gemdir
+help/gemset
+help/implode
+help/info
+help/install
+help/list
+help/migrate
+help/monitor
+help/notes
+help/package
+help/rake
+help/remove
+help/repair
+help/reset
+help/ruby
+help/rubygems
+help/rvmrc
+help/snapshot
+help/specs
+help/srcdir
+help/tests
+help/tools
+help/uninstall
+help/update
+help/upgrade
+help/use
+help/wrapper
+install
+lib/VERSION.yml
+lib/rvm.rb
+lib/rvm/capistrano.rb
+lib/rvm/environment.rb
+lib/rvm/environment/alias.rb
+lib/rvm/environment/cleanup.rb
+lib/rvm/environment/configuration.rb
+lib/rvm/environment/env.rb
+lib/rvm/environment/gemset.rb
+lib/rvm/environment/info.rb
+lib/rvm/environment/list.rb
+lib/rvm/environment/rubies.rb
+lib/rvm/environment/sets.rb
+lib/rvm/environment/tools.rb
+lib/rvm/environment/utility.rb
+lib/rvm/environment/wrapper.rb
+lib/rvm/errors.rb
+lib/rvm/install_command_dumper.rb
+lib/rvm/shell.rb
+lib/rvm/shell/abstract_wrapper.rb
+lib/rvm/shell/calculate_rvm_path.sh
+lib/rvm/shell/result.rb
+lib/rvm/shell/shell_wrapper.sh
+lib/rvm/shell/single_shot_wrapper.rb
+lib/rvm/shell/utility.rb
+lib/rvm/version.rb
+man/man1/rvm.1
+man/man1/rvm.1.gz
+meta/gentoo/rvm-0.1.1.ebuild
+meta/gentoo/rvm-0.1.12.ebuild
+meta/gentoo/rvm-0.1.13.ebuild
+meta/gentoo/rvm-0.1.14.ebuild
+meta/gentoo/rvm-0.1.15.ebuild
+meta/gentoo/rvm-0.1.16.ebuild
+meta/gentoo/rvm-0.1.17.ebuild
+meta/gentoo/rvm-0.1.18.ebuild
+meta/gentoo/rvm-0.1.19.ebuild
+meta/gentoo/rvm-0.1.2.ebuild
+meta/gentoo/rvm-0.1.20.ebuild
+meta/gentoo/rvm-0.1.21.ebuild
+meta/gentoo/rvm-0.1.22.ebuild
+meta/gentoo/rvm-0.1.23.ebuild
+meta/gentoo/rvm-0.1.24.ebuild
+meta/gentoo/rvm-0.1.25.ebuild
+meta/gentoo/rvm-0.1.26.ebuild
+meta/gentoo/rvm-0.1.27.ebuild
+meta/gentoo/rvm-0.1.28.ebuild
+meta/gentoo/rvm-0.1.29.ebuild
+meta/gentoo/rvm-0.1.3.ebuild
+meta/gentoo/rvm-0.1.30.ebuild
+meta/gentoo/rvm-0.1.31.ebuild
+meta/gentoo/rvm-0.1.32.ebuild
+meta/gentoo/rvm-0.1.33.ebuild
+meta/gentoo/rvm-0.1.34.ebuild
+meta/gentoo/rvm-0.1.35.ebuild
+meta/gentoo/rvm-0.1.36.ebuild
+meta/gentoo/rvm-0.1.37.ebuild
+meta/gentoo/rvm-0.1.38.ebuild
+meta/gentoo/rvm-0.1.39.ebuild
+meta/gentoo/rvm-0.1.4.ebuild
+meta/gentoo/rvm-0.1.40.ebuild
+meta/gentoo/rvm-0.1.41.ebuild
+meta/gentoo/rvm-0.1.42.ebuild
+meta/gentoo/rvm-0.1.43.ebuild
+meta/gentoo/rvm-0.1.44.ebuild
+meta/gentoo/rvm-0.1.45.ebuild
+meta/gentoo/rvm-0.1.46.ebuild
+meta/gentoo/rvm-0.1.47.ebuild
+meta/gentoo/rvm-0.1.5.ebuild
+meta/gentoo/rvm-0.1.6.ebuild
+meta/gentoo/rvm-1.0.0.ebuild
+meta/gentoo/rvm-1.0.1.ebuild
+meta/gentoo/rvm-1.0.10.ebuild
+meta/gentoo/rvm-1.0.11.ebuild
+meta/gentoo/rvm-1.0.12.ebuild
+meta/gentoo/rvm-1.0.13.ebuild
+meta/gentoo/rvm-1.0.14.ebuild
+meta/gentoo/rvm-1.0.15.ebuild
+meta/gentoo/rvm-1.0.16.ebuild
+meta/gentoo/rvm-1.0.17.ebuild
+meta/gentoo/rvm-1.0.18.ebuild
+meta/gentoo/rvm-1.0.19.ebuild
+meta/gentoo/rvm-1.0.2.ebuild
+meta/gentoo/rvm-1.0.20.ebuild
+meta/gentoo/rvm-1.0.21.ebuild
+meta/gentoo/rvm-1.0.22.ebuild
+meta/gentoo/rvm-1.0.23.ebuild
+meta/gentoo/rvm-1.0.3.ebuild
+meta/gentoo/rvm-1.0.4.ebuild
+meta/gentoo/rvm-1.0.5.ebuild
+meta/gentoo/rvm-1.0.6.ebuild
+meta/gentoo/rvm-1.0.7.ebuild
+meta/gentoo/rvm-1.0.8.ebuild
+meta/gentoo/rvm-1.0.9.ebuild
+meta/gentoo/rvm-1.1.0.ebuild
+meta/gentoo/rvm-1.1.1.ebuild
+meta/gentoo/rvm-1.1.10.ebuild
+meta/gentoo/rvm-1.1.11.ebuild
+meta/gentoo/rvm-1.1.12.ebuild
+meta/gentoo/rvm-1.1.13.ebuild
+meta/gentoo/rvm-1.1.2.ebuild
+meta/gentoo/rvm-1.1.3.ebuild
+meta/gentoo/rvm-1.1.4.ebuild
+meta/gentoo/rvm-1.1.5.ebuild
+meta/gentoo/rvm-1.1.6.ebuild
+meta/gentoo/rvm-1.1.7.ebuild
+meta/gentoo/rvm-1.1.8.ebuild
+meta/gentoo/rvm-1.1.9.ebuild
+meta/gentoo/rvm-1.2.0.ebuild
+meta/gentoo/rvm-1.2.2.ebuild
+meta/gentoo/rvm-1.2.3.ebuild
+meta/gentoo/rvm-1.2.4.ebuild
+meta/gentoo/rvm-1.2.5.ebuild
+meta/gentoo/rvm-1.2.6.ebuild
+meta/gentoo/rvm-99999.ebuild
+meta/gentoo/rvm.ebuild.template
+patches/readline-5.2/shobj-conf.patch
+patches/ree/1.8.7/readline-fix.diff
+patches/ree/1.8.7/zlib-gc-fix.diff
+patches/ree/fix-irb-completion.diff
+patches/ruby/1.8.4/railsbench.patch
+patches/ruby/1.8.5/backported-ossl-fixes.diff
+patches/ruby/1.8.5/railsbench.patch
+patches/ruby/1.8.6/hs.patch
+patches/ruby/1.8.6/mbari.patch
+patches/ruby/1.8.6/railsbench.patch
+patches/ruby/1.8.7/hs.patch
+patches/ruby/1.8.7/osx-arch-fix.patch
+patches/ruby/1.8.7/p72/mbari-1.patch
+patches/ruby/1.8.7/p72/mbari-2.patch
+patches/ruby/1.8.7/p72/mbari-3.patch
+patches/ruby/1.8.7/p72/mbari-4.patch
+patches/ruby/1.8.7/p72/mbari-5.patch
+patches/ruby/1.8.7/p72/mbari-6.patch
+patches/ruby/1.8.7/p72/mbari-8b.patch
+patches/ruby/1.8.7/p72/mbari7.patch
+patches/ruby/1.8.7/railsbench.patch
+patches/ruby/1.8.7/readline-fix.diff
+patches/ruby/1.8.7/zlib-gc-fix.diff
+patches/ruby/1.9.1/osx-arch-fix.patch
+patches/ruby/1.9.1/railsbench.patch
+patches/ruby/1.9.2/gcdata.patch
+patches/ruby/1.9.2/osx-arch-fix.patch
+patches/ruby/1.9.3/gcdata.patch
+patches/ruby/fix-irb-completion.diff
+scripts/alias
+scripts/aliases
+scripts/array
+scripts/base
+scripts/cd
+scripts/cleanup
+scripts/cli
+scripts/color
+scripts/completion
+scripts/current
+scripts/db
+scripts/default
+scripts/disk-usage
+scripts/docs
+scripts/env
+scripts/environment-convertor
+scripts/fetch
+scripts/gemsets
+scripts/get
+scripts/hash
+scripts/help
+scripts/hook
+scripts/info
+scripts/initialize
+scripts/install
+scripts/irbrc
+scripts/irbrc.rb
+scripts/list
+scripts/log
+scripts/maglev
+scripts/manage
+scripts/match
+scripts/md5
+scripts/migrate
+scripts/monitor
+scripts/notes
+scripts/override_gem
+scripts/package
+scripts/patches
+scripts/patchsets
+scripts/repair
+scripts/rtfm
+scripts/rubygems
+scripts/rvm
+scripts/rvm-install
+scripts/selector
+scripts/set
+scripts/snapshot
+scripts/tools
+scripts/update
+scripts/upgrade
+scripts/utility
+scripts/version
+scripts/wrapper
+scripts/zsh/Completion/_rvm
+test/btu
+test/integration/rvm_gemsets
+test/integration/rvm_install
+test/integration/rvm_reload
+test/integration/rvm_update
+test/integration/rvm_update_head
+test/rubies/jruby-1.3.1
+test/rubies/jruby-1.4.0RC3
+test/rubies/macruby-0.5
+test/rubies/rbx-head
+test/rubies/ree-1.8.6-20090610
+test/rubies/ree-1.8.6-head
+test/rubies/ree-1.8.7-2009.10
+test/rubies/ree-1.8.7-head
+test/rubies/ruby-1.8.5-p231
+test/rubies/ruby-1.8.5-tv1_8_5
+test/rubies/ruby-1.8.6-p383
+test/rubies/ruby-1.8.7-p174
+test/rubies/ruby-1.9.1-head
+test/rubies/ruby-1.9.1-p243
+test/rubies/ruby-1.9.1-r25443
+test/rubies/ruby-1.9.2-preview1
+test/setup
+test/suite
+test/unit/cli_test
+test/unit/db_test
+test/unit/export_test
+test/unit/gemdir_test
+test/unit/gemset_test
+test/unit/rvm-prompt_test
+test/unit/selector_test
+test/unit/use_test
+test/unit/utility_test
View
54 README → README.txt
@@ -1,9 +1,17 @@
+= rvm
-Usage
+* http://github.com/wayneeseguin/rvm
+
+== DESCRIPTION:
+
+RVM is the Ruby Version Manager (rvm). It manages Ruby interpreter
+environments and switching between them.
+
+== Usage
rvm [Flags] [Options] Action [Implementation[,Implementation[,...]]
-Flags
+== Flags
--default - with 'rvm use X', sets the default ruby for new shells to X.
--debug - Toggle debug mode on for very verbose output.
@@ -15,7 +23,7 @@ Flags
--docs - with install, attempt to generate ri after installation.
--reconfigure - Force ./configure on install even if Makefile already exists.
-Options
+== Options
-v|--version - Emit rvm version loaded for current shell
-l|--level - patch level to use with rvm use / install
@@ -37,7 +45,7 @@ Options
--ree-options - Options passed directly to ree's './installer' on the command line.
--with-rubies - Specifies a string for rvm to attempt to expand for set operations.
-Action
+== Action
(Note that for most actions, 'rvm help action-name' may provide more information.)
@@ -107,7 +115,7 @@ Action
export - Temporarily set an environment variable in the current shell.
unexport - Undo changes made to the environment by 'rvm export'.
-Implementation
+== Implementation
* ruby - MRI/YARV Ruby (The Gold Standard) {1.8.6,1.8.7,1.9.1,1.9.2...}
jruby - JRuby, Ruby interpreter on the Java Virtual Machine.
@@ -121,14 +129,46 @@ Implementation
default - use rvm set default ruby and system if it hasn't been set.
http://rvm.beginrescueend.com/rubies/default/
-Resources:
+== Resources:
http://rvm.beginrescueend.com/
https://www.pivotaltracker.com/projects/26822
-Contributions:
+== Contributions:
Any and all contributions offered in any form, past present or future, to the
RVM project are understood to be in complete agreement and acceptance with the
Apache Licence v2.0.
+== INSTALL:
+
+See http://rvm.beginrescueend.com/rvm/install/
+
+or just use:
+
+ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-latest )
+
+== LICENSE:
+
+(The MIT License)
+
+Copyright (c) XXX
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
78 Rakefile
@@ -1,67 +1,30 @@
require "rubygems"
+require "hoe"
-task :default => ["test"]
-task :test do exec "bash -l -c \"./test/suite\"" ; end
+Hoe.spec "rvm" do
+ developer "Wayne E. Seguin", "wayneeseguin@gmail.com"
-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"
- end
-
- desc "Build the rvm gem."
- task :build do
-puts <<-LOCAL_INSTALL_WARNING
-
- $(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)
+ # TODO? unsure about the releases/* stuff
+ # gemspec.files = [
+ # "README", "sha1", "LICENCE", "rvm.gemspec", Dir::glob("lib/**/**"),
+ # Dir::glob("releases/rvm-#{RVM::Version::STRING}.tar.gz*")
+ # ].flatten
-LOCAL_INSTALL_WARNING
- puts "$(gem build rvm.gemspec)"
+ spec_extras[:rdoc_options] = proc do |ary|
+ # hoe kinda sucks for this! TODO: submit patch for Hoe#rdoc_options
+ ary.push "--inline-source", "--charset=UTF-8"
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"
- require "lib/rvm/version"
-
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = "rvm"
- gemspec.version = RVM::Version::STRING
- gemspec.summary = "Ruby Version Manager (rvm)"
- gemspec.require_paths = ["lib"]
- gemspec.date = Time.now.strftime("%Y-%m-%d")
- gemspec.description = "Manages Ruby interpreter environments and switching between them."
- gemspec.platform = Gem::Platform::RUBY
- gemspec.files = [
- "README", "sha1", "LICENCE", "rvm.gemspec", Dir::glob("lib/**/**"),
- Dir::glob("releases/rvm-#{RVM::Version::STRING}.tar.gz*")
- ].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 = "rvm"
- gemspec.post_install_message = <<-POST_INSTALL_MESSAGE
+ spec_extras[:post_install_message] = <<-POST_INSTALL_MESSAGE
#{"*" * 80}
This gem contains only the Ruby libraries for the RVM Ruby API.
- In order to install RVM please use one of the methods listed in the documentation
+ In order to install RVM please use one of the methods listed in the
+ documentation:
- http://rvm.beginrescueend.com/rvm/install/
+ http://rvm.beginrescueend.com/rvm/install/
such as,
@@ -70,7 +33,8 @@ begin
followed by placing the sourcing line in your ~/.bash_profile or wherever may
be appropriate for your setup (example, .zshenv, /etc/profile, ...):
- [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
+ # Load RVM into a shell session *as a function*
+ [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
After completing setup please open a new shell to use RVM and be sure to run
'rvm notes' to gain a list of dependencies to install before installing the
@@ -85,9 +49,9 @@ begin
#{"*" * 80}
POST_INSTALL_MESSAGE
-
- end
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
end
+# TODO: convert tests to ruby
+task :test do
+ exec "bash -l -c \"./test/suite\""
+end
View
4 lib/VERSION.yml
@@ -1,4 +0,0 @@
----
-:major: 1
-:minor: 2
-:patch: 6
View
2  lib/rvm.rb
@@ -54,6 +54,8 @@
# RVM::Environment.new, versus RVM.environment
#
module RVM
+ VERSION = "1.2.6"
+
require 'rvm/errors'
autoload :Shell, 'rvm/shell'
View
19 lib/rvm/version.rb
@@ -1,19 +1,12 @@
-require 'yaml'
+require 'rvm'
module RVM
module Version
+ # TODO: delete me - this crap is wholly unnecessary. It is only
+ # here right now for backwards compatibility... Unsure if that is
+ # necessary at all so I'm being conservative.
- # YAML of raw version info
- VERSION_YAML = YAML.load_file(File.expand_path("../VERSION.yml", File.dirname(__FILE__)))
-
- # Current major version of rvm
- MAJOR = VERSION_YAML[:major]
- # Current minor version of rvm
- MINOR = VERSION_YAML[:minor]
- # Current patch level of rvm
- PATCH = VERSION_YAML[:patch]
- # A String with the current rvm version
- STRING = [MAJOR, MINOR, PATCH].join(".").freeze
-
+ STRING = RVM::VERSION
+ MAJOR, MINOR, PATCH = STRING.split(/\./)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.