netty-io

License

This packages the netty.io Netty jars into a convenient gem for requiring.

require 'netty-io'

Setup

To setup the development environment for building the gem, some dependencies must be installed.

Install asdf

The asdf CLI tool used to manage multiple runtime versions.

git clone https://github.com/asdf-vm/asdf.git "${HOME}/.asdf"
pushd "${HOME}/.asdf"; git fetch origin; popd
source "${HOME}/.asdf/asdf.sh"; source "${HOME}/.asdf/completions/asdf.bash"

Install required runtime software

Download and install the latest version of the Java JDK.

asdf plugin add java
asdf install java openjdk-13.0.2

Download and install the latest version of JRuby.

asdf plugin add ruby
pushd "${HOME}/.asdf/plugins/ruby/ruby-build"; git fetch origin; git pull origin master; popd
asdf list all ruby > /dev/null
asdf install ruby jruby-9.3.2.0

Install required gems

Use bundler to install the required gem dependencies.

bundle install

Building

To clean the project, run unit tests, build the gem file, and verify that the built artifact works, execute:

bundle exec rake clobber package spec gem verify

Publish

To publish the gem, execute:

bundle exec rake publish