General

Profile

CaryInVictoria (Cary Swoveland)

  • Login: CaryInVictoria
  • Email: cary@swoveland.com
  • Registered on: 03/28/2015
  • Last sign in: 02/02/2022

Issues

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

Activity

02/02/2022

02:06 AM Ruby Bug #18565 (Rejected): strptime reports invalid date when string is "130AM" and format string is '%I:%M%p'
`DateTime.strptime("1:30PM", '%I:%M%p')` and `DateTime.strptime("1:30PM", '%l:%M%p')` both return
`#<DateTime: 2022-02-01T13:30:00+00:00 ((2459612j,48600s,0n),+0s,2299161j)>`
`DateTime.strptime("130PM", '%I%M%p')` and `DateTime.strpt...
CaryInVictoria (Cary Swoveland)

04/05/2019

12:22 AM Ruby Misc #15744: Improvement needed to documentation of 'Literals'
shevegen (Robert A. Heiler) wrote:
...I don't know myself either...
Robert,
I was only musing about a how a "literal" might be defined. My only point is that I think a definition is required, since the term is frequently used in d...
CaryInVictoria (Cary Swoveland)

04/02/2019

05:34 PM Ruby Misc #15744 (Open): Improvement needed to documentation of 'Literals'
Documentation of "Literals" for v2.6.0 is given here: https://docs.ruby-lang.org/en/2.6.0/syntax/literals_rdoc.html. (I don't think it has been changed for some time.) It gives examples of literals but does not provide a definition. It i... CaryInVictoria (Cary Swoveland)

03/30/2019

06:39 PM Ruby Misc #15739 (Rejected): Improvements needed to documentation of Hash#dig, Array#dig and OpenStruct#dig
The documentation of these three methods fails to explain how they interact. For example:
h = { a: [1,2,3] }
h.dig(:a, 1) #=> 2
`Hash#dig` is used first:
a = h.dig(:a) #=> [1,2,3]
Then `Array#dig` is invoked:
...
CaryInVictoria (Cary Swoveland)

12/23/2018

11:50 PM Ruby Bug #15455: In v2.6.0 the return value of `each_with_object` and `each_object` is truncated when the object is a hash.
Corrected a <sub>tiny</sub> typo. CaryInVictoria (Cary Swoveland)
07:55 PM Ruby Bug #15455 (Closed): In v2.6.0 the return value of `each_with_object` and `each_object` is truncated when the object is a hash.
RUBY VERSION: 2.6.0 (2018-12-23 patchlevel -1)
`a = [1, 2, 3]`
`a.each_with_object([]) #=> #<Enumerator: [1, 2, 3]:each_with_object([])>
a.each_with_object(1..3) #=> #<Enumerator: [1, 2, 3]:each_with_object(1..3)>
a.each_wi...
CaryInVictoria (Cary Swoveland)

12/21/2018

07:44 PM Ruby Feature #15446: Add a method `String#each_match` to the Ruby core
Stefan, I've incorporated both of your suggestions. Thanks. CaryInVictoria (Cary Swoveland)
09:06 AM Ruby Feature #15446 (Open): Add a method `String#each_match` to the Ruby core
`String#each_match` would have two forms:
*each_match(pattern) { |match| block } → str*
*each_match(pattern) → an_enumerator*
The latter would be identical to the form *gsub(pattern) → enumerator* of [String#gsub](http://ruby-doc....
CaryInVictoria (Cary Swoveland)
07:25 PM Ruby Feature #15450 (Rejected): to be deleted
CaryInVictoria (Cary Swoveland)

10/28/2018

04:11 AM Ruby Misc #15265 (Closed): Documentation for `Object#instance_variable_set` is inaccurate and pejorative
The v2.5.1 documentation for this method states, in part, "Sets the instance variable named by symbol to the given object, thereby frustrating the efforts of the class's author to attempt to provide proper encapsulation." The phrase begi... CaryInVictoria (Cary Swoveland)

Also available in: Atom