Each release ships two gems:
| Gem | Platform | Parser | How it is built |
|---|---|---|---|
rbs-X.Y.Z.gem | ruby (MRI) | C extension | rake release (re-builds it) |
rbs-X.Y.Z-java.gem | java (JRuby) | WebAssembly (lib/rbs/wasm) | Docker image, pushed manually |
The -java gem contains no native code — just rbs_parser.wasm plus the Chicory/ASM jars — so it can be built once in any environment and runs on every JRuby.
rbs gem on RubyGems (gem signin). If your account has MFA enabled, gem push / rake release will prompt for an OTP.-java gem. The WASI SDK is baked into the image, so there is nothing to install on the host.ruby gemOnce the version is bumped and committed, run on CRuby:
$ bundle exec rake release
This re-builds the ruby-platform gem and then:
vX.Y.Z,origin,release:note, which opens a GitHub draft release (with --prerelease for *.pre.* versions) and prints the remaining manual steps.java gemThe java gem is not built by rake release, so build and push it manually:
# Build from the committed state (the gemspec's file list comes from `git ls-files`). $ docker build -f Dockerfile.jruby -t rbs-jruby . # Assemble rbs_parser.wasm + jars and build the -java gem into ./pkg on the host. $ docker run --rm -e RBS_PLATFORM=java -v "$PWD/pkg:/out" rbs-jruby \ gem build rbs.gemspec -o /out/rbs-X.Y.Z-java.gem $ gem push pkg/rbs-X.Y.Z-java.gem
Optionally confirm it installs and runs on JRuby before pushing:
$ docker run --rm -v "$PWD/pkg:/pkg" -w /tmp rbs-jruby bash -c \ 'gem install /pkg/rbs-X.Y.Z-java.gem && ruby -e "require %q{rbs}; puts [RUBY_ENGINE, RBS::VERSION].join(%q{ })"'
X.Y.Z.pre.N) are only installed with gem install rbs --pre; a plain gem install rbs is unaffected. On JRuby, gem install rbs [--pre] resolves to the -java gem automatically.wasm and jruby CI workflows. Keep them in sync when bumping.