jugyo/earthquake 665
Twitter terminal client with streaming API support.
Mail Archive plugin for Redmine
my practical Enumerable module by Ruby
xlsx generation with charts, images, automated column width, customizable styles and full schema validation. Axlsx excels at helping you generate beautiful Office Open XML Spreadsheet documents without having to understand the entire ECMA specification. Check out the README for some examples of how easy it is. Best of all, you can validate your xlsx file before serialization so you know for sure that anything generated is going to load on your client's machine.
Imai.rb
Executable specification for the Ruby programming language.
Rails plugin to workaround for fixing output result of 'to_yaml' method treats multibyte UTF-8 string(such as japanese) as binary.
Twitter terminal client with streaming API support.
Ruby-GetText-Package is a Localization(L10n) library and tools which modeled after GNU gettext package.
pull request commentrurema/doctree
Ruby 3.0 で open-uri の Kernel.#open への再定義が削除されたので対応した
@znz https://github.com/rurema/doctree/pull/2466/commits/6790519a6ffd36da279f678ebb38503551725505 で対応しました
comment created time in 5 hours
PR opened rurema/doctree
Ruby 3.0 で追加された GC.auto_compact / GC.auto_compact=
の説明を追加しました
参照
- [Feature #17176] GC.auto_compact / GC.auto_compact=(flag)
- https://docs.ruby-lang.org/en/3.0.0/GC.html#method-c-auto_compact-3D
- https://github.com/rurema/doctree/issues/2458
pr created time in 5 hours
pull request commentrurema/doctree
rejectはeachがなくても動作するのではないでしょうか?
https://github.com/rurema/doctree/pull/2386 での変更なので、変更するなら全体的にメソッドが再定義されていない Enumerable を include しているクラスを使う例にすると良いかもしれません。
comment created time in 7 hours
pull request commentrurema/doctree
rejectはeachがなくても動作するのではないでしょうか?
Array
で同名のreject
を再定義していて、
Enumerable
で定義したreject
とは別物だから、
あえてeach
を挟んでいるのだろうと思いましたが、
そのメッセージ性がわかりにくいですね。
p [1, 2, 3].method(:reject) # #<Method: Array#reject()>
p [1, 2, 3].each.method(:reject) # #<Method: Enumerator(Enumerable)#reject()>
comment created time in 7 hours
Pull request review commentrurema/doctree
val をセットします。val を返します。 @param name [[c:String]] または [[c:Symbol]] を指定します。 - class Fred- @@foo = 99- def foo- @@foo- end+#@samplecode 例+class Fred @@foo = 99
ありがとうございますー!
comment created time in 2 days
push eventrurema/doctree
commit sha cb3427354a653a286059820884ccb26fb00a2403
Regexp literals and all Range objects are frozen since 3.0
commit sha d95285bbeef07f3eac38a7112d8f847b461bba31
Merge pull request #2471 from ima1zumi/regexp-literal-and-range-object-are-frozen Regexp literals and all Range objects are frozen since 3.0
push time in 2 days
PR merged rurema/doctree
Ruby 3.0.0 から正規表現リテラルとすべてのRangeオブジェクトはfreezeされるようになりました。
ruby/NEWS.md at v3_0_0 · ruby/ruby
ref: #2458
pr closed time in 2 days
Pull request review commentrurema/doctree
Proc がローカル変数のスコープを保持していることは以下の ブロックを指定しなければ、このメソッドを呼び出したメソッドが ブロックを伴うときに、それを Proc オブジェクトとして生成して返します。 - def foo- pr = Proc.new- pr.call(1)- end- foo {|arg| p arg }- # => 1+#@samplecode 例+def foo+ pr = Proc.new
2.7 で警告が出て 3.0 で使えなくなっているので、ついでに変更をお願いします。
% docker run -it --rm ghcr.io/ruby/all-ruby env ALL_RUBY_SINCE=ruby-1.8 ./all-ruby -e 'def foo; Proc.new; end; foo{}'
ruby-1.8.0
...
ruby-2.6.6
ruby-2.7.0-preview1 -e:1: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
...
ruby-2.7.1 -e:1: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
ruby-2.7.2
ruby-3.0.0-preview1 -e:1:in `new': tried to create Proc object without a block (ArgumentError)
from -e:1:in `foo'
from -e:1:in `<main>'
exit 1
...
ruby-3.0.0 -e:1:in `new': tried to create Proc object without a block (ArgumentError)
from -e:1:in `foo'
from -e:1:in `<main>'
exit 1
comment created time in 2 days
push eventrurema/doctree
commit sha 40ee782e47397587c0a56b2bee64df621ac78559
サンプルコードにハイライトを追加
commit sha a2480011452b1e2ca701f3224d9e0c8277214a1d
Merge pull request #2469 from osyo-manga/add-samplecode-to-Class Class のサンプルコードにハイライトを追加
push time in 2 days
PR merged rurema/doctree
Class のサンプルコードに #@samplecode ~ #@end
を追加してハイライトされるようにしました。
pr closed time in 2 days
push eventrurema/doctree
commit sha 102e9c3e983606e4c96d6dd82dc667ce133eaeb3
サンプルコードにハイライトを追加
commit sha e890fae49fae9f9a1207aab6b762a2d1fc5477db
Merge pull request #2468 from osyo-manga/add-samplecode-to-BasicObject BasicObject のサンプルコードにハイライトを追加
push time in 2 days
PR merged rurema/doctree
BasicObject サンプルコードに #@samplecode ~ #@end
を追加してハイライトされるようにしました。
pr closed time in 2 days
Pull request review commentrurema/doctree
val をセットします。val を返します。 @param name [[c:String]] または [[c:Symbol]] を指定します。 - class Fred- @@foo = 99- def foo- @@foo- end+#@samplecode 例+class Fred @@foo = 99
class Fred
@@foo = 99
comment created time in 2 days
pull request commentrurema/doctree
Ruby 3.0 で open-uri の Kernel.#open への再定義が削除されたので対応した
sample code では open したらちゃんと close するようにしてほしいです。 既存の例にもあるのは別 pull request で修正でも良いのですが、新規に追加する例ではちゃんとブロック付きか close ありにしてほしいです。
comment created time in 2 days
push eventrurema/doctree
commit sha 7a26be3badf80b32de71779f6b9d0c8c24a09397
Add return value of Module#attr Module#attr_accessor Module#attr_reader Module#attr_writer.
commit sha 3a9024fa2f674474439e361a6a0b17e777c00110
@return params only when Ruby 3.0.0.
commit sha 459e229631d26cc16ab93735becde3430efd4d81
Fix args.
commit sha 27cc79e4a59a10247bf6383e6d570e8b938c0537
Merge pull request #2461 from osyo-manga/add-module_attr_return Add return value of Module#attr Module#attr_accessor Module#attr_reader Module#attr_writer
push time in 2 days
PR merged rurema/doctree
Ruby 3.0 で Module#attr
Module#attr_accessor
Module#attr_reader
Module#attr_writer
の戻り値が変更されたのでそのドキュメントを追加しました。
参照
- [Feature #17314] Provide a way to declare visibility of attributes defined by attr* methods in a single expression
- https://github.com/rurema/doctree/issues/2458
pr closed time in 2 days
push eventrurema/doctree
commit sha cfe308fdb7a65a76f2ef0fb778b2697e7eef35fc
File::Stat#world_readable?とworld_writable?の記述を日本語化した
commit sha 22a7fab6d61b9bcfbcafad9476829e2a36cec4bd
不要なコメントを削除した (bc-rdoc: detected missing name)
commit sha 7102ce70697c5ff7a14110a82544e8d2bda0bc40
Merge pull request #2455 from nekoTheShadow/fix_File_Stat_world_readable_and_writable File::Stat#world_readable?とworld_writable?の記述を日本語化した
push time in 2 days
PR merged rurema/doctree
File::Stat#world_readable?とworld_writable?の記述を日本語化しました。
書きぶりはFileTestのworld_readable?とworld_readable?をそれぞれ参考にしています。
pr closed time in 2 days
push eventrurema/doctree
commit sha 0e45552c348140020986c7bfe3427a3f1207ec07
Benchmark.#bm,benchmark の返り値更新 https://github.com/ruby/ruby/commit/4870feb31a6625dcbf8817ccf16294bb3f3737e1#diff-630499446570a9b1bd6b6efc1534eb42bf50e875f3dbe81282ee535433b4f158R178 の変更で ruby-1.9.3-preview1 から返り値が修正されているため。
commit sha b3b155af14f80efe853f33bd2bc8fa320fa4cf98
Merge pull request #2464 from znz/benchmark-return-type Benchmark.#bm,benchmark の返り値更新
push time in 2 days
PR merged rurema/doctree
https://github.com/ruby/ruby/commit/4870feb31a6625dcbf8817ccf16294bb3f3737e1#diff-630499446570a9b1bd6b6efc1534eb42bf50e875f3dbe81282ee535433b4f158R178 の変更で ruby-1.9.3-preview1 から返り値が修正されているため。
(ruby-jp slack の #performance
で指摘があって調べた結果の反映になります。)
他の [Benchmark::Tms]
を返すメソッドでは @return
の説明を書いていなかったので、単純に削っています。
pr closed time in 2 days
push eventrurema/doctree
commit sha 24b36f4db865b21b1580f6d8cf8cc2003562531a
Remove obsoleted ci skip checks https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
commit sha 35dcfcc8c93b342ca0ff6d8002dc39882f564f4a
Merge pull request #2457 from znz/remove-ci-skip-check Remove obsoleted ci skip checks
push time in 2 days
PR merged rurema/doctree
https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
pr closed time in 2 days
PR opened rurema/doctree
Binding のサンプルコードに #@samplecode ~ #@end
を追加してハイライトされるようにしました。a
pr created time in 2 days
PR opened rurema/doctree
cmath などの gem 化されて外されたものは対応済みだったのですが、 NEWS-2.7.0 で離れた場所に書かれていた profile の削除の対応が漏れていたので、その対応です。
* Removed from standard library. It was unmaintained since Ruby 2.0.0.
pr created time in 4 days
PR opened rurema/doctree
Ruby 3.0.0 から正規表現リテラルとすべてのRangeオブジェクトはfreezeされるようになりました。
ruby/NEWS.md at v3_0_0 · ruby/ruby
ref: #2458
pr created time in 4 days
PR opened rurema/doctree
Proc のサンプルコードに #@samplecode ~ #@end
を追加してハイライトされるようにしました。
pr created time in 4 days
PR opened rurema/doctree
Class のサンプルコードに #@samplecode ~ #@end
を追加してハイライトされるようにしました。
pr created time in 4 days
PR opened rurema/doctree
BasicObject サンプルコードに #@samplecode ~ #@end を追加してハイライトされるようにしました。
pr created time in 4 days
PR opened rurema/doctree
Module サンプルコードに #@samplecode ~ #@end
を追加してハイライトされるようにしました。
Module.attr
ファイルなどは別途対応します。
pr created time in 4 days