{"action":"created","issue":{"url":"https://api.github.com/repos/tobiassvn/bundler.el/issues/19","repository_url":"https://api.github.com/repos/tobiassvn/bundler.el","labels_url":"https://api.github.com/repos/tobiassvn/bundler.el/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/tobiassvn/bundler.el/issues/19/comments","events_url":"https://api.github.com/repos/tobiassvn/bundler.el/issues/19/events","html_url":"https://github.com/tobiassvn/bundler.el/issues/19","id":143223430,"number":19,"title":"Set `default-directory` to the project's root","user":{"login":"asok","id":120457,"avatar_url":"https://avatars.githubusercontent.com/u/120457?v=3","gravatar_id":"","url":"https://api.github.com/users/asok","html_url":"https://github.com/asok","followers_url":"https://api.github.com/users/asok/followers","following_url":"https://api.github.com/users/asok/following{/other_user}","gists_url":"https://api.github.com/users/asok/gists{/gist_id}","starred_url":"https://api.github.com/users/asok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asok/subscriptions","organizations_url":"https://api.github.com/users/asok/orgs","repos_url":"https://api.github.com/users/asok/repos","events_url":"https://api.github.com/users/asok/events{/privacy}","received_events_url":"https://api.github.com/users/asok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-24T11:35:50Z","updated_at":"2016-03-24T11:37:19Z","closed_at":null,"body":"Have you ever thought about running the bundler from a project's root? Maybe by using `locate-dominating-file` or projectile.\r\nI'm asking because now I work on a project which has something like that in Gemfile:\r\n```rb\r\nrequire './lib/gemfile_helpers'\r\n```\r\nAnd I'm forces to run bundle from the root dir of the project."},"comment":{"url":"https://api.github.com/repos/tobiassvn/bundler.el/issues/comments/200799631","html_url":"https://github.com/tobiassvn/bundler.el/issues/19#issuecomment-200799631","issue_url":"https://api.github.com/repos/tobiassvn/bundler.el/issues/19","id":200799631,"user":{"login":"asok","id":120457,"avatar_url":"https://avatars.githubusercontent.com/u/120457?v=3","gravatar_id":"","url":"https://api.github.com/users/asok","html_url":"https://github.com/asok","followers_url":"https://api.github.com/users/asok/followers","following_url":"https://api.github.com/users/asok/following{/other_user}","gists_url":"https://api.github.com/users/asok/gists{/gist_id}","starred_url":"https://api.github.com/users/asok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asok/subscriptions","organizations_url":"https://api.github.com/users/asok/orgs","repos_url":"https://api.github.com/users/asok/repos","events_url":"https://api.github.com/users/asok/events{/privacy}","received_events_url":"https://api.github.com/users/asok/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T11:37:19Z","updated_at":"2016-03-24T11:37:19Z","body":"As a workaround I did something like this:\r\n```el\r\n  (defun asok/bundle--around (fun &rest args)\r\n    \"Run FUN from the project root.\"\r\n    (projectile-with-default-dir (projectile-project-root)\r\n      (apply fun args)))\r\n\r\n  (advice-add 'bundle-command :around #'asok/bundle--around)\r\n```\r\nBut I think it could be useful for bundler.el to do this by its own."}}