Skip to content

Commit 2061f3a

Browse files
committed
linting
1 parent d08a465 commit 2061f3a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

script/convert

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def gsub_file_content(path, old_content, new_content)
55
path = File.expand_path(path, __dir__)
66
content = File.binread(path)
77
content.gsub!(old_content, new_content)
8-
File.open(path, "wb") { |file| file.write(content) }
8+
File.binwrite(path, content)
99
end
1010

1111
old_config = File.expand_path("../spec/dummy/config/shakapacker.yml", __dir__)
@@ -17,6 +17,7 @@ gsub_file_content("../Gemfile.development_dependencies", 'gem "shakapacker", "8.
1717

1818
gsub_file_content("../spec/dummy/package.json", '"shakapacker": "8.0.0",', '"shakapacker": "6.6.0",')
1919

20-
gsub_file_content("../spec/dummy/config/webpack/commonWebpackConfig.js", /generateWebpackConfig(\(\))?/, 'webpackConfig')
20+
gsub_file_content("../spec/dummy/config/webpack/commonWebpackConfig.js", /generateWebpackConfig(\(\))?/,
21+
"webpackConfig")
2122

22-
gsub_file_content("../spec/dummy/config/webpack/webpack.config.js", /generateWebpackConfig(\(\))?/, 'webpackConfig')
23+
gsub_file_content("../spec/dummy/config/webpack/webpack.config.js", /generateWebpackConfig(\(\))?/, "webpackConfig")

0 commit comments

Comments
 (0)