{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/2016","labels_url":"https://api.github.com/repos/bundler/bundler/issues/2016/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/2016/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/2016/events","html_url":"https://github.com/bundler/bundler/issues/2016","id":5449660,"number":2016,"title":"Way to bundle update conservatively a single gem","user":{"login":"marcandre","id":33770,"avatar_url":"https://avatars.githubusercontent.com/u/33770?v=3","gravatar_id":"","url":"https://api.github.com/users/marcandre","html_url":"https://github.com/marcandre","followers_url":"https://api.github.com/users/marcandre/followers","following_url":"https://api.github.com/users/marcandre/following{/other_user}","gists_url":"https://api.github.com/users/marcandre/gists{/gist_id}","starred_url":"https://api.github.com/users/marcandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcandre/subscriptions","organizations_url":"https://api.github.com/users/marcandre/orgs","repos_url":"https://api.github.com/users/marcandre/repos","events_url":"https://api.github.com/users/marcandre/events{/privacy}","received_events_url":"https://api.github.com/users/marcandre/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2012-07-05T18:07:41Z","updated_at":"2016-01-27T13:22:44Z","closed_at":"2012-07-05T18:28:38Z","body":"If `some_gem` is already installed, and I want the latest version of it, `bundle install` will not do anything and `bundle update some_gem` will update `some_gem` (*yay!*) but also any of its dependency (*not what I want*). I'd rather not update my rails version just because I'm also updating a minor gem that has rails as a dependency.\n\nOnly current way is to go in the Gemfile and manually state that we want a version `>= current_version`, and now `bundle install` will update it.\n\nIt would be awesome to be able to update `some_gem` and be conservative for the rest, without having to state an actual version in the Gemfile.\n\nBTW, I don't understand the reason behind the decision that `bundle update foo` is not conservative; this won't happen when I bundle install and have added `some_gem` line in my Gemfile, or increased the minimum version for that gem. In any case, a `--conservative` or something would be greatly appreciated.\n\nThis is a repost of #2011"},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/175623913","html_url":"https://github.com/bundler/bundler/issues/2016#issuecomment-175623913","issue_url":"https://api.github.com/repos/bundler/bundler/issues/2016","id":175623913,"user":{"login":"jbodah","id":6093002,"avatar_url":"https://avatars.githubusercontent.com/u/6093002?v=3","gravatar_id":"","url":"https://api.github.com/users/jbodah","html_url":"https://github.com/jbodah","followers_url":"https://api.github.com/users/jbodah/followers","following_url":"https://api.github.com/users/jbodah/following{/other_user}","gists_url":"https://api.github.com/users/jbodah/gists{/gist_id}","starred_url":"https://api.github.com/users/jbodah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbodah/subscriptions","organizations_url":"https://api.github.com/users/jbodah/orgs","repos_url":"https://api.github.com/users/jbodah/repos","events_url":"https://api.github.com/users/jbodah/events{/privacy}","received_events_url":"https://api.github.com/users/jbodah/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T13:22:44Z","updated_at":"2016-01-27T13:22:44Z","body":"> And bundle update --source foo still update dependencies of foo even when the ones in the .lock file match...\r\n\r\nFor what it's worth I'm not getting that behavior with 1.11.2. `--source` still seems to work for me\r\n\r\n```\r\nBodah@jbodah-local 2.1.3p242 ~/repos/spy_rb (master) $ bundle -v\r\nBundler version 1.11.2\r\nBodah@jbodah-local 2.1.3p242 ~/repos/spy_rb (master) $ bundle\r\nFetching gem metadata from https://rubygems.org/.........\r\nFetching version metadata from https://rubygems.org/...\r\nFetching dependency metadata from https://rubygems.org/..\r\nInstalling rake 10.3.2\r\nUsing hitimes 1.2.2\r\nUsing coderay 1.1.0\r\nUsing multi_json 1.10.1\r\nUsing mime-types 2.4.3\r\nUsing netrc 0.8.0\r\nUsing docile 1.1.5\r\nUsing simplecov-html 0.8.0\r\nUsing tins 1.3.3\r\nUsing thor 0.19.1\r\nUsing ffi 1.9.6\r\nUsing formatador 0.2.5\r\nUsing rb-fsevent 0.9.4\r\nUsing lumberjack 1.0.9\r\nUsing method_source 0.8.2\r\nUsing slop 3.6.0\r\nUsing minitest 5.4.3\r\nUsing bundler 1.11.2\r\nUsing timers 4.0.1\r\nUsing rest-client 1.7.2\r\nUsing simplecov 0.9.1\r\nUsing term-ansicolor 1.3.0\r\nUsing rb-inotify 0.9.5\r\nInstalling pry 0.10.1\r\nUsing minitest-server 1.0.2\r\nUsing celluloid 0.16.0\r\nUsing coveralls 0.7.1\r\nUsing minitest-bisect 1.3.0\r\nUsing listen 2.7.11\r\nUsing guard 2.6.1\r\nUsing guard-minitest 2.3.2\r\nBundle complete! 6 Gemfile dependencies, 31 gems now installed.\r\nUse `bundle show [gemname]` to see where a bundled gem is installed.\r\nBodah@jbodah-local 2.1.3p242 ~/repos/spy_rb (master) $ bundle -v\r\nBundler version 1.11.2\r\nBodah@jbodah-local 2.1.3p242 ~/repos/spy_rb (master) $ bundle update --source rake\r\nFetching gem metadata from https://rubygems.org/.........\r\nFetching version metadata from https://rubygems.org/...\r\nFetching dependency metadata from https://rubygems.org/..\r\nResolving dependencies...\r\nInstalling rake 10.5.0 (was 10.3.2)\r\nUsing hitimes 1.2.2\r\nUsing coderay 1.1.0\r\nUsing multi_json 1.10.1\r\nUsing mime-types 2.4.3\r\nUsing netrc 0.8.0\r\nUsing docile 1.1.5\r\nUsing simplecov-html 0.8.0\r\nUsing tins 1.3.3\r\nUsing thor 0.19.1\r\nUsing ffi 1.9.6\r\nUsing formatador 0.2.5\r\nUsing rb-fsevent 0.9.4\r\nUsing lumberjack 1.0.9\r\nUsing method_source 0.8.2\r\nUsing slop 3.6.0\r\nUsing minitest 5.4.3\r\nUsing bundler 1.11.2\r\nUsing timers 4.0.1\r\nUsing rest-client 1.7.2\r\nUsing simplecov 0.9.1\r\nUsing term-ansicolor 1.3.0\r\nUsing rb-inotify 0.9.5\r\nUsing pry 0.10.1\r\nUsing minitest-server 1.0.2\r\nUsing celluloid 0.16.0\r\nUsing coveralls 0.7.1\r\nUsing minitest-bisect 1.3.0\r\nUsing listen 2.7.11\r\nUsing guard 2.6.1\r\nUsing guard-minitest 2.3.2\r\nBundle updated!\r\nBodah@jbodah-local 2.1.3p242 ~/repos/spy_rb (master) $ bundle update --source pry\r\nFetching gem metadata from https://rubygems.org/.........\r\nFetching version metadata from https://rubygems.org/...\r\nFetching dependency metadata from https://rubygems.org/..\r\nResolving dependencies...\r\nUsing rake 10.5.0\r\nUsing hitimes 1.2.2\r\nUsing coderay 1.1.0\r\nUsing multi_json 1.10.1\r\nUsing mime-types 2.4.3\r\nUsing netrc 0.8.0\r\nUsing docile 1.1.5\r\nUsing simplecov-html 0.8.0\r\nUsing tins 1.3.3\r\nUsing thor 0.19.1\r\nUsing ffi 1.9.6\r\nUsing formatador 0.2.5\r\nUsing rb-fsevent 0.9.4\r\nUsing lumberjack 1.0.9\r\nUsing method_source 0.8.2\r\nUsing slop 3.6.0\r\nUsing minitest 5.4.3\r\nUsing bundler 1.11.2\r\nUsing timers 4.0.1\r\nUsing rest-client 1.7.2\r\nUsing simplecov 0.9.1\r\nUsing term-ansicolor 1.3.0\r\nUsing rb-inotify 0.9.5\r\nInstalling pry 0.10.3 (was 0.10.1)\r\nUsing minitest-server 1.0.2\r\nUsing celluloid 0.16.0\r\nUsing coveralls 0.7.1\r\nUsing minitest-bisect 1.3.0\r\nUsing listen 2.7.11\r\nUsing guard 2.6.1\r\nUsing guard-minitest 2.3.2\r\nBundle updated!\r\n```\r\n\r\n```\r\nBodah@jbodah-local 2.1.3p242 ~/repos/spy_rb (master) $ bundle -v\r\nBundler version 1.11.2\r\nBodah@jbodah-local 2.1.3p242 ~/repos/spy_rb (master) $ ruby -v\r\nruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin14.0]\r\nBodah@jbodah-local 2.1.3p242 ~/repos/spy_rb (master) $ gem -v\r\n2.4.8\r\n```"}}