{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/4064","labels_url":"https://api.github.com/repos/bundler/bundler/issues/4064/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/4064/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/4064/events","html_url":"https://github.com/bundler/bundler/pull/4064","id":112240755,"number":4064,"title":"use version operators for specifying ruby version in Gemfile","user":{"login":"jtarchie","id":75184,"avatar_url":"https://avatars.githubusercontent.com/u/75184?v=3","gravatar_id":"","url":"https://api.github.com/users/jtarchie","html_url":"https://github.com/jtarchie","followers_url":"https://api.github.com/users/jtarchie/followers","following_url":"https://api.github.com/users/jtarchie/following{/other_user}","gists_url":"https://api.github.com/users/jtarchie/gists{/gist_id}","starred_url":"https://api.github.com/users/jtarchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtarchie/subscriptions","organizations_url":"https://api.github.com/users/jtarchie/orgs","repos_url":"https://api.github.com/users/jtarchie/repos","events_url":"https://api.github.com/users/jtarchie/events{/privacy}","received_events_url":"https://api.github.com/users/jtarchie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-19T21:51:39Z","updated_at":"2015-10-25T07:33:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bundler/bundler/pulls/4064","html_url":"https://github.com/bundler/bundler/pull/4064","diff_url":"https://github.com/bundler/bundler/pull/4064.diff","patch_url":"https://github.com/bundler/bundler/pull/4064.patch"},"body":"Related to the original [PR](https://github.com/bundler/bundler/pull/3575), we are adding the requested meta data to the `Gemfile`. So far we have a proposed `RUBY VERSION ` that would store the meta information of the Ruby.\r\n\r\nYou'll be able to support version operators on the version of Ruby you'd like to support.\r\n\r\nFor example, if you wanted the latest patch release from Ruby 2.2.\r\n\r\n```\r\n$ cat Gemfile\r\nruby \"~> 2.2.0\"\r\n```\r\n\r\nThis way the Ruby version selected could always be the latest stable. Especially useful for deployments on production environments that are constantly supporting the latest security release of Ruby (eg: Heroku and PWS). \r\n"},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/150898732","html_url":"https://github.com/bundler/bundler/pull/4064#issuecomment-150898732","issue_url":"https://api.github.com/repos/bundler/bundler/issues/4064","id":150898732,"user":{"login":"indirect","id":78,"avatar_url":"https://avatars.githubusercontent.com/u/78?v=3","gravatar_id":"","url":"https://api.github.com/users/indirect","html_url":"https://github.com/indirect","followers_url":"https://api.github.com/users/indirect/followers","following_url":"https://api.github.com/users/indirect/following{/other_user}","gists_url":"https://api.github.com/users/indirect/gists{/gist_id}","starred_url":"https://api.github.com/users/indirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indirect/subscriptions","organizations_url":"https://api.github.com/users/indirect/orgs","repos_url":"https://api.github.com/users/indirect/repos","events_url":"https://api.github.com/users/indirect/events{/privacy}","received_events_url":"https://api.github.com/users/indirect/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T07:33:34Z","updated_at":"2015-10-25T07:33:34Z","body":"This looks good! One thing I'm not sure about is how you upgrade your locked Ruby version once it's in your lockfile... what if you're locked to 2.2.3 and the Gemfile changes to say \"~> 2.3.0\"?"}}