From e710c1a42976881982e628d927e1d3a21866901c Mon Sep 17 00:00:00 2001
From: Maximo Mussini <maximomussini@gmail.com>
Date: Wed, 6 Nov 2024 10:15:19 -0300
Subject: [PATCH] chore: update release scripts to follow new style

---
 scripts/changelog.cjs | 2 +-
 scripts/release.cjs   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/changelog.cjs b/scripts/changelog.cjs
index 41dd9325..2ca78f10 100755
--- a/scripts/changelog.cjs
+++ b/scripts/changelog.cjs
@@ -30,7 +30,7 @@ const resolve = paths => path.resolve(__dirname, `../${name}/${paths}`)
  * @param {string} name
  */
 function writePackageJson (name) {
-  const versionRegex = /VERSION = '([\d.]+(?:[-.]\w+)?)'/
+  const versionRegex = /VERSION = "([\d.]+(?:[-.]\w+)?)"/
   const versionFile = fs.readFileSync(resolve(`lib/${name}/version.rb`), 'utf-8')
   const versionCaptures = versionFile.match(versionRegex)
   const version = versionCaptures && versionCaptures[1]
diff --git a/scripts/release.cjs b/scripts/release.cjs
index d952cff6..91dea1d8 100755
--- a/scripts/release.cjs
+++ b/scripts/release.cjs
@@ -83,7 +83,7 @@ function resolve (paths) {
 }
 
 function rubyPackage () {
-  const versionRegex = /VERSION = '([\d.]+(?:[-.]\w+)?)'/
+  const versionRegex = /VERSION = "([\d.]+(?:[-.]\w+)?)"/
   const path = resolve(`lib/${name}/version.rb`)
   const content = fs.readFileSync(path, 'utf-8')
   const versionCaptures = content.match(versionRegex)
@@ -98,7 +98,7 @@ function rubyPackage () {
     content,
     version,
     updateVersion (version) {
-      const newContent = content.replace(versionRegex, `VERSION = '${version}'`)
+      const newContent = content.replace(versionRegex, `VERSION = "${version}"`)
       fs.writeFileSync(path, `${newContent}`)
     },
   }