rubyhackchallenge
rubyhackchallenge copied to clipboard
Implements Matz suggestion https://bugs.ruby-lang.org/issues/7517 as part of https://github.com/ko1/rubyhackchallenge Maximum (or minimum) number of fixnum can not be get in portable fashion, so I propose Integer::MAX and Integer::MIN just like Float::MAX...
I've been thinking about this for a while! It exists in ActiveSupport already: https://github.com/rails/rails/issues/20339
Semantically equivalent to (array1 & array2).any? but doesn't create an intermediate array & can return as soon as one element in common is found
> 現在、ビルドした Ruby で Gem など、外部ライブラリを、ビルドした Ruby で、他の影響を与えないで適切にテストする方法がありません。 というのも、Gem の場合、Gem のテストのために他の Gem を利用したりする必要があるためです。 区切られた環境(サンドボックス)を用いることで 以降になにか文章が続きそうなのですが、途切れています。 [rubyhackchallenge/tasks.md at master · ko1/rubyhackchallenge](https://github.com/ko1/rubyhackchallenge/blob/master/JA/tasks.md#%E3%83%93%E3%83%AB%E3%83%89%E3%81%97%E3%81%9F-ruby-%E3%81%A7%E3%81%AE-gem-%E3%81%AE%E3%83%86%E3%82%B9%E3%83%88) PRしようかと思いましたが、このあとに何を続けるのが良いか判断つかなかったのでIssueにしておきます。
https://bugs.ruby-lang.org/issues/11984 Time 系の `parse` がどう動いているのか気になっていたので、やってみます。
> Array#indexは引数とブロック両方渡すとgiven block not usedと警告してくれるけどany?などは警告してくれない
> range_last は、今は rb_Array を呼んで配列を作ってるけど、Range#each が再定義されていない場合は配列を作らずに結果を直接作れるのでメモリ消費を抑えられる。
Please tell us your feedback about RHC#3 Bristol, UK. Your feedback will help next RHC. * Your activities * Keep * Problem * Try Thanks, Koichi
Please tell us your feedback about RHC#2. Your feedback will help next RHC. * Your activities * Keep * Problem * Try This time, we held in one day. If...
# 取り組んだ課題 https://github.com/ko1/rubyhackchallenge/blob/master/tasks.md#ビルドした-ruby-での-gem-のテスト > 現在、ビルドした Ruby で Gem など、外部ライブラリを、ビルドした Ruby で、他の影響を与えないで適切にテストする方法がありません。 というのも、Gem の場合、Gem のテストのために他の Gem を利用したりする必要があるためです。 区切られた環境(サンドボックス)を用いることで # 成果 * https://gist.github.com/nownabe/b09db191e34206882b66b2e6ae2c7658 * `make install`した先でGemをテストするスクリプト * テストの流れ * Gemを指定するとYAMLの定義に従ってGemのレポジトリをクローン * Gemの依存Gemを`make...