def query_rubygems(tries = 0)
      JSON.parse(open("https://rubygems.org/api/v1/gems/#{gem_name}.json").read)
    rescue OpenURI::HTTPError => e
      # We may trigger too many requests, in which case give rubygems a break
      if e.io.status.include?(HTTP_TOO_MANY_REQUESTS)
        if (tries += 1) < 2
          sleep 1 && retry
        end
      end
    end
def query_rubygems(tries = 0)
      JSON.parse(open("https://rubygems.org/api/v1/gems/#{gem_name}.json").read)
    rescue OpenURI::HTTPError => e
      # We may trigger too many requests, in which case give rubygems a break
      if e.io.status.include?(HTTP_TOO_MANY_REQUESTS)
        if (tries += 1) < 2
          sleep 1 && retry
        end
      end
    end
Make the real query to rubygems
 It may fail in case we trigger too many requests

 @param tries [Integer|nil] (optional) how many times we tried