I'm reading the guide for writing ruby gems, and have gotten to a point where it mentions bundler and rake for generating dynamic gemspecs. I'm slightly familiar with both of these tools, but I'm not sure which to use for my project. is there a comparison guide somewhere?
so I have this file: https://gitlab.com/ntchambers/cherrybomb/blob/master/lib/cherrybomb/irc.rb#L10-11, but rubocop is telling me these should be instance variables: http://ix.io/Fcn. Why would these need to be instance variables if I just want one "global" instance?
I'm using eventmachine to write an irc bot, and for some reason, its not receiving any data from the server, despite having receive_data defined: https://gitlab.com/ntchambers/cherrybomb/blob/master/lib/cherrybomb/irc.rb#L96-98. Can anyone see why? example of the issue: https://asciinema.org/a/BJf1Ae8JKJrizwRcELMYiNw3v
would anyone be able to explain what "C: Metrics/AbcSize: Assignment Branch Condition size for initialize is too high." means? I'm getting it with rubocop and am not familiar with AbcSize or Branch Condition Size
https://gitlab.com/ntchambers/cherrybomb/blob/master/lib/cherrybomb/ident.rb#L11-24 can anyone see any way to make this method 1 line smaller? rubocop is saying its 1 line too long
do classes have something like #send except for class variables? I'm dynamically loading certain ruby classes, and I want to test if the class has a certain class variable, and if it exists get the value of it