{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/3665","labels_url":"https://api.github.com/repos/bundler/bundler/issues/3665/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/3665/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/3665/events","html_url":"https://github.com/bundler/bundler/issues/3665","id":77727863,"number":3665,"title":"Revisit default Rakefile for `bundle gem --ext`","user":{"login":"andremedeiros","id":9689,"avatar_url":"https://avatars.githubusercontent.com/u/9689?v=3","gravatar_id":"","url":"https://api.github.com/users/andremedeiros","html_url":"https://github.com/andremedeiros","followers_url":"https://api.github.com/users/andremedeiros/followers","following_url":"https://api.github.com/users/andremedeiros/following{/other_user}","gists_url":"https://api.github.com/users/andremedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/andremedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andremedeiros/subscriptions","organizations_url":"https://api.github.com/users/andremedeiros/orgs","repos_url":"https://api.github.com/users/andremedeiros/repos","events_url":"https://api.github.com/users/andremedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/andremedeiros/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-18T16:59:44Z","updated_at":"2015-05-18T18:53:48Z","closed_at":null,"body":"After revisiting `bundle gem --ext <your_gem_name>`, I found that the default Rakefile isn't as convenient as it should be.\r\n\r\nAs a default task, we get a test runner, but with C extensions, we should consider something along the lines of this:\r\n\r\n```ruby\r\nrequire \"bundler/gem_tasks\"\r\nrequire \"rake/testtask\"\r\n\r\nRake::TestTask.new(:test) do |t|\r\n  t.libs << \"test\"\r\nend\r\n\r\nrequire \"rake/extensiontask\"\r\n\r\nRake::ExtensionTask.new(\"journalist\") do |ext|\r\n  ext.lib_dir = \"lib/journalist\"\r\nend\r\n\r\ntask :default => [:clobber, :compile, :test]\r\n```\r\n\r\nI'd like to hear some thoughts about this (especially the opposing kind) before applying the change."},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/103173684","html_url":"https://github.com/bundler/bundler/issues/3665#issuecomment-103173684","issue_url":"https://api.github.com/repos/bundler/bundler/issues/3665","id":103173684,"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-05-18T18:53:48Z","updated_at":"2015-05-18T18:53:48Z","body":"@andremedeiros yeah, I'm only getting the RC out today, so you have at least a week to finalize."}}