General

Profile

john_firebaugh (John Firebaugh)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 23 23

Activity

05/24/2021

04:40 PM Ruby Bug #17885: require_relative and require should be compatible with each other when symlinked files are used
This causes [an issue with rules_ruby for Bazel](https://github.com/bazelruby/rules_ruby/issues/100). Bazel uses symlinks extensively to implement hermetic build sandboxing. john_firebaugh (John Firebaugh)
04:39 PM Ruby Bug #17885 (Closed): require_relative and require should be compatible with each other when symlinked files are used
This is similar to #10222 (which was fixed), but it's with symlinked files. #10222 was with symlinked directories.
If files are symlinked, then mixing `require` and `require_relative` can result in the same file being loaded twice.
...
john_firebaugh (John Firebaugh)

11/08/2012

03:29 AM Ruby Feature #7297: map_to alias for each_with_object
Ugh, sorry for the spam. I didn't realize "editing" a comment actually posts a new one. john_firebaugh (John Firebaugh)
03:26 AM Ruby Feature #7297: map_to alias for each_with_object
john_firebaugh (John Firebaugh) wrote:
> john_firebaugh (John Firebaugh) wrote:
> ...
john_firebaugh (John Firebaugh)
03:25 AM Ruby Feature #7297: map_to alias for each_with_object
john_firebaugh (John Firebaugh) wrote:
> I reviewed my own use of Hash[], and in the majority of cases, I'm transforming both the key and value. So I would prefer a more flexible definition:
> ...
john_firebaugh (John Firebaugh)
03:25 AM Ruby Feature #7297: map_to alias for each_with_object
I reviewed my own use of Hash[], and in the majority of cases, I'm transforming both the key and value. So I would prefer a more flexible definition:
module Enumerable
# Associates keys with values and returns a Hash.
#
# If ...
john_firebaugh (John Firebaugh)

07/02/2012

11:18 AM Ruby Bug #6685: duplicate results in Dir[]
Hmm, according to http://www.ruby-forum.com/topic/153846 this is intended behavior. john_firebaugh (John Firebaugh)
11:08 AM Ruby Bug #6685 (Rejected): duplicate results in Dir[]
$ mkdir a
$ touch a/b.rb
$ irb
>> Dir['a{,/**}/*.rb']
=> ["a/b.rb", "a/b.rb"]
I expected ["a/b.rb"].
john_firebaugh (John Firebaugh)

05/09/2012

05:40 AM Ruby Bug #6415 (Closed): wrong documentation for Regex#==/eql?
The documentation states that "Two regexps are equal if their patterns are identical, they have the same character set code, and their casefold? values are the same" and gives the following example:
/abc/ == /abc/n #=> false
...
john_firebaugh (John Firebaugh)

04/03/2012

08:06 AM Ruby Bug #6249 (Closed): Process.exec doesn't restore the environment if it fails
>> ENV["foo"]
=> nil
> ...
Errno::ENOENT: No such file or directory - nonexistent
from (irb):2:in `exec'
from (irb):2
from /Users/john/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in `<main>'
>> ENV["foo"]
=> "bar"
I expected that...
john_firebaugh (John Firebaugh)

Also available in: Atom