{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/4142","labels_url":"https://api.github.com/repos/bundler/bundler/issues/4142/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/4142/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/4142/events","html_url":"https://github.com/bundler/bundler/pull/4142","id":120791749,"number":4142,"title":"Modified newgem generator to exclude Gemfile from the gemspec spec.files.","user":{"login":"jperville","id":834791,"avatar_url":"https://avatars.githubusercontent.com/u/834791?v=3","gravatar_id":"","url":"https://api.github.com/users/jperville","html_url":"https://github.com/jperville","followers_url":"https://api.github.com/users/jperville/followers","following_url":"https://api.github.com/users/jperville/following{/other_user}","gists_url":"https://api.github.com/users/jperville/gists{/gist_id}","starred_url":"https://api.github.com/users/jperville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jperville/subscriptions","organizations_url":"https://api.github.com/users/jperville/orgs","repos_url":"https://api.github.com/users/jperville/repos","events_url":"https://api.github.com/users/jperville/events{/privacy}","received_events_url":"https://api.github.com/users/jperville/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T14:58:48Z","updated_at":"2015-12-07T19:59:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bundler/bundler/pulls/4142","html_url":"https://github.com/bundler/bundler/pull/4142","diff_url":"https://github.com/bundler/bundler/pull/4142.diff","patch_url":"https://github.com/bundler/bundler/pull/4142.patch"},"body":"This PR modifies the `bundle gem` generator to exclude Gemfile from the gemspec spec.files (the list of files that will be copied in the generated gem).\r\n\r\nThe reason is that:\r\n - the `Gemfile` file is not used by rubygems (as far as I know)\r\n - the `Gemfile` file may contain private sources (possibly with credentials) that we do not want to leak into a packaged gem."},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/162643161","html_url":"https://github.com/bundler/bundler/pull/4142#issuecomment-162643161","issue_url":"https://api.github.com/repos/bundler/bundler/issues/4142","id":162643161,"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-12-07T19:59:54Z","updated_at":"2015-12-07T19:59:54Z","body":"Please use `bundle config` to store credentials instead of the Gemfile.\n\nThat said, if your Gemfile contains private sources, why are you pushing this gem in public?"}}