Skip to content

redsnapper: Remove unneeded "thread" rubygem dependency#5

Closed
cemeyer wants to merge 1 commit intodirectededge:masterfrom
cemeyer:drop_thread_dependency
Closed

redsnapper: Remove unneeded "thread" rubygem dependency#5
cemeyer wants to merge 1 commit intodirectededge:masterfrom
cemeyer:drop_thread_dependency

Conversation

@cemeyer
Copy link

@cemeyer cemeyer commented Nov 7, 2018

My motivation is that it is not included in FreeBSD ports.

My motivation is that it is not included in FreeBSD ports.
cemeyer added a commit to cemeyer/redsnapper that referenced this pull request Nov 7, 2018
@cemeyer cemeyer mentioned this pull request Nov 7, 2018
@scotchi
Copy link
Member

scotchi commented Nov 7, 2018

Hi - this tool is primarily distributed as a Ruby Gem and pulls in its dependencies automatically. I don't see the point in avoiding using another Ruby Gem...

@cemeyer
Copy link
Author

cemeyer commented Nov 7, 2018

Yeah, I can understand that logic. My admittedly weak arguments for removing it are:

  1. For whatever reason — unlike other gems, it is not available in FreeBSD ports. (And I'm not keen on the gem/pip model of sidestepping the operating system package management system.)

  2. The thread/pool gem introduces a relatively large body of code written by pseudonymous authors compared to the relatively small and auditable redsnapper. Given that, and the minimal changes required to not use it, I don't see that it is all that useful as a dependency.

  3. In the absence of any other factor, fewer dependencies is better.

(It really is a minimal change to remove the dependency — check out the diff. Ruby already provides threads, lists, and thread-safe worker queues. Most of the diff lines come from moving the body of the thread code rather than functionality changes.)

@scotchi
Copy link
Member

scotchi commented Nov 7, 2018

Sorry, but then I see this as a FreeBSD packaging issue. It's fine to use your own package system instead of the language's dependency system, but then you'll also need to patch the packages to handle such.

@scotchi scotchi closed this Nov 7, 2018
@cemeyer
Copy link
Author

cemeyer commented Nov 7, 2018

Sure, it's your choice. I'll keep it in my fork.

@cemeyer cemeyer deleted the drop_thread_dependency branch November 7, 2018 20:08
cemeyer added a commit to cemeyer/redsnapper that referenced this pull request Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants