Ruby through rails part 6: Bundler Dsl

Earlier we seen detailed working of ‘gem'(present in Gemfile) command. For now, we are now going to introspect the working of ‘gemspec’ which we mostly used during building our rubygems. As i have mentioned in earlier serials that all command, which we used in Gemfile, found in the bundler file(lib/bundler/dsl.rb) Let see how ‘gemsepec’ is… More Ruby through rails part 6: Bundler Dsl

Comparative study of looping construct in ruby, dlang, rust, golang.

We have been learning & working on various programmings languages. These different programmings language help us to learn various programming paradigm & constructs.  There are number of new programming language such golang, rust, dlang. We are going to see performance of simple loop in golang, rust, dlang, ruby. We are going iterate a 100 million times… More Comparative study of looping construct in ruby, dlang, rust, golang.

Ruby through rails part 4: Bundler Dsl

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. ‘evaluate’ method is singleton method on class Dsl and the parameters passed to it are… More Ruby through rails part 4: Bundler Dsl