Skip to content

Commit

Permalink
* lib/rubygems*: [DOC] Capitalize "Ruby" in documentation
Browse files Browse the repository at this point in the history
  Patch by Dave Worth ruby#341


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
zzak committed Jul 19, 2013
1 parent ad78cf4 commit 757dee1
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 20 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions lib/rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -822,7 +822,7 @@ def self.latest_version_for name
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
Expand Down Expand Up @@ -945,7 +945,7 @@ def self.win_platform?
end

##
# Load +plugins+ as ruby files
# Load +plugins+ as Ruby files

def self.load_plugin_files(plugins)
plugins.each do |plugin|
Expand Down Expand Up @@ -1143,7 +1143,7 @@ def clear_default_specs
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
Expand Down
10 changes: 5 additions & 5 deletions lib/rubygems/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def exec_format
# :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.
Expand Down Expand Up @@ -144,7 +144,7 @@ def check_executable_overwrite filename # :nodoc:
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
Expand Down Expand Up @@ -642,7 +642,7 @@ def app_script_text(bin_file_name)
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('"')
Expand Down Expand Up @@ -771,7 +771,7 @@ def dir

##
# 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.
Expand Down
2 changes: 1 addition & 1 deletion lib/rubygems/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions lib/rubygems/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ def =~(other)
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'
Expand Down
6 changes: 3 additions & 3 deletions lib/rubygems/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,13 @@ def root(req, res)
# 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
#
Expand All @@ -702,7 +702,7 @@ def rdoc(req, res)
# 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)
Expand Down
6 changes: 3 additions & 3 deletions lib/rubygems/specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def authors= value
#
# 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:
Expand Down Expand Up @@ -538,7 +538,7 @@ def rdoc_options
end

##
# The version of ruby required by this gem
# The version of Ruby required by this gem
#
# Usage:
#
Expand Down Expand Up @@ -607,7 +607,7 @@ def test_files= files
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

Expand Down
4 changes: 2 additions & 2 deletions lib/rubygems/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def self.win_platform=(val)
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
Expand Down Expand Up @@ -1010,7 +1010,7 @@ def build_rake_in(good=true)
end

##
# Finds the path to the ruby executable
# Finds the path to the Ruby executable

def self.rubybin
ruby = ENV["RUBY"]
Expand Down

0 comments on commit 757dee1

Please sign in to comment.