adding a bin/console to your gem

Developer from somewhere

#!/usr/bin/env ruby

require "bundler/setup"
require "your_lib"

require "irb"
IRB.start

In case you prefer pry as a console, you could replace the irb lines with this:

require "pry"
Pry.start