title: Gem dependencies incompatibality during upgrade of rails 4.2.10 to rails 5.0.0
body: <p>I am in a middle of a process of upgrading our rails 4 app.
  Following the <a href="http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html" rel="nofollow noreferrer">rails upgrade guide</a>, I have updated current rails version in a <code>gemfile</code> replacing <code>4.2.10</code> with <code>5.0.0</code>.</p>
  
  <p>But after running <code>bundle update rails</code>, I am getting many incompatibility issues even after running <code>4.2.10</code> (with <code>rails 4.2.10</code>) which should update all gems to the latest version.</p>
  
  <p>Following are the compatibility errors I am getting after running <code>bundle update rails</code> with <code>rails 5.0.0</code> in a gemfile:</p>
  
  <pre><code>Bundler could not find compatible versions for gem "actionpack":
    In Gemfile:
      active_link_to was resolved to 1.0.3, which depends on
        actionpack
  
      active_model_serializers was resolved to 0.10.2, which depends on
        actionpack (&lt; 6, &gt;= 4.1)
  
      inherited_resources was resolved to 1.6.0, which depends on
        actionpack (&lt; 5, &gt;= 3.2)
  
      inherited_resources was resolved to 1.6.0, which depends on
        actionpack (&lt; 5, &gt;= 3.2)
  
      kaminari was resolved to 0.17.0, which depends on
        actionpack (&gt;= 3.0.0)
  
      rails (= 5.0.0) was resolved to 5.0.0, which depends on
        actionpack (= 5.0.0)
  
      rails (= 5.0.0) was resolved to 5.0.0, which depends on
        actionpack (= 5.0.0)
  
      rspec-rails (= 3.6.0) was resolved to 3.6.0, which depends on
        actionpack (&gt;= 3.0)
  </code></pre>