зеркало из https://github.com/github/ruby.git
* lib/rubygems*: [DOC] Capitalize "Ruby" in documentation
Patch by Dave Worth https://github.com/ruby/ruby/pull/341 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ad78cf4ea8
Коммит
757dee1259
|
@ -1,3 +1,8 @@
|
|||
Fri Jul 19 11:23:55 2013 Zachary Scott <e@zzak.io>
|
||||
|
||||
* lib/rubygems*: [DOC] Capitalize "Ruby" in documentation
|
||||
Patch by Dave Worth https://github.com/ruby/ruby/pull/341
|
||||
|
||||
Fri Jul 19 11:16:54 2013 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* lib/set.rb (Set#to_set): Define Set#to_set so that aSet.to_set
|
||||
|
|
|
@ -115,7 +115,7 @@ module Gem
|
|||
RUBYGEMS_DIR = File.dirname File.expand_path(__FILE__)
|
||||
|
||||
##
|
||||
# An Array of Regexps that match windows ruby platforms.
|
||||
# An Array of Regexps that match windows Ruby platforms.
|
||||
|
||||
WIN_PATTERNS = [
|
||||
/bccwin/i,
|
||||
|
@ -822,7 +822,7 @@ module Gem
|
|||
end
|
||||
|
||||
##
|
||||
# A Gem::Version for the currently running ruby.
|
||||
# A Gem::Version for the currently running Ruby.
|
||||
|
||||
def self.ruby_version
|
||||
return @ruby_version if defined? @ruby_version
|
||||
|
@ -945,7 +945,7 @@ module Gem
|
|||
end
|
||||
|
||||
##
|
||||
# Load +plugins+ as ruby files
|
||||
# Load +plugins+ as Ruby files
|
||||
|
||||
def self.load_plugin_files(plugins)
|
||||
plugins.each do |plugin|
|
||||
|
@ -1143,7 +1143,7 @@ unless gem_preluded then # TODO: remove guard after 1.9.2 dropped
|
|||
if defined?(RUBY_ENGINE) then
|
||||
begin
|
||||
##
|
||||
# Defaults the ruby implementation wants to provide for RubyGems
|
||||
# Defaults the Ruby implementation wants to provide for RubyGems
|
||||
|
||||
require "rubygems/defaults/#{RUBY_ENGINE}"
|
||||
rescue LoadError
|
||||
|
|
|
@ -84,8 +84,8 @@ class Gem::Installer
|
|||
# :env_shebang:: Use /usr/bin/env in bin wrappers.
|
||||
# :force:: Overrides all version checks and security policy checks, except
|
||||
# for a signed-gems-only policy.
|
||||
# :format_executable:: Format the executable the same as the ruby executable.
|
||||
# If your ruby is ruby18, foo_exec will be installed as
|
||||
# :format_executable:: Format the executable the same as the Ruby executable.
|
||||
# If your Ruby is ruby18, foo_exec will be installed as
|
||||
# foo_exec18.
|
||||
# :ignore_dependencies:: Don't raise if a dependency is missing.
|
||||
# :install_dir:: The directory to install the gem into.
|
||||
|
@ -144,7 +144,7 @@ class Gem::Installer
|
|||
io.gets # blankline
|
||||
|
||||
# TODO detect a specially formatted comment instead of trying
|
||||
# to run a regexp against ruby code.
|
||||
# to run a regexp against Ruby code.
|
||||
next unless io.gets =~ /This file was generated by RubyGems/
|
||||
|
||||
ruby_executable = true
|
||||
|
@ -642,7 +642,7 @@ TEXT
|
|||
end
|
||||
|
||||
##
|
||||
# return the stub script text used to launch the true ruby script
|
||||
# return the stub script text used to launch the true Ruby script
|
||||
|
||||
def windows_stub_script(bindir, bin_file_name)
|
||||
ruby = File.basename(Gem.ruby).chomp('"')
|
||||
|
@ -771,7 +771,7 @@ EOF
|
|||
|
||||
##
|
||||
# Performs various checks before installing the gem such as the install
|
||||
# repository is writable and its directories exist, required ruby and
|
||||
# repository is writable and its directories exist, required Ruby and
|
||||
# rubygems versions are met and that dependencies are installed.
|
||||
#
|
||||
# Version and dependency checks are skipped if this install is forced.
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
# the_gem.spec # get the spec out of the gem
|
||||
# the_gem.verify # check the gem is OK (contains valid gem specification, contains a not corrupt contents archive)
|
||||
#
|
||||
# #files are the files in the .gem tar file, not the ruby files in the gem
|
||||
# #files are the files in the .gem tar file, not the Ruby files in the gem
|
||||
# #extract_files and #contents automatically call #verify
|
||||
|
||||
require 'rubygems/security'
|
||||
|
|
|
@ -181,13 +181,13 @@ class Gem::Platform
|
|||
end
|
||||
|
||||
##
|
||||
# A pure-ruby gem that may use Gem::Specification#extensions to build
|
||||
# A pure-Ruby gem that may use Gem::Specification#extensions to build
|
||||
# binary files.
|
||||
|
||||
RUBY = 'ruby'
|
||||
|
||||
##
|
||||
# A platform-specific gem that is built for the packaging ruby's platform.
|
||||
# A platform-specific gem that is built for the packaging Ruby's platform.
|
||||
# This will be replaced with Gem::Platform::local.
|
||||
|
||||
CURRENT = 'current'
|
||||
|
|
|
@ -670,13 +670,13 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
|
|||
# documentation for the particular gem, otherwise a list with results is
|
||||
# shown.
|
||||
#
|
||||
# === Additional trick - install documentation for ruby core
|
||||
# === Additional trick - install documentation for Ruby core
|
||||
#
|
||||
# Note: please adjust paths accordingly use for example 'locate yaml.rb' and
|
||||
# 'gem environment' to identify directories, that are specific for your
|
||||
# local installation
|
||||
#
|
||||
# 1. install ruby sources
|
||||
# 1. install Ruby sources
|
||||
# cd /usr/src
|
||||
# sudo apt-get source ruby
|
||||
#
|
||||
|
@ -702,7 +702,7 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
|
|||
# name pattern was found.
|
||||
#
|
||||
# The search is based on the file system content, not on the gems metadata.
|
||||
# This allows additional documentation folders like 'core' for the ruby core
|
||||
# This allows additional documentation folders like 'core' for the Ruby core
|
||||
# documentation - just put it underneath the main doc folder.
|
||||
|
||||
def show_rdoc_for_pattern(pattern, res)
|
||||
|
|
|
@ -452,7 +452,7 @@ class Gem::Specification < Gem::BasicSpecification
|
|||
#
|
||||
# For example, the rake gem has rake as an executable. You don’t specify the
|
||||
# full path (as in bin/rake); all application-style files are expected to be
|
||||
# found in bindir. These files must be executable ruby files. Files that
|
||||
# found in bindir. These files must be executable Ruby files. Files that
|
||||
# use bash or other interpreters will not work.
|
||||
#
|
||||
# Usage:
|
||||
|
@ -538,7 +538,7 @@ class Gem::Specification < Gem::BasicSpecification
|
|||
end
|
||||
|
||||
##
|
||||
# The version of ruby required by this gem
|
||||
# The version of Ruby required by this gem
|
||||
#
|
||||
# Usage:
|
||||
#
|
||||
|
@ -607,7 +607,7 @@ class Gem::Specification < Gem::BasicSpecification
|
|||
attr_writer :original_platform # :nodoc:
|
||||
|
||||
##
|
||||
# The version of ruby required by this gem
|
||||
# The version of Ruby required by this gem
|
||||
|
||||
attr_reader :required_ruby_version
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ module Gem
|
|||
end
|
||||
|
||||
##
|
||||
# Allows setting path to ruby. This method is available when requiring
|
||||
# Allows setting path to Ruby. This method is available when requiring
|
||||
# 'rubygems/test_case'
|
||||
|
||||
def self.ruby= ruby
|
||||
|
@ -1010,7 +1010,7 @@ Also, a list:
|
|||
end
|
||||
|
||||
##
|
||||
# Finds the path to the ruby executable
|
||||
# Finds the path to the Ruby executable
|
||||
|
||||
def self.rubybin
|
||||
ruby = ENV["RUBY"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче