I made my first Ruby Gem! (ruby-filemagic re-implemented with FFI)
Took the old ruby-filemagic gem , last touched years ago, and made it easier to install.
What did I learn?
- How use ruby-ffi to make calls to native methods easy-cheesy
- How to make a gem by using the jeweler gem . This was also easy-cheesy.
What could be better?
- More tests
- Try it out in JRuby as FFI is supposed to make this stuff JRuby compatible.
- Feedback!
Have a look... here .
Update: darn, its not working. will fix and update
Update: works now