top of page
Writer's pictureNishant Upadhyay

Introduction to some Interesting gems!

Updated: May 8, 2019


Ruby Gems
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:



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.



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.



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.



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.



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!




46 views0 comments

Commentaires


bottom of page