{"action":"opened","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/3431","labels_url":"https://api.github.com/repos/bundler/bundler/issues/3431/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/3431/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/3431/events","html_url":"https://github.com/bundler/bundler/issues/3431","id":59068563,"number":3431,"title":"\"rails server\" fails after installing new gem within source block if version spec applied","user":{"login":"wtfiwtz","id":1445450,"avatar_url":"https://avatars.githubusercontent.com/u/1445450?v=3","gravatar_id":"","url":"https://api.github.com/users/wtfiwtz","html_url":"https://github.com/wtfiwtz","followers_url":"https://api.github.com/users/wtfiwtz/followers","following_url":"https://api.github.com/users/wtfiwtz/following{/other_user}","gists_url":"https://api.github.com/users/wtfiwtz/gists{/gist_id}","starred_url":"https://api.github.com/users/wtfiwtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtfiwtz/subscriptions","organizations_url":"https://api.github.com/users/wtfiwtz/orgs","repos_url":"https://api.github.com/users/wtfiwtz/repos","events_url":"https://api.github.com/users/wtfiwtz/events{/privacy}","received_events_url":"https://api.github.com/users/wtfiwtz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-26T12:58:44Z","updated_at":"2015-02-26T12:58:44Z","closed_at":null,"body":"First, get the latest --pre:\r\n\r\n```\r\nNigel-MBP:ctbe wtfiwtz$ gem install bundler --pre\r\nSuccessfully installed bundler-1.8.3\r\nParsing documentation for bundler-1.8.3\r\nDone installing documentation for bundler after 2 seconds\r\n1 gem installed\r\n```\r\n\r\nbundle env\r\n```\r\nNigel-MBP:ctbe wtfiwtz$ bundle env\r\nEnvironment\r\n\r\n    Bundler   1.8.3\r\n    Rubygems  2.4.5\r\n    Ruby      2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin13.0]\r\n    GEM_HOME  /Users/wtfiwtz/.rvm/gems/ruby-2.1.5\r\n    GEM_PATH  /Users/wtfiwtz/.rvm/gems/ruby-2.1.5:/Users/wtfiwtz/.rvm/gems/ruby-2.1.5@global\r\n    RVM       1.26.9 (latest)\r\n    Git       2.2.2\r\n    rubygems-bundler (1.4.4)\r\n\r\nGemfile\r\n\r\n    source 'https://rubygems.org'\r\n    \r\n    gem 'rails', '~> 4.2.0'\r\n    gem 'sqlite3'\r\n    gem 'pg', '~> 0.17.1'\r\n    gem 'mysql2', '~> 0.3.18'\r\n    gem 'sass-rails', '~> 4.0.5'\r\n    gem 'uglifier', '~> 2.5.3'\r\n    gem 'coffee-rails', '~> 4.1.0'\r\n    gem 'jquery-rails', '~> 3.1.2'\r\n    #gem 'turbolinks'\r\n    gem 'jbuilder', '~> 2.2.5'\r\n    \r\n    gem 'slim-rails', '~> 3.0.1'\r\n    gem 'slim_assets', '~> 0.0.2'\r\n    gem 'non-stupid-digest-assets', '~> 1.0.4'\r\n    #gem 'angularjs-rails', '~> 1.3'\r\n    gem 'bootstrap-sass', '~> 3.3.1.0'\r\n    gem 'sorcery', '~> 0.9.0'\r\n    gem 'activeadmin',                github: 'activeadmin', ref: '9fac110'\r\n    gem 'geocoder', '~> 1.2.7'\r\n    \r\n    # TODO: Rails 4.2.0 - https://github.com/josevalim/inherited_resources/issues/381\r\n    gem 'inherited_resources', github: 'josevalim/inherited_resources', branch: 'rails-4-2'\r\n    \r\n    # TODO: Rails 4.2.0 - https://github.com/plataformatec/devise/pull/3153\r\n    gem 'devise', github: 'plataformatec/devise', ref: '6dd44445'\r\n    \r\n    gem 'carrierwave', '~> 0.10.0'\r\n    gem 'carrierwave-crop', '~> 0.1.2'\r\n    # TODO: Convert to rails-assets with Angular 1.3.x\r\n    gem 'angularjs-file-upload-rails', '~> 1.1.6'\r\n    \r\n    gem 'delayed_job_active_record', '~> 4.0.3'\r\n    \r\n    gem 'namae', '~> 0.9.2'\r\n    gem 'country_select', '~> 2.1.0'\r\n    \r\n    source 'https://rails-assets.org' do\r\n      gem 'rails-assets-angular', '~> 1.3.14'\r\n      gem 'rails-assets-angular-resource', '~> 1.3.14'\r\n      gem 'rails-assets-angular-route', '~> 1.3.14'\r\n      gem 'rails-assets-angular-sanitize', '~> 1.3.14'\r\n      gem 'rails-assets-angular-animate', '~> 1.3.14'\r\n      gem 'rails-assets-checklist-model', '~> 0.1.3'\r\n      gem 'rails-assets-font-awesome', '~> 4.2.0'\r\n      gem 'rails-assets-weather-icons', '~> 1.3.2'\r\n      gem 'rails-assets-animate.css', '~> 3.2.1'\r\n      gem 'rails-assets-normalize-scss', '~> 3.0.2'\r\n    end\r\n    \r\n    group :development do\r\n      gem 'letter_opener', '~> 1.2.0'\r\n      gem 'spring'\r\n      gem 'capistrano', '~> 3.3.4'\r\n      gem 'capistrano-rails', '~> 1.1.2'\r\n      #gem 'capistrano-bundler', '~> 1.1.3'\r\n      #gem 'capistrano-passenger', '~> 0.0.1'\r\n    end\r\n    \r\n    group :development, :test do\r\n      gem 'rspec-rails', '~> 3.1.0'\r\n      gem 'factory_girl_rails', '~> 4.5.0'\r\n      gem 'database_cleaner', '~> 1.3.0'\r\n      gem 'shoulda', '~> 3.5.0'\r\n      gem 'mocha', '~> 1.1.0'\r\n      gem 'simplecov', '~> 0.9.1', require: false\r\n    end\r\n    \r\n    group :development, :test do\r\n      gem 'railroady'\r\n    end\r\n    \r\n    gem 'sdoc', '~> 0.4',             group: :doc\r\n    \r\n    # See https://github.com/sstephenson/execjs#readme for more supported runtimes\r\n    # gem 'therubyracer',  platforms: :ruby\r\n    \r\n    \r\n    # Use ActiveModel has_secure_password\r\n    # gem 'bcrypt', '~> 3.1.7'\r\n    \r\n    # Use unicorn as the app server\r\n    # gem 'unicorn'\r\n    \r\n    # Use Capistrano for deployment\r\n    # gem 'capistrano-rails', group: :development\r\n    \r\n    # Use debugger\r\n    # gem 'debugger', group: [:development, :test]\r\n\r\nGemfile.lock\r\n\r\n    GIT\r\n      remote: git://github.com/activeadmin/activeadmin.git\r\n      revision: 9fac1106ca013c4cd76ee6b231ec5dd1fcfd0790\r\n      ref: 9fac110\r\n      specs:\r\n        activeadmin (1.0.0.pre)\r\n          arbre (~> 1.0, >= 1.0.2)\r\n          bourbon\r\n          coffee-rails\r\n          formtastic (~> 3.1)\r\n          formtastic_i18n\r\n          inherited_resources (~> 1.4, != 1.5.0)\r\n          jquery-rails\r\n          jquery-ui-rails (~> 5.0)\r\n          kaminari (~> 0.15)\r\n          rails (>= 3.2, < 5.0)\r\n          ransack (~> 1.3)\r\n          sass-rails\r\n    \r\n    GIT\r\n      remote: git://github.com/josevalim/inherited_resources.git\r\n      revision: ff1c991307ff78cce98882b6986aeabbbcfd70c4\r\n      branch: rails-4-2\r\n      specs:\r\n        inherited_resources (1.5.1)\r\n          actionpack (>= 3.2, < 5)\r\n          has_scope (~> 0.6.0.rc)\r\n          railties (>= 3.2, < 5)\r\n          responders\r\n    \r\n    GIT\r\n      remote: git://github.com/plataformatec/devise.git\r\n      revision: 6dd444458258c27ad08f56151e74fe9998713818\r\n      ref: 6dd44445\r\n      specs:\r\n        devise (3.4.1)\r\n          bcrypt (~> 3.0)\r\n          orm_adapter (~> 0.1)\r\n          railties (>= 3.2.6, < 5)\r\n          responders\r\n          thread_safe (~> 0.1)\r\n          warden (~> 1.2.3)\r\n    \r\n    GEM\r\n      remote: https://rubygems.org/\r\n      remote: https://rails-assets.org/\r\n      specs:\r\n        actionmailer (4.2.0)\r\n          actionpack (= 4.2.0)\r\n          actionview (= 4.2.0)\r\n          activejob (= 4.2.0)\r\n          mail (~> 2.5, >= 2.5.4)\r\n          rails-dom-testing (~> 1.0, >= 1.0.5)\r\n        actionpack (4.2.0)\r\n          actionview (= 4.2.0)\r\n          activesupport (= 4.2.0)\r\n          rack (~> 1.6.0)\r\n          rack-test (~> 0.6.2)\r\n          rails-dom-testing (~> 1.0, >= 1.0.5)\r\n          rails-html-sanitizer (~> 1.0, >= 1.0.1)\r\n        actionview (4.2.0)\r\n          activesupport (= 4.2.0)\r\n          builder (~> 3.1)\r\n          erubis (~> 2.7.0)\r\n          rails-dom-testing (~> 1.0, >= 1.0.5)\r\n          rails-html-sanitizer (~> 1.0, >= 1.0.1)\r\n        activejob (4.2.0)\r\n          activesupport (= 4.2.0)\r\n          globalid (>= 0.3.0)\r\n        activemodel (4.2.0)\r\n          activesupport (= 4.2.0)\r\n          builder (~> 3.1)\r\n        activerecord (4.2.0)\r\n          activemodel (= 4.2.0)\r\n          activesupport (= 4.2.0)\r\n          arel (~> 6.0)\r\n        activesupport (4.2.0)\r\n          i18n (~> 0.7)\r\n          json (~> 1.7, >= 1.7.7)\r\n          minitest (~> 5.1)\r\n          thread_safe (~> 0.3, >= 0.3.4)\r\n          tzinfo (~> 1.1)\r\n        addressable (2.3.6)\r\n        angularjs-file-upload-rails (1.1.6)\r\n        arbre (1.0.3)\r\n          activesupport (>= 3.0.0)\r\n        arel (6.0.0)\r\n        bcrypt (3.1.9)\r\n        bootstrap-sass (3.3.1.0)\r\n          sass (~> 3.2)\r\n        bourbon (3.2.4)\r\n          sass (~> 3.2)\r\n          thor\r\n        builder (3.2.2)\r\n        capistrano (3.3.5)\r\n          capistrano-stats (~> 1.1.0)\r\n          i18n\r\n          rake (>= 10.0.0)\r\n          sshkit (~> 1.3)\r\n        capistrano-bundler (1.1.3)\r\n          capistrano (~> 3.1)\r\n          sshkit (~> 1.2)\r\n        capistrano-rails (1.1.2)\r\n          capistrano (~> 3.1)\r\n          capistrano-bundler (~> 1.1)\r\n        capistrano-stats (1.1.1)\r\n        carrierwave (0.10.0)\r\n          activemodel (>= 3.2.0)\r\n          activesupport (>= 3.2.0)\r\n          json (>= 1.7)\r\n          mime-types (>= 1.16)\r\n        carrierwave-crop (0.1.2)\r\n          carrierwave (>= 0.8.0, < 0.11.0)\r\n          jquery-rails\r\n          rails (>= 3.2)\r\n        coffee-rails (4.1.0)\r\n          coffee-script (>= 2.2.0)\r\n          railties (>= 4.0.0, < 5.0)\r\n        coffee-script (2.3.0)\r\n          coffee-script-source\r\n          execjs\r\n        coffee-script-source (1.9.0)\r\n        colorize (0.7.5)\r\n        countries (0.9.3)\r\n          currencies (~> 0.4.2)\r\n        country_select (2.1.0)\r\n          countries (~> 0.9, >= 0.9.3)\r\n        currencies (0.4.2)\r\n        database_cleaner (1.3.0)\r\n        delayed_job (4.0.6)\r\n          activesupport (>= 3.0, < 5.0)\r\n        delayed_job_active_record (4.0.3)\r\n          activerecord (>= 3.0, < 5.0)\r\n          delayed_job (>= 3.0, < 4.1)\r\n        diff-lcs (1.2.5)\r\n        docile (1.1.5)\r\n        erubis (2.7.0)\r\n        execjs (2.3.0)\r\n        factory_girl (4.5.0)\r\n          activesupport (>= 3.0.0)\r\n        factory_girl_rails (4.5.0)\r\n          factory_girl (~> 4.5.0)\r\n          railties (>= 3.0.0)\r\n        faraday (0.9.1)\r\n          multipart-post (>= 1.2, < 3)\r\n        formtastic (3.1.3)\r\n          actionpack (>= 3.2.13)\r\n        formtastic_i18n (0.1.1)\r\n        geocoder (1.2.7)\r\n        globalid (0.3.2)\r\n          activesupport (>= 4.1.0)\r\n        has_scope (0.6.0)\r\n          actionpack (>= 3.2, < 5)\r\n          activesupport (>= 3.2, < 5)\r\n        hike (1.2.3)\r\n        i18n (0.7.0)\r\n        jbuilder (2.2.6)\r\n          activesupport (>= 3.0.0, < 5)\r\n          multi_json (~> 1.2)\r\n        jquery-rails (3.1.2)\r\n          railties (>= 3.0, < 5.0)\r\n          thor (>= 0.14, < 2.0)\r\n        jquery-ui-rails (5.0.3)\r\n          railties (>= 3.2.16)\r\n        json (1.8.2)\r\n        jwt (1.2.0)\r\n        kaminari (0.16.2)\r\n          actionpack (>= 3.0.0)\r\n          activesupport (>= 3.0.0)\r\n        launchy (2.4.3)\r\n          addressable (~> 2.3)\r\n        letter_opener (1.2.0)\r\n          launchy (~> 2.2)\r\n        loofah (2.0.1)\r\n          nokogiri (>= 1.5.9)\r\n        mail (2.6.3)\r\n          mime-types (>= 1.16, < 3)\r\n        metaclass (0.0.4)\r\n        mime-types (2.4.3)\r\n        mini_portile (0.6.2)\r\n        minitest (5.5.1)\r\n        mocha (1.1.0)\r\n          metaclass (~> 0.0.1)\r\n        multi_json (1.10.1)\r\n        multi_xml (0.5.5)\r\n        multipart-post (2.0.0)\r\n        mysql2 (0.3.18)\r\n        namae (0.9.3)\r\n        net-scp (1.2.1)\r\n          net-ssh (>= 2.6.5)\r\n        net-ssh (2.9.2)\r\n        nokogiri (1.6.6.2)\r\n          mini_portile (~> 0.6.0)\r\n        non-stupid-digest-assets (1.0.4)\r\n        oauth (0.4.7)\r\n        oauth2 (1.0.0)\r\n          faraday (>= 0.8, < 0.10)\r\n          jwt (~> 1.0)\r\n          multi_json (~> 1.3)\r\n          multi_xml (~> 0.5)\r\n          rack (~> 1.2)\r\n        orm_adapter (0.5.0)\r\n        pg (0.17.1)\r\n        polyamorous (1.1.0)\r\n          activerecord (>= 3.0)\r\n        rack (1.6.0)\r\n        rack-test (0.6.3)\r\n          rack (>= 1.0)\r\n        railroady (1.3.0)\r\n        rails (4.2.0)\r\n          actionmailer (= 4.2.0)\r\n          actionpack (= 4.2.0)\r\n          actionview (= 4.2.0)\r\n          activejob (= 4.2.0)\r\n          activemodel (= 4.2.0)\r\n          activerecord (= 4.2.0)\r\n          activesupport (= 4.2.0)\r\n          bundler (>= 1.3.0, < 2.0)\r\n          railties (= 4.2.0)\r\n          sprockets-rails\r\n        rails-assets-angular (1.3.14)\r\n        rails-assets-angular-animate (1.3.14)\r\n          rails-assets-angular (= 1.3.14)\r\n        rails-assets-angular-resource (1.3.14)\r\n          rails-assets-angular (= 1.3.14)\r\n        rails-assets-angular-route (1.3.14)\r\n          rails-assets-angular (= 1.3.14)\r\n        rails-assets-angular-sanitize (1.3.14)\r\n          rails-assets-angular (= 1.3.14)\r\n        rails-assets-animate.css (3.2.1)\r\n        rails-assets-checklist-model (0.1.4)\r\n          rails-assets-angular (>= 1.0.8)\r\n        rails-assets-font-awesome (4.2.0)\r\n        rails-assets-normalize-scss (3.0.2)\r\n        rails-assets-weather-icons (1.3.2)\r\n        rails-deprecated_sanitizer (1.0.3)\r\n          activesupport (>= 4.2.0.alpha)\r\n        rails-dom-testing (1.0.5)\r\n          activesupport (>= 4.2.0.beta, < 5.0)\r\n          nokogiri (~> 1.6.0)\r\n          rails-deprecated_sanitizer (>= 1.0.1)\r\n        rails-html-sanitizer (1.0.1)\r\n          loofah (~> 2.0)\r\n        railties (4.2.0)\r\n          actionpack (= 4.2.0)\r\n          activesupport (= 4.2.0)\r\n          rake (>= 0.8.7)\r\n          thor (>= 0.18.1, < 2.0)\r\n        rake (10.4.2)\r\n        ransack (1.6.2)\r\n          actionpack (>= 3.0)\r\n          activerecord (>= 3.0)\r\n          activesupport (>= 3.0)\r\n          i18n\r\n          polyamorous (~> 1.1)\r\n        rdoc (4.2.0)\r\n          json (~> 1.4)\r\n        responders (2.0.2)\r\n          railties (>= 4.2.0.alpha, < 5)\r\n        rspec-core (3.1.7)\r\n          rspec-support (~> 3.1.0)\r\n        rspec-expectations (3.1.2)\r\n          diff-lcs (>= 1.2.0, < 2.0)\r\n          rspec-support (~> 3.1.0)\r\n        rspec-mocks (3.1.3)\r\n          rspec-support (~> 3.1.0)\r\n        rspec-rails (3.1.0)\r\n          actionpack (>= 3.0)\r\n          activesupport (>= 3.0)\r\n          railties (>= 3.0)\r\n          rspec-core (~> 3.1.0)\r\n          rspec-expectations (~> 3.1.0)\r\n          rspec-mocks (~> 3.1.0)\r\n          rspec-support (~> 3.1.0)\r\n        rspec-support (3.1.2)\r\n        sass (3.2.19)\r\n        sass-rails (4.0.5)\r\n          railties (>= 4.0.0, < 5.0)\r\n          sass (~> 3.2.2)\r\n          sprockets (~> 2.8, < 3.0)\r\n          sprockets-rails (~> 2.0)\r\n        sdoc (0.4.1)\r\n          json (~> 1.7, >= 1.7.7)\r\n          rdoc (~> 4.0)\r\n        shoulda (3.5.0)\r\n          shoulda-context (~> 1.0, >= 1.0.1)\r\n          shoulda-matchers (>= 1.4.1, < 3.0)\r\n        shoulda-context (1.2.1)\r\n        shoulda-matchers (2.7.0)\r\n          activesupport (>= 3.0.0)\r\n        simplecov (0.9.1)\r\n          docile (~> 1.1.0)\r\n          multi_json (~> 1.0)\r\n          simplecov-html (~> 0.8.0)\r\n        simplecov-html (0.8.0)\r\n        slim (3.0.1)\r\n          temple (~> 0.7.3)\r\n          tilt (>= 1.3.3, < 2.1)\r\n        slim-rails (3.0.1)\r\n          actionmailer (>= 3.1, < 5.0)\r\n          actionpack (>= 3.1, < 5.0)\r\n          activesupport (>= 3.1, < 5.0)\r\n          railties (>= 3.1, < 5.0)\r\n          slim (~> 3.0)\r\n        slim_assets (0.0.2)\r\n          slim\r\n          tilt\r\n        sorcery (0.9.0)\r\n          bcrypt (~> 3.1)\r\n          oauth (~> 0.4, >= 0.4.4)\r\n          oauth2 (>= 0.8.0)\r\n        spring (1.3.2)\r\n        sprockets (2.12.3)\r\n          hike (~> 1.2)\r\n          multi_json (~> 1.0)\r\n          rack (~> 1.0)\r\n          tilt (~> 1.1, != 1.3.0)\r\n        sprockets-rails (2.2.4)\r\n          actionpack (>= 3.0)\r\n          activesupport (>= 3.0)\r\n          sprockets (>= 2.8, < 4.0)\r\n        sqlite3 (1.3.10)\r\n        sshkit (1.6.1)\r\n          colorize (>= 0.7.0)\r\n          net-scp (>= 1.1.2)\r\n          net-ssh (>= 2.8.0)\r\n        temple (0.7.5)\r\n        thor (0.19.1)\r\n        thread_safe (0.3.4)\r\n        tilt (1.4.1)\r\n        tzinfo (1.2.2)\r\n          thread_safe (~> 0.1)\r\n        uglifier (2.5.3)\r\n          execjs (>= 0.3.0)\r\n          json (>= 1.8.0)\r\n        warden (1.2.3)\r\n          rack (>= 1.0)\r\n    \r\n    PLATFORMS\r\n      ruby\r\n    \r\n    DEPENDENCIES\r\n      activeadmin!\r\n      angularjs-file-upload-rails (~> 1.1.6)\r\n      bootstrap-sass (~> 3.3.1.0)\r\n      capistrano (~> 3.3.4)\r\n      capistrano-rails (~> 1.1.2)\r\n      carrierwave (~> 0.10.0)\r\n      carrierwave-crop (~> 0.1.2)\r\n      coffee-rails (~> 4.1.0)\r\n      country_select (~> 2.1.0)\r\n      database_cleaner (~> 1.3.0)\r\n      delayed_job_active_record (~> 4.0.3)\r\n      devise!\r\n      factory_girl_rails (~> 4.5.0)\r\n      geocoder (~> 1.2.7)\r\n      inherited_resources!\r\n      jbuilder (~> 2.2.5)\r\n      jquery-rails (~> 3.1.2)\r\n      letter_opener (~> 1.2.0)\r\n      mocha (~> 1.1.0)\r\n      mysql2 (~> 0.3.18)\r\n      namae (~> 0.9.2)\r\n      non-stupid-digest-assets (~> 1.0.4)\r\n      pg (~> 0.17.1)\r\n      railroady\r\n      rails (~> 4.2.0)\r\n      rails-assets-angular (~> 1.3.14)!\r\n      rails-assets-angular-animate (~> 1.3.14)!\r\n      rails-assets-angular-resource (~> 1.3.14)!\r\n      rails-assets-angular-route (~> 1.3.14)!\r\n      rails-assets-angular-sanitize (~> 1.3.14)!\r\n      rails-assets-animate.css (~> 3.2.1)!\r\n      rails-assets-checklist-model (~> 0.1.3)!\r\n      rails-assets-font-awesome (~> 4.2.0)!\r\n      rails-assets-normalize-scss!\r\n      rails-assets-weather-icons (~> 1.3.2)!\r\n      rspec-rails (~> 3.1.0)\r\n      sass-rails (~> 4.0.5)\r\n      sdoc (~> 0.4)\r\n      shoulda (~> 3.5.0)\r\n      simplecov (~> 0.9.1)\r\n      slim-rails (~> 3.0.1)\r\n      slim_assets (~> 0.0.2)\r\n      sorcery (~> 0.9.0)\r\n      spring\r\n      sqlite3\r\n      uglifier (~> 2.5.3)\r\n```\r\n\r\nbundle install\r\n```\r\nNigel-MBP:ctbe wtfiwtz$ bundle install\r\nFetching gem metadata from https://rails-assets.org/..\r\nFetching version metadata from https://rails-assets.org/..\r\nFetching gem metadata from https://rails-assets.org/..\r\nFetching gem metadata from https://rubygems.org/.........\r\nFetching version metadata from https://rails-assets.org/..\r\nFetching version metadata from https://rubygems.org/...\r\nFetching dependency metadata from https://rails-assets.org/..\r\nFetching dependency metadata from https://rubygems.org/..\r\nResolving dependencies...\r\nUsing rake 10.4.2\r\nUsing i18n 0.7.0\r\nUsing json 1.8.2\r\nUsing minitest 5.5.1\r\nUsing thread_safe 0.3.4\r\nUsing tzinfo 1.2.2\r\nUsing activesupport 4.2.0\r\nUsing builder 3.2.2\r\nUsing erubis 2.7.0\r\nUsing mini_portile 0.6.2\r\nUsing nokogiri 1.6.6.2\r\nUsing rails-deprecated_sanitizer 1.0.3\r\nUsing rails-dom-testing 1.0.5\r\nUsing loofah 2.0.1\r\nUsing rails-html-sanitizer 1.0.1\r\nUsing actionview 4.2.0\r\nUsing rack 1.6.0\r\nUsing rack-test 0.6.3\r\nUsing actionpack 4.2.0\r\nUsing globalid 0.3.2\r\nUsing activejob 4.2.0\r\nUsing mime-types 2.4.3\r\nUsing mail 2.6.3\r\nUsing actionmailer 4.2.0\r\nUsing arbre 1.0.3\r\nUsing sass 3.2.19\r\nUsing thor 0.19.1\r\nUsing bourbon 3.2.4\r\nUsing coffee-script-source 1.9.0\r\nUsing execjs 2.3.0\r\nUsing coffee-script 2.3.0\r\nUsing railties 4.2.0\r\nUsing coffee-rails 4.1.0\r\nUsing formtastic 3.1.3\r\nUsing formtastic_i18n 0.1.1\r\nUsing has_scope 0.6.0\r\nUsing responders 2.0.2\r\nUsing inherited_resources 1.5.1 from git://github.com/josevalim/inherited_resources.git (at rails-4-2)\r\nUsing jquery-rails 3.1.2\r\nUsing jquery-ui-rails 5.0.3\r\nUsing kaminari 0.16.2\r\nUsing activemodel 4.2.0\r\nUsing arel 6.0.0\r\nUsing activerecord 4.2.0\r\nUsing bundler 1.8.3\r\nUsing hike 1.2.3\r\nUsing multi_json 1.10.1\r\nUsing tilt 1.4.1\r\nUsing sprockets 2.12.3\r\nUsing sprockets-rails 2.2.4\r\nUsing rails 4.2.0\r\nUsing polyamorous 1.1.0\r\nUsing ransack 1.6.2\r\nUsing sass-rails 4.0.5\r\nUsing activeadmin 1.0.0.pre from git://github.com/activeadmin/activeadmin.git (at 9fac110)\r\nUsing addressable 2.3.6\r\nUsing angularjs-file-upload-rails 1.1.6\r\nUsing bcrypt 3.1.9\r\nUsing bootstrap-sass 3.3.1.0\r\nUsing capistrano-stats 1.1.1\r\nUsing colorize 0.7.5\r\nUsing net-ssh 2.9.2\r\nUsing net-scp 1.2.1\r\nUsing sshkit 1.6.1\r\nUsing capistrano 3.3.5\r\nUsing capistrano-bundler 1.1.3\r\nUsing capistrano-rails 1.1.2\r\nUsing carrierwave 0.10.0\r\nUsing carrierwave-crop 0.1.2\r\nUsing currencies 0.4.2\r\nUsing countries 0.9.3\r\nUsing country_select 2.1.0\r\nUsing database_cleaner 1.3.0\r\nUsing delayed_job 4.0.6\r\nUsing delayed_job_active_record 4.0.3\r\nUsing orm_adapter 0.5.0\r\nUsing warden 1.2.3\r\nUsing devise 3.4.1 from git://github.com/plataformatec/devise.git (at 6dd4444)\r\nUsing diff-lcs 1.2.5\r\nUsing docile 1.1.5\r\nUsing factory_girl 4.5.0\r\nUsing factory_girl_rails 4.5.0\r\nUsing multipart-post 2.0.0\r\nUsing faraday 0.9.1\r\nUsing geocoder 1.2.7\r\nUsing jbuilder 2.2.6\r\nUsing jwt 1.2.0\r\nUsing launchy 2.4.3\r\nUsing letter_opener 1.2.0\r\nUsing metaclass 0.0.4\r\nUsing mocha 1.1.0\r\nUsing multi_xml 0.5.5\r\nUsing mysql2 0.3.18\r\nUsing namae 0.9.3\r\nUsing non-stupid-digest-assets 1.0.4\r\nUsing oauth 0.4.7\r\nUsing oauth2 1.0.0\r\nUsing pg 0.17.1\r\nUsing railroady 1.3.0\r\nUsing rails-assets-angular 1.3.14\r\nUsing rails-assets-angular-animate 1.3.14\r\nUsing rails-assets-angular-resource 1.3.14\r\nUsing rails-assets-angular-route 1.3.14\r\nUsing rails-assets-angular-sanitize 1.3.14\r\nUsing rails-assets-animate.css 3.2.1\r\nUsing rails-assets-checklist-model 0.1.4\r\nUsing rails-assets-font-awesome 4.2.0\r\nUsing rails-assets-normalize-scss 3.0.2\r\nUsing rails-assets-weather-icons 1.3.2\r\nUsing rdoc 4.2.0\r\nUsing rspec-support 3.1.2\r\nUsing rspec-core 3.1.7\r\nUsing rspec-expectations 3.1.2\r\nUsing rspec-mocks 3.1.3\r\nUsing rspec-rails 3.1.0\r\nUsing sdoc 0.4.1\r\nUsing shoulda-context 1.2.1\r\nUsing shoulda-matchers 2.7.0\r\nUsing shoulda 3.5.0\r\nUsing simplecov-html 0.8.0\r\nUsing simplecov 0.9.1\r\nUsing temple 0.7.5\r\nUsing slim 3.0.1\r\nUsing slim-rails 3.0.1\r\nUsing slim_assets 0.0.2\r\nUsing sorcery 0.9.0\r\nUsing spring 1.3.2\r\nUsing sqlite3 1.3.10\r\nUsing uglifier 2.5.3\r\nBundle complete! 46 Gemfile dependencies, 129 gems now installed.\r\nUse `bundle show [gemname]` to see where a bundled gem is installed.\r\n```\r\nrails server\r\n```\r\nNigel-MBP:ctbe wtfiwtz$ rails s\r\n=> Booting WEBrick\r\n=> Rails 4.2.0 application starting in development on http://localhost:3000\r\n=> Run `rails server -h` for more startup options\r\n=> Ctrl-C to shutdown server\r\n[2015-02-26 23:42:28] INFO  WEBrick 1.3.1\r\n[2015-02-26 23:42:28] INFO  ruby 2.1.5 (2014-11-13) [x86_64-darwin13.0]\r\n[2015-02-26 23:42:28] INFO  WEBrick::HTTPServer#start: pid=18193 port=3000\r\n```\r\n\r\nSteps to reproduce:\r\n--------------------------\r\n1. Add a brand new gem to the source block (e.g. `gem 'rails-assets-inuit-normalize'`)\r\n2. bundle install => ok\r\n   - See output: Installing rails-assets-inuit-normalize 3.0.2\r\n3. Insert version spec: `gem 'rails-assets-inuit-normalize', '~> 3.0.2'`\r\n4. rails s => fails\r\n\r\n```\r\nNigel-MBP:ctbe wtfiwtz$ rails s\r\nCould not find gem 'rails-assets-angular (~> 1.3.14) ruby' in rubygems repository https://rails-assets.org/.\r\nSource does not contain any versions of 'rails-assets-angular (~> 1.3.14) ruby'\r\nRun `bundle install` to install missing gems.\r\n```\r\n\r\nRemoving the version spec again, it then works. \r\n\r\nIf I add these two lines to resolver.rb at L405:\r\n\r\n```\r\n    def search(dep)\r\n      if base = @base[dep.name] and base.any?\r\n        reqs = [dep.requirement.as_list, base.first.version.to_s].flatten.compact\r\n        d = Gem::Dependency.new(base.first.name, *reqs)\r\n      else\r\n        d = dep.dep\r\n      end\r\n\r\n>>>      puts \"d: #{d}\"\r\n>>>      puts \"Deps_for: #{@deps_for[d.hash].inspect}\"\r\n      @deps_for[d.hash] ||= begin\r\n        index = @source_requirements[d.name] || @index\r\n        results = index.search(d, @base[d.name])\r\n```\r\n\r\n... then you get this output with `rails s`:\r\n\r\n```\r\nNigel-MBP:ctbe wtfiwtz$ rails s\r\nd: rails (= 4.2.0, ~> 4.2.0)\r\nDeps_for: nil\r\n...\r\nd: rails-assets-angular (~> 1.3.14)\r\nDeps_for: nil\r\n...\r\nd: sdoc (= 0.4.1, ~> 0.4)\r\nDeps_for: nil\r\nd: rails-assets-angular (~> 1.3.14)\r\nDeps_for: []\r\nCould not find gem 'rails-assets-angular (~> 1.3.14) ruby' in rubygems repository https://rails-assets.org/.\r\nSource does not contain any versions of 'rails-assets-angular (~> 1.3.14) ruby'\r\nRun `bundle install` to install missing gems.\r\n```\r\n\r\nSo it looks like its doing the search for this gem twice, and on the second time, it gets an empty dependency list, rather than doing the search again.\r\n\r\nReinstalling bundler gets rid of the issue, but running `bundle install` doesn't. Perhaps I should try `bundle update <gemname>`.\r\n\r\nObviously I'm happy to remove the version spec because it's not essential, but if you any suggestions of what might be happening, it will help me whilst I will have a go a creating a Pull Request.\r\n\r\nCheers,\r\nNigel (@wtfiwtz)\r\n\r\n\r\n\r\n\r\n\r\n\r\n"}}