shuujii (Shuji KOBAYASHI)
- Login: shuujii
- Email: shuujii@gmail.com
- Registered on: 04/24/2012
- Last sign in: 10/22/2019
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 11 | 12 |
Activity
11/27/2020
-
08:52 AM Ruby Bug #17349 (Closed): Rake での並行実行における正規表現マッチングの異常
- 小さな再現コードが作成できなかったのですが、以下のように Rake で並行実行すると正規表現のマッチングがおかしくなることがあるように見えます。
### 再現手順
``` shell
$ git clone https://github.com/mruby/mruby
$ cd mruby
$ git checkout 0cb3a718
$ rake -m CONFIG=boxing clean gensym
Cleaned up target b...
01/05/2020
-
02:28 AM Ruby Revision 9b928fa4 (git): [ruby/reline] Sort completion list
- #### Legacy mode:
```console
$ irb --legacy
irb(main):001:0> l[TAB][TAB]
lambda load local_variables loop
```
#### Before this patch:
```console
$ irb
irb(main):001:0> l[TAB][TAB]
local_variabl...
06/14/2019
-
01:02 AM Ruby Bug #15857: <=> の右辺が <=> を実装していない場合の振る舞い
- > > @jeremyevans0 Thank you for your comment. About Complex, I agree with most of v2 patch, but I have some comments.
> ...
I don't have a strong opinion, too.
> > About other than Complex, <=> of some classes, such as String and Tim...
06/11/2019
-
02:09 PM Ruby Bug #15857: <=> の右辺が <=> を実装していない場合の振る舞い
- @jeremyevans0 Thank you for your comment. About `Complex`, I agree with most of v2 patch, but I have some comments.
- Should methods from `Comparable` that are currently disabled be enabled?
- `rb_undef_method(rb_cComplex, "<=>")` is...
05/17/2019
-
10:40 AM Ruby Bug #15857 (Closed): <=> の右辺が <=> を実装していない場合の振る舞い
- `<=>` の右辺が `<=>` を実装していないとき、`nil` が返却される場合と例外が発生する場合があり一貫性がないように思えるのですが、意図的でしょうか。
```ruby
0 <=> 0i #=> NoMethodError (undefined method `<=>' for (0+0i):Complex)
0 <=> BasicObject.new #=> nil
:a <=> 0i ...
01/15/2019
-
10:17 AM Ruby Bug #15537 (Closed): Numeric#step doesn't iterate under some conditions
- Numeric#step doesn't iterate under the following conditions:
- receiver and/or `by` are `Float`
- `by` is negative
- `to` is default
- without block
### Example:
Good:
~~~ruby
p 1.step(by: 3).take(2) ...
12/30/2018
-
06:09 AM Ruby Bug #15488: const_defined?("File::NULL") の挙動
- なるほどー。そういう違いがあるんですね。
そうすると、`File.const_defined?("NULL")` は `true` になることと、
`Object.const_get("File::NULL")` との一貫性の観点から
`Object.const_defined?("File::NULL")` も `true` になるほうが良いような気がします。 -
04:07 AM Ruby Bug #15488 (Closed): const_defined?("File::NULL") の挙動
- `const_get` と `const_defined?` について、例えば `Math::PI` では以下のようになり
どちらも期待通りの結果になります。
~~~ruby
p Object.const_get("Math::PI") #=> 3.141592653589793
p Object.const_defined?("Math::PI") #=> true
~~~
一方、`File::NULL` の場合は以下のように...
12/23/2018
-
02:03 AM Ruby Bug #15454 (Closed): Add documentation for Struct#to_h with block
- There is no docs about `Struct#to_h` with block.
Patch attached.
12/22/2018
-
01:18 PM Ruby Feature #15451 (Closed): OpenStruct#to_h でブロックを許容する
- `Struct#to_h` がブロックを受け付けるようになったので、`OpenStruct#to_h`
も同様にしてはどうでしょうか。
パッチを添付します。