title: How to move simple ruby script onto another server without knowing if gem is installed on that server?
body: <p>I have a simple Ruby script that require Mail gem. It works fine on my local laptop. If I want to deploy the script on a server. What to do to make sure the script can run successfully on the server?  I'm thinking about "bundle exec ruby sample.rb" but it gives "Could not locate Gemfile or .bundle/ directory error.</p>
  
  <p>New to programming. No Rails just simple Rb script</p>