Introduction to some Interesting gems!

Updated: May 8, 2019


PC: Google Images

Hey Guys, Reading an open source project code improve your coding capabilities. It enhances your technical knowledge and code vocabulary. You may found some new coding design patterns as well.


Today I am going to share some interesting gems which I found in that project. I have also created a demo app using some of those gems.


Here is the list of those gems:


1. actionmailer_inline_css :


Gmail doesn’t support <style> or <link> tags for HTML emails. Other webmail clients also have problems with <link> tags. This means that CSS must be inlined on each element, otherwise the email will not be displayed correctly in every client.

Inlining CSS is a pain to do by hand, and that’s where the premailer gem comes into picture.

This actionmailer_inline_css gem is a tiny integration between ActionMailer and premailer.


2. decent_exposure :


part, to the fact that they expose their instance variables directly to their views. This means that your instance variables are your interface… and that you’ve broken encapsulation.

decent_exposure makes it easy to define named methods that are made available to your views and which memoize the resultant values. It also tucks away the details of the common fetching, initialising and updating of resources and their parameters.


I have created a demo app to understand the use of this gem. Please refer my demo for more brief introduction.


3. Htmlentities :


HTMLEntities is a simple library to facilitate encoding and decoding of named (&yacute; and so on) or numerical (&#123;or &#x12a;) entities in HTML and XHTML documents.


4. Hipchat :


HipChat is a group and private chat, file sharing and integration application. Here is the HipChat HTTP API Wrapper in Ruby with Capistrano hooks. You can find API documentation for HipChat here.


5. Flowdock :


Flowdock is a team collaboration app for desktop, mobile and web. Here is the Ruby gem for Flowdock.  You can refer API for Flowdock here.


6. Quiet_assets :


Most of the time while debugging in console we get frustrated with unnecessary logging statements of assets. This gem helps to mute assets pipeline log messages. Quite useful!


I strongly recommend to try these gems in your application and make your life easier!


I will keep sharing few more interesting gems with you guys! Keep following and subscribe to me if you want to learn more about Ruby!




© 2019 by Ruby on Rails Learnings 

  • Facebook
  • Grey Twitter Icon
Looking for treasure of Ruby articles? Subscribe here and get best of Ruby!