{"action":"created","issue":{"url":"https://api.github.com/repos/asdf-vm/asdf-ruby/issues/31","repository_url":"https://api.github.com/repos/asdf-vm/asdf-ruby","labels_url":"https://api.github.com/repos/asdf-vm/asdf-ruby/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/asdf-vm/asdf-ruby/issues/31/comments","events_url":"https://api.github.com/repos/asdf-vm/asdf-ruby/issues/31/events","html_url":"https://github.com/asdf-vm/asdf-ruby/issues/31","id":216944340,"number":31,"title":"[Proposal] Add support for a default-gems file","user":{"login":"Stratus3D","id":1520926,"avatar_url":"https://avatars1.githubusercontent.com/u/1520926?v=4","gravatar_id":"","url":"https://api.github.com/users/Stratus3D","html_url":"https://github.com/Stratus3D","followers_url":"https://api.github.com/users/Stratus3D/followers","following_url":"https://api.github.com/users/Stratus3D/following{/other_user}","gists_url":"https://api.github.com/users/Stratus3D/gists{/gist_id}","starred_url":"https://api.github.com/users/Stratus3D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stratus3D/subscriptions","organizations_url":"https://api.github.com/users/Stratus3D/orgs","repos_url":"https://api.github.com/users/Stratus3D/repos","events_url":"https://api.github.com/users/Stratus3D/events{/privacy}","received_events_url":"https://api.github.com/users/Stratus3D/received_events","type":"User","site_admin":false},"labels":[{"id":182630128,"url":"https://api.github.com/repos/asdf-vm/asdf-ruby/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":182630129,"url":"https://api.github.com/repos/asdf-vm/asdf-ruby/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-25T02:57:40Z","updated_at":"2017-08-22T17:03:40Z","closed_at":null,"body":"I came across this article about the default-gems feature in rbenv: https://philna.sh/blog/2017/03/22/always-install-bundler-alongside-ruby-with-rbenv/ Might be a nice feature to add to asdf-ruby at some point. Not a high priority but definitely could be nice to have.\r\n\r\nIf anyone wants to contribute to `asdf-ruby` I think this might be an easy way to start. This feature should be relatively easy to implement:\r\n\r\n* After installation of a ruby version, add some code to the install gems.\r\n* The code should look for a file, say `.default-gems` in the user's home directory. \r\n* Iterate over each line of the file, taking the text on the line and using it as the gem name in a `gem install $gem` command. Make sure to check the exit code and print an appropriate error message if a gem install fails. It may be possible to pass all the gems to `gem install` at once, I'm not familiar with the input `gem install` will accept."},"comment":{"url":"https://api.github.com/repos/asdf-vm/asdf-ruby/issues/comments/324089913","html_url":"https://github.com/asdf-vm/asdf-ruby/issues/31#issuecomment-324089913","issue_url":"https://api.github.com/repos/asdf-vm/asdf-ruby/issues/31","id":324089913,"user":{"login":"breunigs","id":307954,"avatar_url":"https://avatars1.githubusercontent.com/u/307954?v=4","gravatar_id":"","url":"https://api.github.com/users/breunigs","html_url":"https://github.com/breunigs","followers_url":"https://api.github.com/users/breunigs/followers","following_url":"https://api.github.com/users/breunigs/following{/other_user}","gists_url":"https://api.github.com/users/breunigs/gists{/gist_id}","starred_url":"https://api.github.com/users/breunigs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breunigs/subscriptions","organizations_url":"https://api.github.com/users/breunigs/orgs","repos_url":"https://api.github.com/users/breunigs/repos","events_url":"https://api.github.com/users/breunigs/events{/privacy}","received_events_url":"https://api.github.com/users/breunigs/received_events","type":"User","site_admin":false},"created_at":"2017-08-22T17:03:40Z","updated_at":"2017-08-22T17:03:40Z","body":"I think the desired functionality is there – I tested it today and it works as one would expect. Can this be closed?"}}
{"actor":{"display_login":"breunigs"}}