beefproject/beef — pull request #946 by marcwickenden (2013-11-24 00:30:25+00:00)
Title: Update twitter require version 5

The latest Twitter gem has removed the Twitter.configure method breaking Twitter notifications for anyone who installs BeEF from scratch and runs bundle install as they will get version 5.0.0 of the gem.

This pull request fixes the problem by requiring 5.0.0 in the Gemfile and making the channels/tweet.rb compatible with the new 5.0.0 syntax.

Alternatively, we could force the requirement for an older version of the Twitter gem, this doesn't seem the right thing to do though, forcing old versions of software when it's a simple fix to move forward.

This patch does not have any error handling for an existing checkout of BeEF updated to this revision but without having run bundle to get version 5 of the gem. This will cause the following:

NameError: uninitialized constant Twitter::REST

I haven't had time to implement it but we should perhaps rescue that error and display a message advising to run bundle?