General

Profile

znz (Kazuhiro NISHIYAMA)

  • Registered on: 05/12/2008
  • Last connection: 10/03/2017

Issues

Projects

Activity

11/02/2017

01:00 PM Ruby trunk Bug #14075 (Open): File.dirname("path without dir".taint) returns untainted string
Is this intentional?
```
% ruby -e 'p [File.dirname("foo/bar".taint).tainted?, File.dirname("hoge".taint).tainted...

10/31/2017

11:50 AM Ruby trunk Bug #14060: SecurityError with $SAFE=1 when requiring an untainted path
I checked.
- In `gemspec_stubs_in`, `dir` is tainted
- In caller, `default_specifications_dir` is tainted
- In `...

10/22/2017

09:32 AM Ruby trunk Feature #14040 (Open): deprecate HTTP.version_1_2
r60311 をみて、`Net::HTTP#min_version/max_version` って長い間 1.2 になってから変わっていない net/http 自体のバージョンと紛らわしいと思ったので、 `Net::HTTP.vers...

10/17/2017

12:07 PM Ruby trunk Misc #14019: Layout fixes in rdoc of lib/tempfile.rb
Why change from `*args` to `**options`?
I thinks `all arguments` do not mean `**options` only but basename, tmpdir, ...

10/11/2017

03:42 PM Ruby trunk Feature #12979: Avoid exception for #dup on Integer (and similar cases)
I think no one is doing it.
Patches welcome.

10/04/2017

11:11 AM Ruby trunk Feature #13969 (Open): Dir#each_child
Dir has class method pairs: `Dir.entries` / `Dir.children`, `Dir.foreach` / `Dir.each_child`.
But instance method is...

10/03/2017

01:18 PM Ruby trunk Bug #13956: Segmentation fault when calling Method#using with a non-module argument and block
`using` は top level (`main`) の特異メソッド (と `Module#using`) なので、`Object` のインスタンスメソッドより優先されるため、上書きするなら `def self.using` にす...

09/30/2017

05:44 AM Ruby trunk Feature #13395: Add a method to check for not nil
I think `Array#nitems` is like this. But it was removed since ruby 1.9.1.
In doc/NEWS-1.9.1:
> o Array#nitems w...

09/28/2017

02:19 PM Ruby trunk Feature #13943: Use unpack1 instead of unpack(template)[0] in erb.rb
Using benchmark_driver gem, `unpack1(template)` is about 1.07x faster than `unpack(template)[0]`.
```
% cat url_e...

09/27/2017

12:56 PM Ruby trunk Feature #13943 (Closed): Use unpack1 instead of unpack(template)[0] in erb.rb
I think `unpack1(template)` is faster than `unpack(template)[0]`.
Attached patch for `lib/erb.rb`.

Also available in: Atom