Skip to content

Commit

Permalink
* instruby.rb (install_recursive): get rid of warning.
Browse files Browse the repository at this point in the history
* lib/optparse.rb (CompletingHash#match): get rid of splat failure.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Dec 4, 2006
1 parent ce6af3e commit 8d69c7f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
20 changes: 13 additions & 7 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
Mon Dec 4 23:49:28 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>

* instruby.rb (install_recursive): get rid of warning.

* lib/optparse.rb (CompletingHash#match): get rid of splat failure.

Mon Dec 4 19:16:39 2006 Akinori MUSHA <knu@iDaemons.org>

* ext/digest/lib/digest/hmac.rb: Do alias << update.

Mon Dec 4 10:48:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>

* ruby.h (OFFT2NUM): use LONG2NUM() if sizeof(long) equals to
sizeof(off_t).
sizeof(off_t).

Mon Dec 4 08:32:25 2006 Shugo Maeda <shugo@ruby-lang.org>

Expand Down Expand Up @@ -47,11 +53,11 @@ Wed Nov 22 16:00:49 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>

* ext/tk/extconf.rb: support --with-X11/--without-X11 option.

* ext/tk/README.tcltklib: add description about --with-X11-* option
* ext/tk/README.tcltklib: add description about --with-X11-* option
[ruby-talk:225166] and --with-X11/--without-X11 option.

* ext/tk/tkutil/extconf.rb: able to be called manually
[ruby-talk:225950].
* ext/tk/tkutil/extconf.rb: able to be called manually
[ruby-talk:225950].

Sat Nov 18 23:39:20 2006 Yukihiro Matsumoto <matz@ruby-lang.org>

Expand Down Expand Up @@ -123,10 +129,10 @@ Mon Nov 6 15:41:55 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/sample/editable_listbox.rb: [new] the listbox with editable
items. It's one of the example about usage of Place geometry manager.

* ext/tk/sample/tktextio.rb: improve the functions of TkTextIO class.
* ext/tk/sample/tktextio.rb: improve the functions of TkTextIO class.
Those are required by 'irbtkw.rbw'.

* ext/tk/sample/irbtkw.rbw: [new] IRB on Ruby/Tk. It doesn't need any
* ext/tk/sample/irbtkw.rbw: [new] IRB on Ruby/Tk. It doesn't need any
real console. IRB works on a text widget without I/O blocking. That
is, thread switching on IRB will work properly, even if on Windows.

Expand Down Expand Up @@ -164,7 +170,7 @@ Thu Nov 2 08:21:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
come earlier than String.

* lib/soap/mapping/rubytypeFactory.rb (RubytypeFactory::obj2soap):
ditto.
ditto.

* lib/set.rb (TC_Set::test_s_new): strings are no longer
Enumerable
Expand Down
6 changes: 3 additions & 3 deletions instruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ def makedirs(dirs)
super(dirs, :mode => 0755) unless dirs.empty?
end

def install_recursive(src, dest, options = {})
def install_recursive(srcdir, dest, options = {})
noinst = options.delete(:no_install)
subpath = src.size..-1
Dir.glob("#{src}/**/*", File::FNM_DOTMATCH) do |src|
subpath = srcdir.size..-1
Dir.glob("#{srcdir}/**/*", File::FNM_DOTMATCH) do |src|
next if /\A\.{1,2}\z/ =~ (base = File.basename(src))
next if noinst and File.fnmatch?(noinst, File.basename(src))
d = dest + src[subpath]
Expand Down
3 changes: 2 additions & 1 deletion lib/optparse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,10 @@ class CompletingHash < Hash
# Completion for hash key.
#
def match(key)
return key, *fetch(key) {
*values = fetch(key) {
raise AmbiguousArgument, catch(:ambiguous) {return complete(key)}
}
return key, *values
end
end

Expand Down

0 comments on commit 8d69c7f

Please sign in to comment.