title: Custom gem not loading into rails app
body: <p>I've pushed gem into github &amp; rubygems, but constants of that gem are not being loaded into rails app. Tried this by loading from multiple sources and results are like this:</p>
  
  <ul>
  <li>rubygems = not loaded</li>
  <li>github = not loaded</li>
  <li>local path = loaded</li>
  </ul>
  
  <p>Interesting things is that when I load with rubygems/github I can load constants with <code>require 'module/gem_name'</code></p>
  
  <p>The gemspecs looks fine to me:</p>
  
  <pre><code># coding: utf-8
  lib = File.expand_path('../lib', __FILE__)
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
  require 'module/gem_name/version'
  
  Gem::Specification.new do |spec|
    spec.name          = 'gem_name'
    spec.version       = Module::GemName::VERSION
    spec.authors       = ['Mike QWERTY']
    spec.email         = ['mike.qwerty@gamil.com']
  
    spec.summary       = 'some_desc'
    spec.homepage      = 'https://github.com/mike/gem-name'
    spec.license       = 'MIT'
  
    if spec.respond_to?(:metadata)
      spec.metadata['allowed_push_host'] = 'https://rubygems.org'
    else
      raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
    end
  
    spec.files = `git ls-files -z`.split("\x0").reject do |f|
      f.match(%r{^(test|spec|features)/})
    end
    spec.bindir        = 'exe'
    spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
    spec.require_paths = ['lib']
    spec.required_ruby_version = '&gt;= 2.4.0'
    spec.add_runtime_dependency 'graphql', '&gt;= 1.6.0'
  
    spec.add_development_dependency 'bundler', '~&gt; 1.14'
    spec.add_development_dependency 'rake', '~&gt; 10.0'
    spec.add_development_dependency 'rspec', '~&gt; 3.0'
  end
  </code></pre>
  
  <p>And structure is:</p>
  
  <pre><code>lib/module/gem_name/stuff/others.rb
  lib/module/gem_name/extras.rb
  lib/module/gem_name.rb
  </code></pre>
  
  <p>Also, I've been working on this gem basing on other gem that has the same module name. But it loads correctly into app, if this matters.
  Any ideas on this?</p>