mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* misc/ruby-mode.el (ruby-expr-beg): support $! at the end of
expression. [ruby-dev:27868] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0711cf3cd8
commit
cced56ef7c
6 changed files with 15 additions and 16 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Nov 30 13:43:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* misc/ruby-mode.el (ruby-expr-beg): support $! at the end of
|
||||||
|
expression. [ruby-dev:27868]
|
||||||
|
|
||||||
Mon Nov 28 20:24:22 2005 Tanaka Akira <akr@m17n.org>
|
Mon Nov 28 20:24:22 2005 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* lib/pp.rb (PP::PPMethods#object_address_group): mask an address with
|
* lib/pp.rb (PP::PPMethods#object_address_group): mask an address with
|
||||||
|
@ -54,6 +59,11 @@ Sat Nov 26 19:57:45 2005 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* dln.c (conv_to_posix_path): should initialize posix.
|
* dln.c (conv_to_posix_path): should initialize posix.
|
||||||
|
|
||||||
|
Fri Nov 25 20:34:56 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/xmlrpc/datetime.rb (DateTime::to_a): comparison with non
|
||||||
|
array-convertible object must return false.
|
||||||
|
|
||||||
Fri Nov 25 14:34:09 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Nov 25 14:34:09 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* range.c (range_max): treat end exclusion without iteration if
|
* range.c (range_max): treat end exclusion without iteration if
|
||||||
|
|
|
@ -306,12 +306,7 @@ class Complex < Numeric
|
||||||
end
|
end
|
||||||
alias conj conjugate
|
alias conj conjugate
|
||||||
|
|
||||||
#
|
undef <=>
|
||||||
# Compares the absolute values of the two numbers.
|
|
||||||
#
|
|
||||||
def <=> (other)
|
|
||||||
self.abs <=> other.abs
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test for numerical equality (<tt>a == a + 0<i>i</i></tt>).
|
# Test for numerical equality (<tt>a == a + 0<i>i</i></tt>).
|
||||||
|
|
|
@ -1549,7 +1549,7 @@ module DRb
|
||||||
end
|
end
|
||||||
ary.collect(&@obj)[0]
|
ary.collect(&@obj)[0]
|
||||||
else
|
else
|
||||||
@obj.__send__(@msg_id, *@argv)
|
@obj.funcall(@msg_id, *@argv)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ class DateTime
|
||||||
end
|
end
|
||||||
|
|
||||||
def ==(o)
|
def ==(o)
|
||||||
Array(self) == Array(o)
|
self.to_a == Array(o) rescue false
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -318,7 +318,7 @@ The variable ruby-indent-level controls the amount of indentation.
|
||||||
(and (looking-at "[!?]")
|
(and (looking-at "[!?]")
|
||||||
(or (not (eq option 'modifier))
|
(or (not (eq option 'modifier))
|
||||||
(bolp)
|
(bolp)
|
||||||
(save-excursion (forward-char -1) (looking-at "\\Sw"))))
|
(save-excursion (forward-char -1) (looking-at "\\Sw$"))))
|
||||||
(and (looking-at ruby-symbol-re)
|
(and (looking-at ruby-symbol-re)
|
||||||
(skip-chars-backward ruby-symbol-chars)
|
(skip-chars-backward ruby-symbol-chars)
|
||||||
(cond
|
(cond
|
||||||
|
|
|
@ -11,12 +11,6 @@ class TestShellwords < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def test_not_string
|
|
||||||
assert_raises ArgumentError do
|
|
||||||
shellwords(@not_string)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_string
|
def test_string
|
||||||
assert_instance_of(Array, shellwords(@cmd))
|
assert_instance_of(Array, shellwords(@cmd))
|
||||||
assert_equal(4, shellwords(@cmd).length)
|
assert_equal(4, shellwords(@cmd).length)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue