{"action":"created","issue":{"url":"https://api.github.com/repos/embulk/embulk-input-command/issues/6","repository_url":"https://api.github.com/repos/embulk/embulk-input-command","labels_url":"https://api.github.com/repos/embulk/embulk-input-command/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/embulk/embulk-input-command/issues/6/comments","events_url":"https://api.github.com/repos/embulk/embulk-input-command/issues/6/events","html_url":"https://github.com/embulk/embulk-input-command/issues/6","id":213491681,"number":6,"title":"drop GEM_HOME env","user":{"login":"y-ken","id":1734549,"avatar_url":"https://avatars1.githubusercontent.com/u/1734549?v=4","gravatar_id":"","url":"https://api.github.com/users/y-ken","html_url":"https://github.com/y-ken","followers_url":"https://api.github.com/users/y-ken/followers","following_url":"https://api.github.com/users/y-ken/following{/other_user}","gists_url":"https://api.github.com/users/y-ken/gists{/gist_id}","starred_url":"https://api.github.com/users/y-ken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-ken/subscriptions","organizations_url":"https://api.github.com/users/y-ken/orgs","repos_url":"https://api.github.com/users/y-ken/repos","events_url":"https://api.github.com/users/y-ken/events{/privacy}","received_events_url":"https://api.github.com/users/y-ken/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-03-11T01:03:39Z","updated_at":"2017-11-29T07:27:16Z","closed_at":"2017-03-28T07:04:29Z","author_association":"NONE","body":"To execute cruby from this plugin, `GEM_HOME` env are blocked to load gems in cruby.\r\nIn other word, This plugin keeps jruby GEM_HOME but it is unnecessary in usual case.\r\n\r\n`GEM_HOME=/Users/y-ken/.embulk/jruby/2.3.0`\r\n\r\n### how to find GEM_HOME env\r\n\r\n```bash:how_to_repeat\r\n$ cat test.yml\r\nin:\r\n  type: command\r\n  command: env\r\n  parser:\r\n   type: none\r\n\r\n$ embulk preview -G test.yml\r\n```\r\n\r\n![_2017_03_11_9_46](https://cloud.githubusercontent.com/assets/1734549/23818595/ed17eb2c-063f-11e7-8b50-e300732a2fec.png)\r\n\r\n## workarounds\r\n\r\nFor now, I have override GEM_HOME env to execute cruby\r\n\r\n```\r\nin:\r\n  type: command\r\n  command: GEM_HOME=~/.rbenv/versions/2.1.10/lib/ruby/gems/2.1.0 ruby collect_foo_bar.rb\r\n  parser:\r\n   type: jsonl\r\n   columns:\r\n    ...snip...\r\n```\r\n\r\n\r\n\r\ncf. http://blog.shibayu36.org/entry/2014/01/15/230015"},"comment":{"url":"https://api.github.com/repos/embulk/embulk-input-command/issues/comments/347775439","html_url":"https://github.com/embulk/embulk-input-command/issues/6#issuecomment-347775439","issue_url":"https://api.github.com/repos/embulk/embulk-input-command/issues/6","id":347775439,"user":{"login":"dmikurube","id":723722,"avatar_url":"https://avatars2.githubusercontent.com/u/723722?v=4","gravatar_id":"","url":"https://api.github.com/users/dmikurube","html_url":"https://github.com/dmikurube","followers_url":"https://api.github.com/users/dmikurube/followers","following_url":"https://api.github.com/users/dmikurube/following{/other_user}","gists_url":"https://api.github.com/users/dmikurube/gists{/gist_id}","starred_url":"https://api.github.com/users/dmikurube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmikurube/subscriptions","organizations_url":"https://api.github.com/users/dmikurube/orgs","repos_url":"https://api.github.com/users/dmikurube/repos","events_url":"https://api.github.com/users/dmikurube/events{/privacy}","received_events_url":"https://api.github.com/users/dmikurube/received_events","type":"User","site_admin":false},"created_at":"2017-11-29T07:27:16Z","updated_at":"2017-11-29T07:27:16Z","author_association":"NONE","body":"@y-ken Jfyi, Embulk does not touch any Gem-related environment variables through its runtime since v0.8.32. If you still have this kind of issues, please try v0.8.32+."}}
{"actor":{"display_login":"dmikurube"}}