summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-04 14:49:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-04 14:49:47 +0000
commit8d69c7f116d8f9053c91d86f437d6bccf4ab4a7b (patch)
tree1fdc6e6cfe1b02ce2546390fd64ee52f35544e92
parentce6af3e8a0f9add5e5ef4e5567af3eb74ba4a5d2 (diff)
* instruby.rb (install_recursive): get rid of warning.
* 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
-rw-r--r--ChangeLog20
-rw-r--r--instruby.rb6
-rw-r--r--lib/optparse.rb3
3 files changed, 18 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index a57bed1b69..6e6e872a17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
@@ -5,7 +11,7 @@ Mon Dec 4 19:16:39 2006 Akinori MUSHA <knu@iDaemons.org>
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>
@@ -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>
@@ -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.
@@ -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
diff --git a/instruby.rb b/instruby.rb
index 5548fa1f96..8327d8c570 100644
--- a/instruby.rb
+++ b/instruby.rb
@@ -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]
diff --git a/lib/optparse.rb b/lib/optparse.rb
index c4e9ad65d4..8cb29c83e6 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -663,9 +663,10 @@ class OptionParser
# 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