Ruby through rails part 4: Bundler Dsl

Originally posted on narutosanjiv:
Bundler::Dsl class is defined inside the lib/bundler/dsl.rb. Earlier we have learned how various settings get set like the bundle path and gem path. Now we are going to learn how the Gemfile is parsed and evaluated. Bundler::Dsl.evaluate gets called from Bundler::Definition#build function. module Bundler class Dsl include RubyDsl #RubyDsl present inside lib/bundler/ruby_dsl.rb def…

Generating dynamic QR codes in Rails using Rjb

When I started looking for gems which generate QR code in ruby I found “rqrcode” which generates only HTML code which was not useful to me. I wanted the QR code image so I looked at “qr4r” but here we can not customize the color, background color etc,  so I decided to write my own codeContinue reading “Generating dynamic QR codes in Rails using Rjb”