0
$rvm -v

rvm 1.21.15 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]


$which gem
/Users/ad9075/.rvm/rubies/ruby-2.0.0-p247/bin/gem


$rvm -v

rvm 1.21.15 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

ファイルは次の/Users/ad9075/.rvm/rubies/ruby-2.0.0-p247/bin/gemようになります。

#!/Users/ad9075/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++

require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'

required_version = Gem::Requirement.new ">= 1.8.7"

unless required_version.satisfied_by? Gem.ruby_version then
  abort "Expected Ruby Version #{required_version}, is #{Gem.ruby_version}"
end

args = ARGV.clone

begin
  Gem::GemRunner.new.run args
rescue Gem::SystemExitException => e
  exit e.exit_code
end

gem と入力すると、出力は次のようになります。

$gem
>= 0
>= 0
>= 0
>= 0
>= 0
>= 1.9.2
>= 0
>= 0
>= 0
>= 0
>= 1.9.2
>= 0
>= 0
>= 1.9.3
= 4.0.0
~> 2.5.3
>= 0
>= 1.9.3
= 4.0.0
~> 3.1.0
~> 1.5.2
~> 0.6.2
~> 2.7.0
= 4.0.0
~> 0.3.37
>= 0
>= 1.9.3
= 4.0.0
~> 3.1.0
>= 0
>= 1.9.3
= 4.0.0
= 4.0.0
~> 4.0.0
~> 1.0.2
>= 0
>= 3
< 5
>= 4.0.0.beta
~> 1.3
>= 0
>= 1.9.3
>= 0.6.4
~> 0.6
~> 1.3
~> 0.3.37
~> 4.2
~> 0.1
>= 0
~> 4.4
~> 4.0
~> 3.5
>= 0
>= 0
>= 0
>= 0
>= 0
>= 1.3.5
>= 3.0.0
>= 0
>= 0
>= 0
>= 0
~> 1.16
~> 1.4.8
>= 1.0.3
> 0.8.7
~> 2.12.0
>= 0
>= 0
>= 2.0.4
~> 4.7
~> 4.0
~> 1.2
~> 1.0
~> 1.1
~> 1.5
~> 1.0
~> 1.2
~> 1.5
~> 10.0
~> 3.6
>= 1.3.5
~> 1.0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 1.0
>= 1.8.11
>= 1.9.3
= 4.0.0
= 4.0.0
= 4.0.0
= 4.0.0
= 4.0.0
< 2.0
>= 1.3.0
~> 2.0.0
>= 0
>= 1.9.3
= 4.0.0
= 4.0.0
>= 0.8.7
< 2.0
>= 0.18.1
>= 0
~> 1.2
~> 1.0
~> 1.0
!= 1.3.0
~> 1.1
>= 0
~> 2.0
~> 1.2
~> 1.0
~> 1.0
~> 1.0
>= 0
>= 0
>= 0
~> 3.1
>= 0
>= 0
>= 0
~> 2.8
>= 3.0
>= 3.0
>= 0
>= 1.3.6
~> 1.0
>= 0
>= 0
>= 0
>= 0.1.0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 2.2.11
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
~> 0.5.0
~> 1.0
>= 2.0.0
>= 0
>= 0.3.1
>= 0
>= 1.3.6
>= 1.8.7
~> 0.7.3
~> 2.11
>= 0
>= 0
>= 1.3.2
>= 1.8.6
~> 2.1
>= 0
>= 1.0.1
>= 0
>= 0
>= 0
>= 0
>= 0
>= 1.8.7
~> 1.2
>= 1.2.1

RubyGems is a sophisticated package manager for Ruby.  This is a
basic help message containing pointers to more information.

  Usage:
    gem -h/--help
    gem -v/--version
    gem command [arguments...] [options...]

  Examples:
    gem install rake
    gem list --local
    gem build package.gemspec
    gem help install

  Further help:
    gem help commands            list all 'gem' commands
    gem help examples            show some examples of usage
    gem help platforms           show information about platforms
    gem help <COMMAND>           show help on COMMAND
                                   (e.g. 'gem help install')
    gem server                   present a web page at
                                 http://localhost:8808/
                                 with info about installed gems
  Further information:
    http://guides.rubygems.org

gem だけでなく、rails多くbundleのがらくた情報も出力します。

$rails
>= 0
>= 0
>= 0
>= 0
>= 0
>= 1.9.2
>= 0
>= 0
>= 0
>= 0
>= 1.9.2
>= 0
>= 0
>= 1.9.3
= 4.0.0
~> 2.5.3
>= 0
>= 1.9.3
= 4.0.0
~> 3.1.0
~> 1.5.2
~> 0.6.2
~> 2.7.0
= 4.0.0
~> 0.3.37
>= 0
>= 1.9.3
= 4.0.0
~> 3.1.0
>= 0
>= 1.9.3
= 4.0.0
= 4.0.0
~> 4.0.0
~> 1.0.2
>= 0
>= 3
< 5
>= 4.0.0.beta
~> 1.3
>= 0
>= 1.9.3
>= 0.6.4
~> 0.6
~> 1.3
~> 0.3.37
~> 4.2
~> 0.1
>= 0
~> 4.4
~> 4.0
~> 3.5
>= 0
>= 0
>= 0
>= 0
>= 0
>= 1.3.5
>= 3.0.0
>= 0
>= 0
>= 0
>= 0
~> 1.16
~> 1.4.8
>= 1.0.3
> 0.8.7
~> 2.12.0
>= 0
>= 0
>= 2.0.4
~> 4.7
~> 4.0
~> 1.2
~> 1.0
~> 1.1
~> 1.5
~> 1.0
~> 1.2
~> 1.5
~> 10.0
~> 3.6
>= 1.3.5
~> 1.0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 1.0
>= 1.8.11
>= 1.9.3
= 4.0.0
= 4.0.0
= 4.0.0
= 4.0.0
= 4.0.0
< 2.0
>= 1.3.0
~> 2.0.0
>= 0
>= 1.9.3
= 4.0.0
= 4.0.0
>= 0.8.7
< 2.0
>= 0.18.1
>= 0
~> 1.2
~> 1.0
~> 1.0
!= 1.3.0
~> 1.1
>= 0
~> 2.0
~> 1.2
~> 1.0
~> 1.0
~> 1.0
>= 0
>= 0
>= 0
~> 3.1
>= 0
>= 0
>= 0
~> 2.8
>= 3.0
>= 3.0
>= 0
>= 1.3.6
~> 1.0
>= 0
>= 0
>= 0
>= 0.1.0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 2.2.11
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
~> 0.5.0
~> 1.0
>= 2.0.0
>= 0
>= 0.3.1
>= 0
>= 1.3.6
>= 1.8.7
~> 0.7.3
~> 2.11
>= 0
>= 0
>= 1.3.2
>= 1.8.6
~> 2.1
>= 0
>= 1.0.1
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
>= 0
Usage:
  rails new APP_PATH [options]

バージョンに関するジャンク情報がいくつかあるようです。それは正常ですか?誰もこれについてアイデアを持っていますか...

4

0 に答える 0