General

Profile

colindkelley (Colin Kelley)

  • Login: colindkelley
  • Email: colin@invoca.com
  • Registered on: 12/22/2013
  • Last sign in: 04/29/2020

Issues

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

Activity

01/17/2024

12:45 AM Ruby Revision 8ae24e6b (git): [ruby/psych] issue #443: quote Y and N when dumping
https://github.com/ruby/psych/commit/93c8fb443a colindkelley (Colin Kelley)
12:45 AM Ruby Revision 77593495 (git): [ruby/psych] issue #443: drop special tests for y, Y, n, N since they covered in the more general test
https://github.com/ruby/psych/commit/6750b35402 colindkelley (Colin Kelley)

04/30/2020

04:16 AM Ruby Feature #16821: gem version notation for "rational version" compatibility
Thank you for the quick response. Yes, I will do refile there. Sorry for mistakenly filing here. colindkelley (Colin Kelley)

04/29/2020

11:10 PM Ruby Feature #16821 (Third Party's Issue): gem version notation for "rational version" compatibility
When a gemspec wants to express a version requirement, we typically use the `'~> '` notation like this:
```ruby
spec.add_dependency 'nokogiri', '~> 1.8'
```
This indicates compatibility following the "rational versioning" as descri...
colindkelley (Colin Kelley)

12/22/2015

04:49 PM Ruby Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
Hi Matz, do you have any reactions to the above? colindkelley (Colin Kelley)

12/13/2015

08:13 PM Ruby Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
> If #dig returns nil instead of exception, as you want, we cannot distinguish case 2 and case 3.
I've looked at a lot of JSON parsing code in Ruby and haven't found examples that were looking to draw that distinction. (Those that do...
colindkelley (Colin Kelley)

12/12/2015

10:19 PM Ruby Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
As described by Matz, it sounds like the implementation would be equivalent to
~~~
def dig(key, *keys)
value = self[key] # may raise TypeError
if keys.empty? || value.nil?
value
else
value.respond_to?(:dig) ...
colindkelley (Colin Kelley)

12/08/2015

04:03 AM Ruby Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
Here is my suggested documentation on how `Hash#dig` should behave as part of a general `dig` protocol. The patch includes equivalent changes to the documentation for `Array#dig`.
~~~
* Extracts a nested value by navigating the giv...
colindkelley (Colin Kelley)
01:35 AM Ruby Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
> I'd guess, like Colin, that returning nil is probably the best. Makes debugging harder when writing new code, but makes backward compatibility easier, since old code using dig wouldn't bomb if the data layout changes in the future.
...
colindkelley (Colin Kelley)

12/07/2015

03:59 PM Ruby Bug #11759: URI breaks with frozen strings
> I prefer String.new() to "".dup because the former describes intention (of creating a buffer).
Ok. I've attached a rev3 patch that uses `String.new` instead of `''.dup`.
> ...
I had a question about that but I saw it answered els...
colindkelley (Colin Kelley)

Also available in: Atom