Mention Maven and RubyGems in README

This commit is contained in:
Wilson Lin 2020-01-20 14:42:23 +11:00
parent 8b825e8fd8
commit ac6e04185f
2 changed files with 12 additions and 6 deletions

View File

@ -99,12 +99,18 @@ hyperbuild is available via [JNI](https://github.com/jni-rs/jni-rs), and support
##### Get
Download the [JAR](https://wilsonl.in/hyperbuild/bin/0.0.28.jar) file.
Add as a Maven dependency:
```xml
<dependency>
<groupId>in.wilsonl.hyperbuild</groupId>
<artifactId>hyperbuild</artifactId>
<version>0.0.28</version>
</dependency>
```
##### Use
Make sure to add the JAR file to the class path.
```java
import in.wilsonl.hyperbuild.Hyperbuild;
@ -143,11 +149,11 @@ minified = hyperbuild.minify("<p> Hello, world! </p>")
<details>
<summary><strong>Ruby</strong></summary>
hyperbuild is available as a [native module](https://github.com/danielpclark/rutie) for macOS and Linux, and supports Ruby versions 2.5 and higher.
hyperbuild is published on RubyGems, available as a [native module](https://github.com/danielpclark/rutie) for macOS and Linux, and supports Ruby versions 2.5 and higher.
##### Get
Download and install the [gem](https://wilsonl.in/hyperbuild/bin/0.0.28.gem).
Add the library as a dependency to `Gemfile` or `*.gemspec`.
##### Use

View File

@ -64,7 +64,7 @@ for (const f of ["ruby/hyperbuild.gemspec"]) {
replaceInFile(f, /^(\s*spec\.version\s*=\s*)"\d+\.\d+\.\d+"\s*$/m, `$1"${NEW_VERSION}"`);
}
for (const f of ["java/pom.xml"]) {
for (const f of ["java/pom.xml", "README.md"]) {
replaceInFile(f, /(<artifactId>hyperbuild<\/artifactId>\s*<version>)\d+\.\d+\.\d+(<\/version>)/, `$1${NEW_VERSION}$2`);
}