[#68845] [Ruby trunk - Feature #11056] [PATCH] lib/net/*: use io/wait methods instead of IO.select — normalperson@...
Issue #11056 has been updated by Eric Wong.
3 messages
2015/04/11
[#68945] [Ruby trunk - Feature #11083] [Open] Gemify net-telnet — shibata.hiroshi@...
Issue #11083 has been reported by Hiroshi SHIBATA.
4 messages
2015/04/21
[#68951] Re: [Ruby trunk - Feature #11083] [Open] Gemify net-telnet
— Eric Wong <normalperson@...>
2015/04/21
shibata.hiroshi@gmail.com wrote:
[#69012] [Ruby trunk - Feature #11105] [Open] ES6-like hash literals — shugo@...
Issue #11105 has been reported by Shugo Maeda.
5 messages
2015/04/29
[ruby-core:68994] [Ruby trunk - Bug #11099] def assert method raise syntax error
From:
rorocodeath@...
Date:
2015-04-26 14:27:15 UTC
List:
ruby-core #68994
Issue #11099 has been updated by roro co.
But when i use following code(add one space), it work
~~~
class AsrErr < StandardError
end
def asr(r, msg=nil, *args, &blk)
unless r
if msg
raise AsrErr
end
end
end
a = 2
asr (a > 0 and a < 1)
~~~
----------------------------------------
Bug #11099: def assert method raise syntax error
https://bugs.ruby-lang.org/issues/11099#change-52254
* Author: roro co
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
In ruby 2.2, when i try
~~~
def assert(*args, &blk)
end
assert(a > 0 and a < 1)
~~~
it will raise
~~~
Uncaught exception: /home/roroco/Dropbox/rbs/ro_btc/ex/ex.rb:5: syntax error, unexpected keyword_and, expecting ')'
assert(a > 0 and a < 1)
~~~
--
https://bugs.ruby-lang.org/