Skip to content

Commit

Permalink
* misc/ruby-mode.el (ruby-expr-beg): support $! at the end of
Browse files Browse the repository at this point in the history
  expression.   [ruby-dev:27868]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Nov 30, 2005
1 parent 0711cf3 commit cced56e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
10 changes: 10 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Wed Nov 30 13:43:07 2005 Yukihiro Matsumoto <[email protected]>

* 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 <[email protected]>

* lib/pp.rb (PP::PPMethods#object_address_group): mask an address with
Expand Down Expand Up @@ -54,6 +59,11 @@ Sat Nov 26 19:57:45 2005 WATANABE Hirofumi <[email protected]>

* dln.c (conv_to_posix_path): should initialize posix.

Fri Nov 25 20:34:56 2005 Yukihiro Matsumoto <[email protected]>

* 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 <[email protected]>

* range.c (range_max): treat end exclusion without iteration if
Expand Down
9 changes: 2 additions & 7 deletions lib/complex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,8 @@ def conjugate
Complex(@real, -@image)
end
alias conj conjugate

#
# Compares the absolute values of the two numbers.
#
def <=> (other)
self.abs <=> other.abs
end

undef <=>

#
# Test for numerical equality (<tt>a == a + 0<i>i</i></tt>).
Expand Down
2 changes: 1 addition & 1 deletion lib/drb/drb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ def perform_without_block
end
ary.collect(&@obj)[0]
else
@obj.__send__(@msg_id, *@argv)
@obj.funcall(@msg_id, *@argv)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/xmlrpc/datetime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def to_a
end

def ==(o)
Array(self) == Array(o)
self.to_a == Array(o) rescue false
end

end
Expand Down
2 changes: 1 addition & 1 deletion misc/ruby-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ The variable ruby-indent-level controls the amount of indentation.
(and (looking-at "[!?]")
(or (not (eq option 'modifier))
(bolp)
(save-excursion (forward-char -1) (looking-at "\\Sw"))))
(save-excursion (forward-char -1) (looking-at "\\Sw$"))))
(and (looking-at ruby-symbol-re)
(skip-chars-backward ruby-symbol-chars)
(cond
Expand Down
6 changes: 0 additions & 6 deletions test/test_shellwords.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ def setup
end


def test_not_string
assert_raises ArgumentError do
shellwords(@not_string)
end
end

def test_string
assert_instance_of(Array, shellwords(@cmd))
assert_equal(4, shellwords(@cmd).length)
Expand Down

0 comments on commit cced56e

Please sign in to comment.