{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/5201","repository_url":"https://api.github.com/repos/bundler/bundler","labels_url":"https://api.github.com/repos/bundler/bundler/issues/5201/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/5201/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/5201/events","html_url":"https://github.com/bundler/bundler/issues/5201","id":191153790,"number":5201,"title":"bundle outdated prints incorrect output","user":{"login":"jaredbeck","id":380809,"avatar_url":"https://avatars.githubusercontent.com/u/380809?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredbeck","html_url":"https://github.com/jaredbeck","followers_url":"https://api.github.com/users/jaredbeck/followers","following_url":"https://api.github.com/users/jaredbeck/following{/other_user}","gists_url":"https://api.github.com/users/jaredbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredbeck/subscriptions","organizations_url":"https://api.github.com/users/jaredbeck/orgs","repos_url":"https://api.github.com/users/jaredbeck/repos","events_url":"https://api.github.com/users/jaredbeck/events{/privacy}","received_events_url":"https://api.github.com/users/jaredbeck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-22T23:32:12Z","updated_at":"2016-11-30T21:15:52Z","closed_at":"2016-11-30T21:15:52Z","body":"## Overview\r\n\r\n`bundle outdated` fails to list gems that are outdated.\r\n\r\n## Expected output\r\n\r\n```\r\nbundle outdated\r\nFetching gem metadata from https://rubygems.org/............\r\nFetching version metadata from https://rubygems.org/.\r\nResolving dependencies...\r\n\r\nOutdated gems included in the bundle:\r\n  * aws-sdk (newest 2.6.27, installed 2.6.23) in group \"default\"\r\n  * aws-sdk-core (newest 2.6.27, installed 2.6.23)\r\n  * aws-sdk-resources (newest 2.6.27, installed 2.6.23)\r\n```\r\n\r\n## Actual output\r\n\r\n```\r\nbundle outdated\r\nFetching gem metadata from https://rubygems.org/............\r\nFetching version metadata from https://rubygems.org/.\r\nResolving dependencies...\r\n\r\nBundle up to date!\r\n```\r\n\r\n## Diff\r\n\r\n```diff\r\ndiff expected actual\r\n6,9c6\r\n< Outdated gems included in the bundle:\r\n<   * aws-sdk (newest 2.6.27, installed 2.6.23) in group \"default\"\r\n<   * aws-sdk-core (newest 2.6.27, installed 2.6.23)\r\n<   * aws-sdk-resources (newest 2.6.27, installed 2.6.23)\r\n---\r\n> Bundle up to date!\r\n```\r\n\r\n## Full steps to reliably reproduce the problem:\r\n\r\n1. Install gems until you get *exactly* the following output from `gem list aws`. \r\n\r\n```\r\ngem list aws\r\n\r\n*** LOCAL GEMS ***\r\n\r\naws-sdk (2.6.23)\r\naws-sdk-core (2.6.23)\r\naws-sdk-resources (2.6.23)\r\n```\r\n\r\nNote that aws-sdk 2.6.27 is *not* installed.\r\n\r\n2. In an empty directory, create the following files:\r\n\r\n```\r\ncat Gemfile Gemfile.lock \r\n# Gemfile\r\nsource 'https://rubygems.org'\r\nruby '2.2.5'\r\ngem 'aws-sdk'\r\n\r\n# Gemfile.lock\r\nGEM\r\n  remote: https://rubygems.org/\r\n  specs:\r\n    aws-sdk (2.6.23)\r\n      aws-sdk-resources (= 2.6.23)\r\n    aws-sdk-core (2.6.23)\r\n      aws-sigv4 (~> 1.0)\r\n      jmespath (~> 1.0)\r\n    aws-sdk-resources (2.6.23)\r\n      aws-sdk-core (= 2.6.23)\r\n    aws-sigv4 (1.0.0)\r\n    jmespath (1.3.1)\r\n\r\nPLATFORMS\r\n  ruby\r\n\r\nDEPENDENCIES\r\n  aws-sdk\r\n\r\nRUBY VERSION\r\n   ruby 2.2.5p319\r\n\r\nBUNDLED WITH\r\n   1.13.6\r\n```\r\n\r\nNotice that the `Gemfile` places no constraints on `aws-sdk`.\r\n\r\n3. Run `bundle outdated` and see the message \"Bundle up to date!\", which is incorrect, because aws-sdk 2.6.27 has been released. \r\n\r\n## Versions Tested\r\n\r\n```bash\r\nruby -v # ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-darwin15]\r\ngem -v # 2.4.5.1\r\nbundler -v # Bundler version 1.13.6\r\nrbenv -v # rbenv 1.0.0-21-g9fdce5d\r\n```\r\n\r\n## Notes\r\n\r\n- `bundle outdated --no-strict` also erroneously prints \"Bundle up to date!\"\r\n- `bundle update` works as expected, updating the gems to 2.6.27 and writing a new lock file\r\n- If you `gem install aws-sdk -v '2.6.27'` and then run `bundle outdated`, it produces the correct output.\r\n- The aws gems are just the example I have chosen. This issue is not specific to them"},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/263997648","html_url":"https://github.com/bundler/bundler/issues/5201#issuecomment-263997648","issue_url":"https://api.github.com/repos/bundler/bundler/issues/5201","id":263997648,"user":{"login":"chrismo","id":8092,"avatar_url":"https://avatars.githubusercontent.com/u/8092?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismo","html_url":"https://github.com/chrismo","followers_url":"https://api.github.com/users/chrismo/followers","following_url":"https://api.github.com/users/chrismo/following{/other_user}","gists_url":"https://api.github.com/users/chrismo/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismo/subscriptions","organizations_url":"https://api.github.com/users/chrismo/orgs","repos_url":"https://api.github.com/users/chrismo/repos","events_url":"https://api.github.com/users/chrismo/events{/privacy}","received_events_url":"https://api.github.com/users/chrismo/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T21:15:52Z","updated_at":"2016-11-30T21:15:52Z","body":"Correct, fixed in master, should go out with 1.14."}}
{"actor":{"display_login":"chrismo"}}