It is definitely intended to be used outside of Rails and it will need to use PADRINO_ENV instead if we use it with a Padrino project. I took a purist BDD approach and had not needed that behavior yet :) It's a little thing; I will just go ahead and fix it. Rails.env is not available from inside a gem (though it could be passed in via initializer).