(https://github.com/JulioPapel/minetest-cli)
Here to folow the creation of this gem tutorial in PT
Welcome to minetest-cli gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem.
Put your Ruby code in the commands section of this tutorial:
To experiment with that code, run $ bundle exec bin/minetest-cli
or
$ rake console
for an interactive prompt.
Add this line to any Ruby application's Gemfile:
gem 'minetest-cli'
And then execute:
$ bundle install
Or install it yourself inside de minetest-cli folder as:
$ gem install minetest-cli-0.2.0.gem
We use Jupyter notebooks for the tutorial, (currently only in Portuguese) in the file named tutorial.ipynb
If you do not want to install Jupyter the tutorial is also available in PDF in the file names tutorial.pdf
You can use Java classes in your IRuby notebook.
JRuby version >= 9.0.4.0 cztop gem iruby gem After installation, make sure that your env is set up to use jruby.
$ env ruby -v
If you use RVM, it is enough to switch the current version to jruby.
$ port install libtool autoconf automake autogen
$ brew install pandoc
$ brew cask install basictex
$ gem install ffi-rzmq
$ gem install iruby
If you have already used IRuby with a different version, you need to generate a new kernel:
$ iruby register --force
$ jupyter lab
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Minetest::Cli project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.