diff --git a/CHANGELOG.md b/CHANGELOG.md index 4731ff6..80e5843 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # Next +- Fix [#1652](https://github.com/Glavin001/atom-beautify/issues/1652) and [#1653](https://github.com/Glavin001/atom-beautify/issues/1653). Add `.rb` to temp files passed in to the `rubocop` executable so they are not excluded. - ... # v0.29.26 (2017-05-28) diff --git a/src/beautifiers/rubocop.coffee b/src/beautifiers/rubocop.coffee index 8a4d366..deafffa 100644 --- a/src/beautifiers/rubocop.coffee +++ b/src/beautifiers/rubocop.coffee @@ -51,7 +51,7 @@ module.exports = class Rubocop extends Beautifier @run(rubocopPath, [ "--auto-correct" "--config", configFile - tempFile = @tempFile("temp", text) + tempFile = @tempFile("temp", text, '.rb') ], {ignoreReturnCode: true}) .then(=> @readFile(tempFile) @@ -60,7 +60,7 @@ module.exports = class Rubocop extends Beautifier @run("rubocop", [ "--auto-correct" "--config", configFile - tempFile = @tempFile("temp", text) + tempFile = @tempFile("temp", text, '.rb') ], {ignoreReturnCode: true}) .then(=> @readFile(tempFile)