title: Require whole gem at once
body: <p>I'm working on a simple ruby gem (created with bundler). In the gem, I have the following:</p>
  
  <h3>lib/mika.rb</h3>
  
  <pre><code>require "mika/version"
  require "mika/bubble"
  
  module Mika
    # Your code goes here...
  end
  </code></pre>
  
  <h3>lib/mika/bubble.rb</h3>
  
  <pre><code>module Mika
   class Bubble
   end
  end
  </code></pre>
  
  <p>I also have a simple ruby app called mika-consumer that uses bundler for dependency management.</p>
  
  <h3>Gemfile</h3>
  
  <pre><code>gem 'mika', path: "~/mika"
  </code></pre>
  
  <h3>consumer.rb</h3>
  
  <pre><code>require 'mika'
  
  Mika::Bubble.new
  </code></pre>
  
  <p>but this generates the following error:</p>
  
  <blockquote>
    <p>uninitialized constant Mika::Bubble (NameError)</p>
  </blockquote>
  
  <p>However, if I update consumer as below</p>
  
  <pre><code>require 'mika/bubble'
  
  Mika::Bubble.new
  </code></pre>
  
  <p>everything works fine. What should I do to get all the classes created in the Mika gem available in my consumer without be forced to require all of them? Ideally I'd like to require the whole gem at once.</p>