- [Feature #21615] Introduce `Array#values` - Seems reasonable to have an API to simplify traversal of hash/array values - There is some precedence, since both Hashes/Arrays have #values_at. - If approved, should it be added to ...matheusrich (Matheus Richard)
@Dan0042 I considered that. I thought it would be too much for one PR. I'll wait for more feedback, and if people are positive about this, I'll propose `Set#values` too.matheusrich (Matheus Richard)
> I think it should be Array.new(*self). I can do that, sure. > ... Noted! Good to know. > Why not to introduce Array#each_value? I think it feels clunkier than `array.values.each`, but is an alternative I considered. IMO it...matheusrich (Matheus Richard)
## Motivation In Ruby code, it's common to accept arrays and hashes and treat them uniformly as collections of values. `Hash` exposes `#values`, but `Array` does not, which pushes developers toward `is_a?`/`respond_to?` branching. ...matheusrich (Matheus Richard)
If the file option is given but the file not found, raise a GemfileError with a message indicating the file was not found. Currently this is raising a generic Errno::ENOENT error. https://github.com/rubygems/rubygems/commit/db61de6b21matheusrich (Matheus Richard)
> Formatting times should be done with an appropriately internationalized library. This is not formatting. This is intended for querying, much like we have `monday?` and other methods. > ... I'm sorry, I don't follow. The possibility t...matheusrich (Matheus Richard)
Just want to point out that Ruby itself doesn't have any concept of `try`. This *might* be best as a proposal for Active Support.matheusrich (Matheus Richard)
* [Feature #21533] Introduce `Time#am?` and `Time#pm?` * Thoughts on the name and functionality? * I think this is the less ambiguous way to have info about a part of the day that works across cultures (and is consistent with strft...matheusrich (Matheus Richard)