mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/forwardable.rb: RDoc typo fix from Jan Svitok
<jan.svitok at gmail.com>. [ruby-core:07943] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bf9e781e33
commit
8a10bf6fc0
3 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Jun 2 22:08:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/forwardable.rb: RDoc typo fix from Jan Svitok
|
||||||
|
<jan.svitok at gmail.com>. [ruby-core:07943]
|
||||||
|
|
||||||
Fri Jun 2 19:02:09 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
Fri Jun 2 19:02:09 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
* ext/openssl/extconf.rb: use create_header.
|
* ext/openssl/extconf.rb: use create_header.
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
# array, like this:
|
# array, like this:
|
||||||
#
|
#
|
||||||
# class RecordCollection
|
# class RecordCollection
|
||||||
# extends Forwardable
|
# extend Forwardable
|
||||||
# def_delegator :@records, :[], :record_number
|
# def_delegator :@records, :[], :record_number
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
# all of which delegate to @records, this is how you can do it:
|
# all of which delegate to @records, this is how you can do it:
|
||||||
#
|
#
|
||||||
# class RecordCollection
|
# class RecordCollection
|
||||||
# # extends Forwardable, but we did that above
|
# # extend Forwardable, but we did that above
|
||||||
# def_delegators :@records, :size, :<<, :map
|
# def_delegators :@records, :size, :<<, :map
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
|
|
|
@ -38,9 +38,11 @@ vars = {}
|
||||||
has_version = false
|
has_version = false
|
||||||
File.foreach "config.status" do |line|
|
File.foreach "config.status" do |line|
|
||||||
next if /^#/ =~ line
|
next if /^#/ =~ line
|
||||||
if /^s[%,]@program_transform_name@[%,]s,(.*)/ =~ line
|
line.gsub!(/\|#_!!_#\|/, '')
|
||||||
|
if /^s[%,]@program_transform_name@[%,]s(\\?.)(.*)\1[%,]/ =~ line
|
||||||
next if $install_name
|
next if $install_name
|
||||||
ptn = $1.sub(/\$\$/, '$').split(/,/) #'
|
sep = Regexp.quote($1)
|
||||||
|
ptn = $2.sub(/\$\$/, '$').split(/#{sep}/,2)
|
||||||
v_fast << " CONFIG[\"ruby_install_name\"] = \"" + "ruby".sub(/#{ptn[0]}/,ptn[1]) + "\"\n"
|
v_fast << " CONFIG[\"ruby_install_name\"] = \"" + "ruby".sub(/#{ptn[0]}/,ptn[1]) + "\"\n"
|
||||||
elsif /^s[%,]@(\w+)@[%,](.*)[%,]/ =~ line
|
elsif /^s[%,]@(\w+)@[%,](.*)[%,]/ =~ line
|
||||||
name = $1
|
name = $1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue