DevHeads.net

Postings by Nathan Broadbent

I'm trying to build a Debian package for Ruby, but checkinstall is freezing during "make install"

Hello,

I have a question about compiling and packaging Ruby.

I'm compiling Ruby 2.5.5 with jemalloc in a Docker container, and I'm
trying to build a Debian package with checkinstall
<https://mailtrack.io/trace/link/2bd58d769ee1cfcbd8c05e558542f45495357d27?url=https%3A%2F%2Fwiki.debian.org%2FCheckInstall&userId=2274821&signature=3aafc1d2bc6c7b16>.
This tool runs "make install", records a list of changed files, and then
saves all of these files into a deb package. However, checkinstall is
getting stuck after this line: "generating x86_64-linux-fake.rb".

Enumerable#associate

Issue #7341 has been reported by nathan.f77 (Nathan Broadbent).

Author: nathan.f77 (Nathan Broadbent)
Status: Open
Priority: Low
Assignee:
Category: lib
Target version: next minor

Jeremy Kemper proposed Enumerable#associate during the discussion in #7297, with the following details:

Some background:

#4151 proposes an Enumerable#categorize API, but it's complex and hard to understand its behavior at a glance.
#7292 proposes an Enumerable#to_h == Hash[..

'each_with' or 'into' alias for 'each_with_object'

Issue #7340 has been reported by nathan.f77 (Nathan Broadbent).

Author: nathan.f77 (Nathan Broadbent)
Status: Open
Priority: Low
Assignee:
Category: lib
Target version: next minor

Following on from the discussions at #7297 and #7241, it is apparent that a shorter alias for 'each_with_object' would be much appreciated.

map_to alias for each_with_object

Issue #7297 has been reported by nathan.f77 (Nathan Broadbent).

Author: nathan.f77 (Nathan Broadbent)
Status: Open
Priority: Normal
Assignee:
Category: lib
Target version: 2.0.0

I would love to have a shorter alias for 'each_with_object', and would like to propose 'map_to'.

Enumerable#to_h proposal

Issue #7241 has been reported by nathan.f77 (Nathan Broadbent).

Author: nathan.f77 (Nathan Broadbent)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:

I often use the `inject` method to build a hash, but I always find it annoying when I need to return the hash at the end of the block.
This means that I often write code like:

[1,2,3,4,5].inject({}) {|hash, el| hash[el] = el * 2; hash }

I'm proposing an `Enumerable#to_h` method that would let m

Added #join method as a shortcut for to_a.join

Issue #7226 has been reported by nathan.f77 (Nathan Broadbent).

Author: nathan.f77 (Nathan Broadbent)
Status: Open
Priority: Normal
Assignee:
Category: lib
Target version:

I was surprised that `Set.new.join` gives me a NoMethodError.
This patch that adds a #join method to Set, which is a shortcut for `to_a.join`.

Patch to add #join to Set, as a shortcut for to_a.join

Hello,

I was suprised that `Set.new.join` gives me a NoMethodError. I have
attached a small patch that adds a #join method to Set, which is a shortcut
for `to_a.join`.

Best,
Nathan