Fix package names

This commit is contained in:
Wilson Lin 2020-07-12 02:01:48 +10:00
parent aad5111d6d
commit d15776e1fa
2 changed files with 3 additions and 7 deletions

View File

@ -155,7 +155,7 @@ minifyHtml.minifyInPlace(fs.readFileSync("source.html"), cfg);
<details>
<summary><strong>Java</strong></summary>
Package: [in.wilsonl.minify_html](https://search.maven.org/artifact/in.wilsonl.minify_html/minify-html)
Package: [in.wilsonl.minifyhtml](https://search.maven.org/artifact/in.wilsonl.minifyhtml/minify-html)
Binding: [JNI](https://github.com/jni-rs/jni-rs)
Platforms: macOS, Linux; Java 7 and higher
@ -165,7 +165,7 @@ Add as a Maven dependency:
```xml
<dependency>
<groupId>in.wilsonl.minify_html</groupId>
<groupId>in.wilsonl.minifyhtml</groupId>
<artifactId>minify-html</artifactId>
<version>0.2.4</version>
</dependency>

View File

@ -87,17 +87,13 @@ for (const f of ['README.md', 'bench/README.md']) {
}
for (const f of ['java/pom.xml', 'README.md']) {
replaceInFile(f, /(<artifactId>minify_html<\/artifactId>\s*<version>)\d+\.\d+\.\d+(<\/version>)/, `$1${NEW_VERSION}$2`);
replaceInFile(f, /(<artifactId>minify-html<\/artifactId>\s*<version>)\d+\.\d+\.\d+(<\/version>)/, `$1${NEW_VERSION}$2`);
}
for (const f of ['nodejs/package.json']) {
replaceInFile(f, /^(\s*"version": )"\d+\.\d+\.\d+",\s*$/m, `$1"${NEW_VERSION}",`);
}
for (const f of ['python/setup.py']) {
replaceInFile(f, /^(\s*version=)"\d+\.\d+\.\d+",\s*$/m, `$1"${NEW_VERSION}",`);
}
for (const f of ['ruby/minify_html.gemspec']) {
replaceInFile(f, /^(\s*spec\.version\s*=\s*)"\d+\.\d+\.\d+"\s*$/m, `$1"${NEW_VERSION}"`);
}