A bad idea
To build the C-extension, from within the directory containing this project, run:
ruby extconf.rb
This will generate a Makefile, extconf.h, and mkmf.log. Then run
make
This will generate example.bundle (on macOS, example.so on linux).
Once the C-extension has been built, run:
ruby test.rb