title: ruby: cannot find sinatra
body: <p>I am trying to use an app (redmon: <a href="https://github.com/steelThread/redmon" rel="nofollow noreferrer">https://github.com/steelThread/redmon</a>) packaged in a ruby gem
  Could you please help me getting it up and running ?</p>
  
  <p>I have installed redmon like this:</p>
  
  <pre><code>tasks:
  
        - name: "Install redmon (redis)"
          tags:
            - redis
          become: yes
          gem: name="{{ item }}" user_install=no state=latest
          with_items:
            - redmon
          environment:
            http_proxy: "{{ prx.http }}"
            https_proxy: "{{ prx.https }}"
  
        - name: "Update Ruby gems (redis)"
          tags:
            - redis
          become: yes
          command: gem update --system
          environment:
            http_proxy: "{{ prx.http }}"
            https_proxy: "{{ prx.https }}"
  </code></pre>
  
  <p>But when I try to connect to local redis instance, I am getting the following error:</p>
  
  <pre><code>$ redmon --port 16384 --lifespan 60 --redis redis://127.0.0.1:6384
  /usr/local/share/ruby/site_ruby/rubygems/dependency.rb:308:in `to_specs': Could not find 'sinatra' (&gt;= 0) among 16 total gem(s) (Gem::MissingSpecError)
  Checked in 'GEM_PATH=/home/app/.gem/ruby:/usr/share/gems:/usr/local/share/gems', execute `gem env` for more information
      from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1439:in `block in activate_dependencies'
      from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1428:in `each'
      from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1428:in `activate_dependencies'
      from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1410:in `activate'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_gem.rb:68:in `block in gem'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_gem.rb:67:in `synchronize'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_gem.rb:67:in `gem'
      from /usr/local/bin/redmon:22:in `&lt;main&gt;'
  $ gem env
  RubyGems Environment:
    - RUBYGEMS VERSION: 2.6.11
    - RUBY VERSION: 2.0.0 (2015-12-16 patchlevel 648) [x86_64-linux]
    - INSTALLATION DIRECTORY: /home/app/.gem/ruby
    - USER INSTALLATION DIRECTORY: /home/app/.gem/ruby
    - RUBY EXECUTABLE: /usr/bin/ruby
    - EXECUTABLE DIRECTORY: /home/app/bin
    - SPEC CACHE DIRECTORY: /home/app/.gem/specs
    - SYSTEM CONFIGURATION DIRECTORY: /etc
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86_64-linux
    - GEM PATHS:
       - /home/app/.gem/ruby
       - /usr/share/gems
       - /usr/local/share/gems
    - GEM CONFIGURATION:
       - :update_sources =&gt; true
       - :verbose =&gt; true
       - :backtrace =&gt; false
       - :bulk_threshold =&gt; 1000
    - REMOTE SOURCES:
       - https://rubygems.org/
    - SHELL PATH:
       - /usr/local/bin
       - /usr/bin
       - /usr/local/sbin
       - /usr/sbin
       - /home/app/.local/bin
       - /home/app/bin
  </code></pre>
  
  <p>Would you be so kind to help me and advise me please how to resolve this ?</p>