CountryCodes.rb

A JRuby wrapper for the country-codes library.

Building

  • Install Bundler
    gem install bundler
    
  • Install gem dependencies
    bundle install
    
  • Configure an access token for Github Packages Maven repo:
    GITHUB_USER=<username> GITHUB_TOKEN=<token> envsubst < settings.xml.template > settings.xml
    
  • Install jar dependencies
    bundle exec rake jars:install
    
  • Now you can just build the gem!
    gem build
    

There's also an option to just run bin/setup shell file, which just executes commands listed above (except the last one). Note that $GITHUB_USER and $GITUHB_TOKEN env variables should be set to valid GitHub credentials.