Why don’t you try out some of the Ruby Gems mentioned below, built by developers like you and me, and review them? Maybe there are some real ‘hidden’ gems out there, wanting to be exposed!
ascii-data-tools developed by Jake Benilov. In his own words – “It provides a suite of tools for identifying, reading, enriching and editing ASCII data records. Such records are commonly used for data transfer within the banking (e.g. transfer statements between banks) and telecommunications sectors (e.g. call detail records).”
The subject matter may be quite dry, but for me this gem has been a training dojo of sorts and hence may be of interest to you. I’ve tried to do several things with the development of the code:
- I’ve polished the code (some parts several times) in order to learn how to follow Uncle Bob’s clean code concepts and good OO principles (“tell, don’t ask”, etc)
- I’ve developed it using acceptance-test driven (with cucumber) and test-driven (with rspec). I’ve tried to apply Specification by Example ideas to push the tests to the status of living documentation.
- I’ve tried to utilize Rubyisms (lots of composition with mixins, some meta-programming, internal DSLs) to maximise code clarity, simplicity, extensibility and testability.
constructable developed by Manuel Korfmann. In his own words – “constructable is a macro, kinda similar in spirit to attr_reader and attr_accessor, that makes the new method accept a hash, kinda like the way ‘create’ does on ActiveRecord models.”
copyrb developed by Milan Dobrota. In his own words – “I have written a quick gem that allows you to copy and paste Ruby objects across terminals. This gem was created primarily to simplify the process of copying objects between different Rails environments for people who spend a lot of time in the Rails console. For more details.”
green_shoes developed by Satoshi Asakawa. In his own words – “green_shoes is a Ruby domain specific language for beautiful Desktop Applications. The green_shoes dsl is so simple, even your pointy haired boss can understand it. The green_shoes project is based on _why-the-lucky-stiff’s Shoes, except for the following:
- green_shoes source code is all Ruby, so even you can contribute.
- green_shoes takes the Ruby DSL block-style approach, so all you have to do is write what you know: Ruby.
- green_shoes is a gem, so you can simply install with this command: gem install green_shoes“
ip-world-map developed by Rene Scheibe. In his own words – “ip-world-map can be used to visualize web access logfiles (Apache format) on a world map. It performs geo-location resolution on the IPs and can generate fixed images, animated images or even videos.”
methodfinder developed by Michael Kohl. In his own words – “This isn’t the first Ruby port of Smalltalk’s Method Finder, but I couldn’t find the old one and so decided to write one myself for the benefit of the RubyLearning.org students. After being mentioned on the Ruby5 podcast, the project really caught on and I got some very good feedback as well as feature suggestions and patches. The main purpose of the library is helping new Rubyists find methods they didn’t know about. There are various usage examples in the README.”
omelettes developed by Mark Simoneau. In his own words – “omelettes is a low-to-no configuration database obfuscation gem for ActiveRecord that allows you to remove sensitive data from the database and replace it with meaningless words that are the same length. It also integrates with Faker automatically and allows for full configuration in a single file.”
secretsharing developed by Alexander Klink. In his own words – “It is not on GitHub, but I’m hosting the git repository myself. Cryptographic secret sharing is one of the lesser known cryptographic techniques. I’ve implemented the most prominent version, which was invented by Adi Shamir (the »S« in RSA) and can be used to share a secret (such as a password) between a number of people (let’s call that n) and only recover it if a certain number (k <= n) come together and combine their secret shares. Interestingly enough, if less than k people combine their shares, they learn nothing at all (in an information-theoretic understanding of »nothing«).”
sequel-jdbc-hxtt-adapter developed by Colin Casey. In his own words – “I had to do a lot of work with MS Access databases at my previous job and I found that the options for interacting with these databases programatically on the Windows platform left a lot to be desired. JRuby was beginning to make Ruby development on Windows a lot less painful so, using that interpreter and a pure JDBC driver, I created a Sequel adapter for working with MS Access files.”
standalone-migrations developed by Todd Huss. In his own words – “standalone-migrations allows you to easily use Rails migrations in non-Rails and non-Ruby projects. My company, Two Bit Labs, develops iOS and Android apps for companies looking to go mobile and we usually use Rails on the server side. However, some of our clients use other server side platforms and we noticed that often our non-Rails clients struggled to effectively version and manage their database schema. So in 2008 we created standalone-migrations so non-Rails shops can enjoy all the database migration goodness that Rails offers. It’s been great to see standalone-migrations grow over the years with an active community!”
I’ll be updating this page from time to time. If you have written a Ruby Gem and want to showcase it here, please email me at satish [dot] talim [at] gmail.com. If you know of some real useful, ‘hidden’ Ruby Gems, please let us know by commenting on this blog post. Thank you for your time and help.