General

Profile

timcraft (Tim Craft)

  • Login: timcraft
  • Registered on: 10/13/2013
  • Last sign in: 02/17/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 2 2 4

Activity

06/09/2025

01:41 PM Ruby Revision e210a70e (git): [ruby/prism] Fix typo in visitor example code
https://github.com/ruby/prism/commit/5aa963f8e6 timcraft (Tim Craft)

06/09/2023

10:00 AM Ruby Feature #19521: Support for `Module#name=` and `Class#name=`.
What about `Module#label=` and `Class#label=` etc?
* If the value e.g. `"fake name"` cannot be used to reference the class then is that really a name?
* The naming of the `#labeled_module` and `#labeled_class` methods posted in the d...
timcraft (Tim Craft)

11/12/2021

11:33 AM Ruby Feature #18033: Time.new to parse a string
Nice performance improvement!
In terms of the interface I think it would be confusing to make `Time.new` parse a string:
* Using a `.parse` method for parsing is more conventional / less surprising / more intention revealing
* Havin...
timcraft (Tim Craft)

01/23/2021

11:54 AM Ruby Feature #17472: HashWithIndifferentAccess like Hash extension
hcatlin (Hampton Catlin) wrote in #note-15:
> Would anyone here think the code below was acceptable?
Mixing symbol keys and string keys together like that would no doubt be very confusing, but why would you choose to do that instead ...
timcraft (Tim Craft)

07/22/2020

02:08 PM Ruby Bug #17042 (Closed): Times with timezones return incorrect week numbers
Times with timezones return incorrect week numbers from strftime. For example:
$ irb -r tzinfo
irb(main):001:0> Time.utc(2020, 7, 22, 12, 0, 0).strftime('%U %V %W')
=> "29 30 29"
irb(main):002:0> Time.new(2020, 7, 2...
timcraft (Tim Craft)

07/11/2020

12:40 PM Ruby Bug #17024: Times with timezones return incorrect wday and yday
For example:
```
$ irb -r tzinfo
irb(main):001:0> Time.new(2020, 1, 1, 0, 0, 0, TZInfo::Timezone.get('America/New_York')).wday
=> 7
irb(main):002:0> Time.new(2020, 1, 1, 0, 0, 0, TZInfo::Timezone.get('America/New_York')).yday
=> 0
...
timcraft (Tim Craft)
10:22 AM Ruby Bug #17024 (Closed): Times with timezones return incorrect wday and yday
The timezone support added to Time in Ruby 2.6 does not appear to handle wday and yday.
I don't know what the most appropriate fix is, but looking at time.c and [the commit which introduced the timezone feature](https://github.com/rub...
timcraft (Tim Craft)

04/10/2020

11:36 AM Ruby Feature #16773 (Open): Reduce allocations in net/http
Some minor patches which help to reduce allocations in net/http, which should benefit any programs making heavy use of net/http:
* patch1.diff sets frozen_string_literal to true for some net/http files (I used `''.dup` for mutable str...
timcraft (Tim Craft)

12/23/2013

11:26 PM Ruby Feature #9020: Net::HTTPResponse predicate/query methods
Adding proposed patch, which takes advantage of recent frozen string optimization. timcraft (Tim Craft)

10/16/2013

08:01 AM Ruby Feature #9020: Net::HTTPResponse predicate/query methods
I'm not aware of any libraries that implement this interface currently. If Net::HTTP implemented these methods and other libraries implemented them, then it would be possible to switch between libraries without changing those particular ... timcraft (Tim Craft)

Also available in: Atom