There are many different methods that allow mapping an Array to a Hash in Ruby. Array#to_h with a...

makandra dev
robots.thoughtbot.com

Getting started with Ruby extensions in C.

makandra dev

If you want to rename a key of a Ruby hash, this could help you out. Just put it into...

github.com

delocalize provides localized date/time and number parsing functionality for Rails.

First of all: You could just use RVM which would make the pain go away. If for some reason you...

github.com

You can use the whatlanguage gem to detect the language of a Ruby string. Note that it also has not...

makandra dev

There are two distinct ways of commenting Haml markup: HTML and Ruby. HTML comments This will create an HTML comment...

makandra dev

This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...

Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...

When working with times and dates in Rails applications, you need to deal with the following problem: In Rails, Time...

makandra dev
rjb.rubyforge.org

rjb is a bridge software. It connects Ruby and Java.

regular-expressions.info

You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...

gnuu.org

YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just...

makandra dev
ruportbook.com

Ruport’s acts_as_reportable module provides support for using ActiveRecord for data collection. You can use it to get...

github.com

home_run is an implementation of ruby’s Date/DateTime classes in C, with much better performance (20-200x) than...

github.com

A fake filesystem. Use it in your tests.

github.com

Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...

makandra dev

To test concurrent code, you will need to run multiple threads. Unfortunately, when you use blocking system calls (e.g. locks...

When you need to patch an existing gem, one way is to "vendor" the gem by copying it into the...

To run a single test file: rake test:units TEST=test/unit/post_test.rb rake test:functionals TEST=test/functional/posts_controller_test.rb rake test:integration TEST...

makandra dev

Basic configuration Please keep this config simple. It should be a starting point for new developers learning Git. [user]

makandra dev
rdoc.info

Ruby Rails Any gem

makandra dev
github.com

Cerberus is a lightweight and easy-to-use Continuous Builder software for Ruby. It could be run periodically from a...