General

Profile

jackdanger (Jack Danger)

  • Login: jackdanger
  • Email: ruby@jackcanty.com
  • Registered on: 08/11/2013
  • Last sign in: 05/23/2019

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 4 5

Activity

11/13/2014

12:14 AM Ruby Bug #10504 (Closed): Gracefully handle CSV IO file descriptor problems
This patch allows `CSV.open` to more gracefully handle user error. Because the IO object is passed to the user-provided block it's entirely possible the IO object can be closed before the block finishes. This would raise an error in the ... jackdanger (Jack Danger)
12:06 AM Ruby Feature #10503 (Open): introduce InvalidPercentEncoding error for failed URI parsing
Currently an ArgumentError is raised if a URI has an invalid percent encoding. This makes it difficult to rescue safely. Here I'm adding a patch to introduce an InvalidPercentEncoding error that would help applications rescue and handle ... jackdanger (Jack Danger)

11/12/2014

11:34 PM Ruby Misc #10502 (Closed): Removing obsolete prot_tag comment
The Changelog records Matz mentioning that the following comment was obsolete as of Wed Sep 17 23:41:45 2003
This patch removes it so future developers don't get confused.
~~~
Index: eval.c
=======================================...
jackdanger (Jack Danger)

10/06/2013

12:58 AM Ruby Bug #8988 (Closed): [DOC] fix incorrect documentation for SizedQueue
The SizedQueue documentation was incorrect for both SizedQueue#pop and SizedQueue#num_waiting. This patch adds correct documentation using language that is very similar to Queue#pop and Queue#num_waiting.
* Document-method: pop
*...
jackdanger (Jack Danger)

08/11/2013

03:52 PM Ruby Feature #8773: Binding#local_variables should work like #local_variable_set and #local_variable_get
I left a typo in the description field of this issue. The very last line of code in the example should read:
get_all_local_variables(binding) #=> [1, 2]
jackdanger (Jack Danger)
03:21 PM Ruby Feature #8773 (Closed): Binding#local_variables should work like #local_variable_set and #local_variable_get
With the addition of Binding#local_variable_get and Binding#local_variable_set the following seemed reasonable:
def get_all_local_variables(bind)
lvars = bind.send(:local_variables)
# `lvars` should equal [:x, :y], b...
jackdanger (Jack Danger)

Also available in: Atom