title: GitLab CI failing due to gem load error
body: <p>I have a ruby script that fails the GitLab CI build with:</p>
  
  <pre><code>/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- git (LoadError)
  </code></pre>
  
  <p>The ruby script:</p>
  
  <pre><code>require 'git'
  </code></pre>
  
  <p>Here's the .gitlab-ci.yml file:</p>
  
  <pre><code>image: gitlab/gitlab-ce:latest
  
  job1:
    script:
      - apt-get update &amp;&amp; apt-get -y install ruby &amp;&amp; apt-get install git
      - gem install git
      - ./script.rb
  </code></pre>
  
  <p>I've also tried adding a gemfile with the git gem and running:</p>
  
  <pre><code>image: gitlab/gitlab-ce:latest
  
  job1:
    script:
      - apt-get update &amp;&amp; apt-get -y install ruby &amp;&amp; apt-get install git
      - gem install bundler
      - bundle install
      - ./script.rb
  </code></pre>
  
  <p>But I get the same error</p>