Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Jun 28, 2024
1 parent d08a465 commit 2061f3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions script/convert
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def gsub_file_content(path, old_content, new_content)
path = File.expand_path(path, __dir__)
content = File.binread(path)
content.gsub!(old_content, new_content)
File.open(path, "wb") { |file| file.write(content) }
File.binwrite(path, content)
end

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

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

gsub_file_content("../spec/dummy/config/webpack/commonWebpackConfig.js", /generateWebpackConfig(\(\))?/, 'webpackConfig')
gsub_file_content("../spec/dummy/config/webpack/commonWebpackConfig.js", /generateWebpackConfig(\(\))?/,
"webpackConfig")

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

0 comments on commit 2061f3a

Please sign in to comment.