{"action":"created","issue":{"url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/97","labels_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/97/comments","events_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/97/events","html_url":"https://github.com/browserify-rails/browserify-rails/pull/97","id":93038758,"number":97,"title":"Correct cachefile command line option","user":{"login":"posgarou","id":8039360,"avatar_url":"https://avatars.githubusercontent.com/u/8039360?v=3","gravatar_id":"","url":"https://api.github.com/users/posgarou","html_url":"https://github.com/posgarou","followers_url":"https://api.github.com/users/posgarou/followers","following_url":"https://api.github.com/users/posgarou/following{/other_user}","gists_url":"https://api.github.com/users/posgarou/gists{/gist_id}","starred_url":"https://api.github.com/users/posgarou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posgarou/subscriptions","organizations_url":"https://api.github.com/users/posgarou/orgs","repos_url":"https://api.github.com/users/posgarou/repos","events_url":"https://api.github.com/users/posgarou/events{/privacy}","received_events_url":"https://api.github.com/users/posgarou/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-04T19:02:55Z","updated_at":"2015-07-04T19:53:10Z","closed_at":"2015-07-04T19:51:47Z","pull_request":{"url":"https://api.github.com/repos/browserify-rails/browserify-rails/pulls/97","html_url":"https://github.com/browserify-rails/browserify-rails/pull/97","diff_url":"https://github.com/browserify-rails/browserify-rails/pull/97.diff","patch_url":"https://github.com/browserify-rails/browserify-rails/pull/97.patch"},"body":"With the combination of `Shellwords.escape` and `#inspect`, the generated commandline cachefile path was `--cachefile=\\\"{Rails.root}/tmp/cache/browserify-rails/browserifyinc-cache.json\\\"`.  With the path in this escaped format, browserify-incremental silently refused to output a cachefile (as you can see by running `ls tmp/cache/browserify-rails` from your project root directory).  This nullified any benefit of using browserify-incremental over vanilla browserify.\r\n\r\nRemoving inspect changes the output to  `--cachefile={Rails.root}/tmp/cache/browserify-rails/browserifyinc-cache.json`.  With this change, browserify-incremental stores the cachefile as expected (as you can see, again, by running `ls tmp/cache/browserify-rails` from the project root directory).\r\n\r\nThis should help with some of the concerns in #43."},"comment":{"url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/comments/118545930","html_url":"https://github.com/browserify-rails/browserify-rails/pull/97#issuecomment-118545930","issue_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/97","id":118545930,"user":{"login":"posgarou","id":8039360,"avatar_url":"https://avatars.githubusercontent.com/u/8039360?v=3","gravatar_id":"","url":"https://api.github.com/users/posgarou","html_url":"https://github.com/posgarou","followers_url":"https://api.github.com/users/posgarou/followers","following_url":"https://api.github.com/users/posgarou/following{/other_user}","gists_url":"https://api.github.com/users/posgarou/gists{/gist_id}","starred_url":"https://api.github.com/users/posgarou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posgarou/subscriptions","organizations_url":"https://api.github.com/users/posgarou/orgs","repos_url":"https://api.github.com/users/posgarou/repos","events_url":"https://api.github.com/users/posgarou/events{/privacy}","received_events_url":"https://api.github.com/users/posgarou/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T19:53:10Z","updated_at":"2015-07-04T19:53:10Z","body":"@cymen Wow, that was quick!  Thanks!"}}