{"action":"created","comment":{"url":"https://api.github.com/repos/bundler/bundler/pulls/comments/24865794","id":24865794,"diff_hunk":"@@ -162,5 +163,12 @@ def ask_and_set_test_framework\n       test_framework\n     end\n \n+    def bundler_dependency_version\n+      major, minor, *etc = Bundler::VERSION.split(\".\")\n+      version = [major, minor]\n+      version << etc.last if etc.last =~ /[a-z]/i\n+      version.join(\".\")","path":"lib/bundler/cli/gem.rb","position":18,"original_position":18,"commit_id":"6879a30b8505f1e924cf1e13db4b3a3b19907bed","original_commit_id":"6879a30b8505f1e924cf1e13db4b3a3b19907bed","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},"body":"Heh, probably not. Sounds good!","created_at":"2015-02-17T23:29:20Z","updated_at":"2015-02-17T23:29:20Z","html_url":"https://github.com/bundler/bundler/pull/3415#discussion_r24865794","pull_request_url":"https://api.github.com/repos/bundler/bundler/pulls/3415","_links":{"self":{"href":"https://api.github.com/repos/bundler/bundler/pulls/comments/24865794"},"html":{"href":"https://github.com/bundler/bundler/pull/3415#discussion_r24865794"},"pull_request":{"href":"https://api.github.com/repos/bundler/bundler/pulls/3415"}}},"pull_request":{"url":"https://api.github.com/repos/bundler/bundler/pulls/3415","id":29486396,"html_url":"https://github.com/bundler/bundler/pull/3415","diff_url":"https://github.com/bundler/bundler/pull/3415.diff","patch_url":"https://github.com/bundler/bundler/pull/3415.patch","issue_url":"https://api.github.com/repos/bundler/bundler/issues/3415","number":3415,"state":"open","locked":false,"title":"Allow dev versions when creating a new gem","user":{"login":"TimMoore","id":44385,"avatar_url":"https://avatars.githubusercontent.com/u/44385?v=3","gravatar_id":"","url":"https://api.github.com/users/TimMoore","html_url":"https://github.com/TimMoore","followers_url":"https://api.github.com/users/TimMoore/followers","following_url":"https://api.github.com/users/TimMoore/following{/other_user}","gists_url":"https://api.github.com/users/TimMoore/gists{/gist_id}","starred_url":"https://api.github.com/users/TimMoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimMoore/subscriptions","organizations_url":"https://api.github.com/users/TimMoore/orgs","repos_url":"https://api.github.com/users/TimMoore/repos","events_url":"https://api.github.com/users/TimMoore/events{/privacy}","received_events_url":"https://api.github.com/users/TimMoore/received_events","type":"User","site_admin":false},"body":"The changed behaviour is to see if the last segment in the Bundler version contains any letters, and if so, tack it on.\r\n\r\nSo with Bundler 1.9.0.dev, you get:\r\n\r\n```ruby\r\n  spec.add_development_dependency \"bundler\", \"~> 1.9.dev\"\r\n```\r\n\r\nand with Bundler 1.8.2, you get the same as before:\r\n\r\n```ruby\r\n  spec.add_development_dependency \"bundler\", \"~> 1.8\"\r\n```","created_at":"2015-02-17T23:02:50Z","updated_at":"2015-02-17T23:29:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"95486f6800e16b14c1b2d43e87d1b6a0dca64c84","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bundler/bundler/pulls/3415/commits","review_comments_url":"https://api.github.com/repos/bundler/bundler/pulls/3415/comments","review_comment_url":"https://api.github.com/repos/bundler/bundler/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/3415/comments","statuses_url":"https://api.github.com/repos/bundler/bundler/statuses/6879a30b8505f1e924cf1e13db4b3a3b19907bed","head":{"label":"TimMoore:new-gem-dev-version","ref":"new-gem-dev-version","sha":"6879a30b8505f1e924cf1e13db4b3a3b19907bed","user":{"login":"TimMoore","id":44385,"avatar_url":"https://avatars.githubusercontent.com/u/44385?v=3","gravatar_id":"","url":"https://api.github.com/users/TimMoore","html_url":"https://github.com/TimMoore","followers_url":"https://api.github.com/users/TimMoore/followers","following_url":"https://api.github.com/users/TimMoore/following{/other_user}","gists_url":"https://api.github.com/users/TimMoore/gists{/gist_id}","starred_url":"https://api.github.com/users/TimMoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimMoore/subscriptions","organizations_url":"https://api.github.com/users/TimMoore/orgs","repos_url":"https://api.github.com/users/TimMoore/repos","events_url":"https://api.github.com/users/TimMoore/events{/privacy}","received_events_url":"https://api.github.com/users/TimMoore/received_events","type":"User","site_admin":false},"repo":{"id":10596176,"name":"bundler","full_name":"TimMoore/bundler","owner":{"login":"TimMoore","id":44385,"avatar_url":"https://avatars.githubusercontent.com/u/44385?v=3","gravatar_id":"","url":"https://api.github.com/users/TimMoore","html_url":"https://github.com/TimMoore","followers_url":"https://api.github.com/users/TimMoore/followers","following_url":"https://api.github.com/users/TimMoore/following{/other_user}","gists_url":"https://api.github.com/users/TimMoore/gists{/gist_id}","starred_url":"https://api.github.com/users/TimMoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimMoore/subscriptions","organizations_url":"https://api.github.com/users/TimMoore/orgs","repos_url":"https://api.github.com/users/TimMoore/repos","events_url":"https://api.github.com/users/TimMoore/events{/privacy}","received_events_url":"https://api.github.com/users/TimMoore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TimMoore/bundler","description":"Manage your application's gem dependencies with less pain","fork":true,"url":"https://api.github.com/repos/TimMoore/bundler","forks_url":"https://api.github.com/repos/TimMoore/bundler/forks","keys_url":"https://api.github.com/repos/TimMoore/bundler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TimMoore/bundler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TimMoore/bundler/teams","hooks_url":"https://api.github.com/repos/TimMoore/bundler/hooks","issue_events_url":"https://api.github.com/repos/TimMoore/bundler/issues/events{/number}","events_url":"https://api.github.com/repos/TimMoore/bundler/events","assignees_url":"https://api.github.com/repos/TimMoore/bundler/assignees{/user}","branches_url":"https://api.github.com/repos/TimMoore/bundler/branches{/branch}","tags_url":"https://api.github.com/repos/TimMoore/bundler/tags","blobs_url":"https://api.github.com/repos/TimMoore/bundler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TimMoore/bundler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TimMoore/bundler/git/refs{/sha}","trees_url":"https://api.github.com/repos/TimMoore/bundler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TimMoore/bundler/statuses/{sha}","languages_url":"https://api.github.com/repos/TimMoore/bundler/languages","stargazers_url":"https://api.github.com/repos/TimMoore/bundler/stargazers","contributors_url":"https://api.github.com/repos/TimMoore/bundler/contributors","subscribers_url":"https://api.github.com/repos/TimMoore/bundler/subscribers","subscription_url":"https://api.github.com/repos/TimMoore/bundler/subscription","commits_url":"https://api.github.com/repos/TimMoore/bundler/commits{/sha}","git_commits_url":"https://api.github.com/repos/TimMoore/bundler/git/commits{/sha}","comments_url":"https://api.github.com/repos/TimMoore/bundler/comments{/number}","issue_comment_url":"https://api.github.com/repos/TimMoore/bundler/issues/comments/{number}","contents_url":"https://api.github.com/repos/TimMoore/bundler/contents/{+path}","compare_url":"https://api.github.com/repos/TimMoore/bundler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TimMoore/bundler/merges","archive_url":"https://api.github.com/repos/TimMoore/bundler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TimMoore/bundler/downloads","issues_url":"https://api.github.com/repos/TimMoore/bundler/issues{/number}","pulls_url":"https://api.github.com/repos/TimMoore/bundler/pulls{/number}","milestones_url":"https://api.github.com/repos/TimMoore/bundler/milestones{/number}","notifications_url":"https://api.github.com/repos/TimMoore/bundler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TimMoore/bundler/labels{/name}","releases_url":"https://api.github.com/repos/TimMoore/bundler/releases{/id}","created_at":"2013-06-10T08:26:10Z","updated_at":"2014-12-01T23:02:11Z","pushed_at":"2015-02-17T22:58:02Z","git_url":"git://github.com/TimMoore/bundler.git","ssh_url":"git@github.com:TimMoore/bundler.git","clone_url":"https://github.com/TimMoore/bundler.git","svn_url":"https://github.com/TimMoore/bundler","homepage":"http://gembundler.com","size":15033,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bundler:master","ref":"master","sha":"28791072377019b89e561ccf8b034c4380e99a14","user":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"repo":{"id":488514,"name":"bundler","full_name":"bundler/bundler","owner":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bundler/bundler","description":"Manage your application's gem dependencies with less pain","fork":false,"url":"https://api.github.com/repos/bundler/bundler","forks_url":"https://api.github.com/repos/bundler/bundler/forks","keys_url":"https://api.github.com/repos/bundler/bundler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bundler/bundler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bundler/bundler/teams","hooks_url":"https://api.github.com/repos/bundler/bundler/hooks","issue_events_url":"https://api.github.com/repos/bundler/bundler/issues/events{/number}","events_url":"https://api.github.com/repos/bundler/bundler/events","assignees_url":"https://api.github.com/repos/bundler/bundler/assignees{/user}","branches_url":"https://api.github.com/repos/bundler/bundler/branches{/branch}","tags_url":"https://api.github.com/repos/bundler/bundler/tags","blobs_url":"https://api.github.com/repos/bundler/bundler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bundler/bundler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bundler/bundler/git/refs{/sha}","trees_url":"https://api.github.com/repos/bundler/bundler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bundler/bundler/statuses/{sha}","languages_url":"https://api.github.com/repos/bundler/bundler/languages","stargazers_url":"https://api.github.com/repos/bundler/bundler/stargazers","contributors_url":"https://api.github.com/repos/bundler/bundler/contributors","subscribers_url":"https://api.github.com/repos/bundler/bundler/subscribers","subscription_url":"https://api.github.com/repos/bundler/bundler/subscription","commits_url":"https://api.github.com/repos/bundler/bundler/commits{/sha}","git_commits_url":"https://api.github.com/repos/bundler/bundler/git/commits{/sha}","comments_url":"https://api.github.com/repos/bundler/bundler/comments{/number}","issue_comment_url":"https://api.github.com/repos/bundler/bundler/issues/comments/{number}","contents_url":"https://api.github.com/repos/bundler/bundler/contents/{+path}","compare_url":"https://api.github.com/repos/bundler/bundler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bundler/bundler/merges","archive_url":"https://api.github.com/repos/bundler/bundler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bundler/bundler/downloads","issues_url":"https://api.github.com/repos/bundler/bundler/issues{/number}","pulls_url":"https://api.github.com/repos/bundler/bundler/pulls{/number}","milestones_url":"https://api.github.com/repos/bundler/bundler/milestones{/number}","notifications_url":"https://api.github.com/repos/bundler/bundler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bundler/bundler/labels{/name}","releases_url":"https://api.github.com/repos/bundler/bundler/releases{/id}","created_at":"2010-01-26T00:46:38Z","updated_at":"2015-02-17T22:15:50Z","pushed_at":"2015-02-17T21:08:39Z","git_url":"git://github.com/bundler/bundler.git","ssh_url":"git@github.com:bundler/bundler.git","clone_url":"https://github.com/bundler/bundler.git","svn_url":"https://github.com/bundler/bundler","homepage":"http://bundler.io","size":23441,"stargazers_count":2729,"watchers_count":2729,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1156,"mirror_url":null,"open_issues_count":83,"forks":1156,"open_issues":83,"watchers":2729,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bundler/bundler/pulls/3415"},"html":{"href":"https://github.com/bundler/bundler/pull/3415"},"issue":{"href":"https://api.github.com/repos/bundler/bundler/issues/3415"},"comments":{"href":"https://api.github.com/repos/bundler/bundler/issues/3415/comments"},"review_comments":{"href":"https://api.github.com/repos/bundler/bundler/pulls/3415/comments"},"review_comment":{"href":"https://api.github.com/repos/bundler/bundler/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bundler/bundler/pulls/3415/commits"},"statuses":{"href":"https://api.github.com/repos/bundler/bundler/statuses/6879a30b8505f1e924cf1e13db4b3a3b19907bed"}}}}