General

Profile

yorickpeterse (Yorick Peterse)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 2 3

Activity

02/27/2015

10:06 AM Ruby Misc #10907: Documentation of Addrinfo.new suggests default family of PF_UNSPEC while in practise it appears to be AF_INET
It seems I am confusing `afamily` with `pfamily`. The `pfamily` indeed returns `Socket::PF_UNSPEC` by default. yorickpeterse (Yorick Peterse)
10:05 AM Ruby Bug #10908: Addrinfo.new appears to ignore the afamily argument when using a String for sockaddr
@Michael
Hm, good catch, I hadn't thought of that. In that case it indeed looks like I
was misunderstanding the documentation. I'll work on the specs to
confirm or rule this out.
yorickpeterse (Yorick Peterse)

02/26/2015

11:36 AM Ruby Bug #10908 (Rejected): Addrinfo.new appears to ignore the afamily argument when using a String for sockaddr
When creating a new `Addrinfo` instance the `new` class method appears to ignore
the 2nd (afamily) argument and always sets it to `AF_INET`. Some examples:
Socket::AF_INET # => 2
Addrinfo.new(Socket.sockaddr_in(80, 'localh...
yorickpeterse (Yorick Peterse)
11:28 AM Ruby Misc #10907: Documentation of Addrinfo.new suggests default family of PF_UNSPEC while in practise it appears to be AF_INET
By the way, this was tested using `ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]` on Arch Linux (`Linux yorickpeterse-macbook-olery 3.17.6-1-ARCH #1 SMP PREEMPT Sun Dec 7 23:43:32 UTC 2014 x86_64 GNU/Linux`). yorickpeterse (Yorick Peterse)
11:27 AM Ruby Misc #10907 (Rejected): Documentation of Addrinfo.new suggests default family of PF_UNSPEC while in practise it appears to be AF_INET
The documentation of Addrinfo.new states the following:
> family is specified as an integer to specify the protocol family such as
> ...
However, the behaviour contradicts this:
Addrinfo.new(Socket.sockaddr_in(80, 'localhost')...
yorickpeterse (Yorick Peterse)

02/23/2015

10:11 AM Ruby Feature #10561: Improve function of Thread::Backtrace::Location #path and #absolute_path
It's fine for the methods to do different things, the naming however is a bit
confusing. Using `path` doesn't clearly state when it's absolute and when it's
relative. Perhaps `script_path` would make more sense.
Merging the two is a...
yorickpeterse (Yorick Peterse)

02/05/2015

10:23 AM Ruby Feature #10561: Improve function of Thread::Backtrace::Location #path and #absolute_path
Benoit: correct, I just found this out by messing around more with this. This
behaviour is extremely confusing, especially since the tests both just compare
if `path` and `absolute_path` equal `__FILE__`.
Perhaps the Tempfile code i...
yorickpeterse (Yorick Peterse)

02/04/2015

09:37 AM Ruby Feature #10561: Improve function of Thread::Backtrace::Location #path and #absolute_path
Also, I'll submit a patch to fix the documentation of `path` so that it states it's an alias of `absolute_path`. yorickpeterse (Yorick Peterse)
09:33 AM Ruby Feature #10561: Improve function of Thread::Backtrace::Location #path and #absolute_path
Nobu: Thanks! I'll update the Rubinius implementation of this to match that behaviour. yorickpeterse (Yorick Peterse)

02/03/2015

10:27 PM Ruby Feature #10561: Improve function of Thread::Backtrace::Location #path and #absolute_path
Nobu: I talked about this with Koichi today after noticing you added tests for
path/absolute_path after my talk at FOSDEM. Since these tests assert that path
returns the full path I'd like to know which one is correct.
Is it this:
...
yorickpeterse (Yorick Peterse)

Also available in: Atom