* 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:
parent
ad78cf4ea8
commit
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>
|
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
|
* 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__)
|
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 = [
|
WIN_PATTERNS = [
|
||||||
/bccwin/i,
|
/bccwin/i,
|
||||||
@ -822,7 +822,7 @@ module Gem
|
|||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
# A Gem::Version for the currently running ruby.
|
# A Gem::Version for the currently running Ruby.
|
||||||
|
|
||||||
def self.ruby_version
|
def self.ruby_version
|
||||||
return @ruby_version if defined? @ruby_version
|
return @ruby_version if defined? @ruby_version
|
||||||
@ -945,7 +945,7 @@ module Gem
|
|||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
# Load +plugins+ as ruby files
|
# Load +plugins+ as Ruby files
|
||||||
|
|
||||||
def self.load_plugin_files(plugins)
|
def self.load_plugin_files(plugins)
|
||||||
plugins.each do |plugin|
|
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
|
if defined?(RUBY_ENGINE) then
|
||||||
begin
|
begin
|
||||||
##
|
##
|
||||||
# Defaults the ruby implementation wants to provide for RubyGems
|
# Defaults the Ruby implementation wants to provide for RubyGems
|
||||||
|
|
||||||
require "rubygems/defaults/#{RUBY_ENGINE}"
|
require "rubygems/defaults/#{RUBY_ENGINE}"
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
|
@ -84,8 +84,8 @@ class Gem::Installer
|
|||||||
# :env_shebang:: Use /usr/bin/env in bin wrappers.
|
# :env_shebang:: Use /usr/bin/env in bin wrappers.
|
||||||
# :force:: Overrides all version checks and security policy checks, except
|
# :force:: Overrides all version checks and security policy checks, except
|
||||||
# for a signed-gems-only policy.
|
# for a signed-gems-only policy.
|
||||||
# :format_executable:: Format the executable the same as the ruby executable.
|
# :format_executable:: Format the executable the same as the Ruby executable.
|
||||||
# If your ruby is ruby18, foo_exec will be installed as
|
# If your Ruby is ruby18, foo_exec will be installed as
|
||||||
# foo_exec18.
|
# foo_exec18.
|
||||||
# :ignore_dependencies:: Don't raise if a dependency is missing.
|
# :ignore_dependencies:: Don't raise if a dependency is missing.
|
||||||
# :install_dir:: The directory to install the gem into.
|
# :install_dir:: The directory to install the gem into.
|
||||||
@ -144,7 +144,7 @@ class Gem::Installer
|
|||||||
io.gets # blankline
|
io.gets # blankline
|
||||||
|
|
||||||
# TODO detect a specially formatted comment instead of trying
|
# 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/
|
next unless io.gets =~ /This file was generated by RubyGems/
|
||||||
|
|
||||||
ruby_executable = true
|
ruby_executable = true
|
||||||
@ -642,7 +642,7 @@ TEXT
|
|||||||
end
|
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)
|
def windows_stub_script(bindir, bin_file_name)
|
||||||
ruby = File.basename(Gem.ruby).chomp('"')
|
ruby = File.basename(Gem.ruby).chomp('"')
|
||||||
@ -771,7 +771,7 @@ EOF
|
|||||||
|
|
||||||
##
|
##
|
||||||
# Performs various checks before installing the gem such as the install
|
# 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.
|
# rubygems versions are met and that dependencies are installed.
|
||||||
#
|
#
|
||||||
# Version and dependency checks are skipped if this install is forced.
|
# 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.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)
|
# 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
|
# #extract_files and #contents automatically call #verify
|
||||||
|
|
||||||
require 'rubygems/security'
|
require 'rubygems/security'
|
||||||
|
@ -181,13 +181,13 @@ class Gem::Platform
|
|||||||
end
|
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.
|
# binary files.
|
||||||
|
|
||||||
RUBY = 'ruby'
|
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.
|
# This will be replaced with Gem::Platform::local.
|
||||||
|
|
||||||
CURRENT = 'current'
|
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
|
# documentation for the particular gem, otherwise a list with results is
|
||||||
# shown.
|
# 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
|
# Note: please adjust paths accordingly use for example 'locate yaml.rb' and
|
||||||
# 'gem environment' to identify directories, that are specific for your
|
# 'gem environment' to identify directories, that are specific for your
|
||||||
# local installation
|
# local installation
|
||||||
#
|
#
|
||||||
# 1. install ruby sources
|
# 1. install Ruby sources
|
||||||
# cd /usr/src
|
# cd /usr/src
|
||||||
# sudo apt-get source ruby
|
# sudo apt-get source ruby
|
||||||
#
|
#
|
||||||
@ -702,7 +702,7 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
|
|||||||
# name pattern was found.
|
# name pattern was found.
|
||||||
#
|
#
|
||||||
# The search is based on the file system content, not on the gems metadata.
|
# 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.
|
# documentation - just put it underneath the main doc folder.
|
||||||
|
|
||||||
def show_rdoc_for_pattern(pattern, res)
|
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
|
# 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
|
# 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.
|
# use bash or other interpreters will not work.
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
@ -538,7 +538,7 @@ class Gem::Specification < Gem::BasicSpecification
|
|||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
# The version of ruby required by this gem
|
# The version of Ruby required by this gem
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
#
|
#
|
||||||
@ -607,7 +607,7 @@ class Gem::Specification < Gem::BasicSpecification
|
|||||||
attr_writer :original_platform # :nodoc:
|
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
|
attr_reader :required_ruby_version
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ module Gem
|
|||||||
end
|
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'
|
# 'rubygems/test_case'
|
||||||
|
|
||||||
def self.ruby= ruby
|
def self.ruby= ruby
|
||||||
@ -1010,7 +1010,7 @@ Also, a list:
|
|||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
# Finds the path to the ruby executable
|
# Finds the path to the Ruby executable
|
||||||
|
|
||||||
def self.rubybin
|
def self.rubybin
|
||||||
ruby = ENV["RUBY"]
|
ruby = ENV["RUBY"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user