Skip to content

Commit 745c1f3

Browse files
committed
Allow for different shakapacker versions in convert script
1 parent 02bce87 commit 745c1f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/convert

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ new_config = File.expand_path("../spec/dummy/config/webpacker.yml", __dir__)
1313

1414
File.rename(old_config, new_config)
1515

16-
gsub_file_content("../Gemfile.development_dependencies", 'gem "shakapacker", "8.0.0"', 'gem "shakapacker", "6.6.0"')
16+
gsub_file_content("../Gemfile.development_dependencies", /gem "shakapacker", "[^"]*"/, 'gem "shakapacker", "6.6.0"')
1717

1818
# The below packages don't work on the oldest supported Node version and aren't needed there anyway
1919
gsub_file_content("../package.json", /"knip": "[^"]*",/, "")
2020
gsub_file_content("../package.json", %r{"@arethetypeswrong/cli": "[^"]*",}, "")
2121

22-
gsub_file_content("../spec/dummy/package.json", '"shakapacker": "8.0.0",', '"shakapacker": "6.6.0",')
22+
gsub_file_content("../spec/dummy/package.json", /"shakapacker": "[^"]*",/, '"shakapacker": "6.6.0",')
2323

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

0 commit comments

Comments
 (0)