There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...

ruby.about.com

The flip-flop operator is a hotly contested feature of Ruby. It's still struggling to find an idiomatic use...

makandra dev

We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv

Microsoft Exchange service administrators can enable Exchange Web Services (EWS) which is a rather accessible XML API for interacting with...

ozmm.org

require 'net/http' module Cheat extend self # the magic ingredient def host @host ||= 'http://cheat.errtheblog.com/' end def http @http ||= Net...

makandra dev
feedjira.com

Great gem to consume RSS feeds. I was missing some features on Ruby's RSS::Parser that I found in...

You know each_with_index from arrays: ['hello', 'universe'].each_with_index do |value, index| puts "#{index}: #{value}" end

So you have placed a breakpoint somewhere and now want to dig around, but not even inspecting variables is working...

makandra dev

Spreewald 1.1.0 drops the be_true and be_false matchers in order to be RSpec 3 and Ruby 2 compatible...

teohm.com

The attached post shows some alternative ways to define Strings in Ruby using the percent notation. This can be useful...

This actually works: class Klass def initialize `hi world` end def `(message) puts "Called with backticks: #{message}" end end

makandra dev
github.com

The debugger gem does not seem to be properly working on Ruby 2. Use byebug instead! Byebug is a simple...

If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with...

This card describes how to pass an array with multiple element to a JavaScript function, so that the first array...

In whenever you can schedule Ruby code directly like so: every 1.day, :at => '4:30 am' do runner "MyModel.task_to...

github.com

Provides a value container that guarantees atomic updates to this value in a multi-threaded Ruby program. Originally linked to...

Since Ruby 2.1, defining a method returns its name as a Symbol: def foo() end # => :foo define_method :foo do...

chriszetter.com

"Keyword arguments" allow naming method arguments (optionally setting a default value). By using the double-splat operator, you can collect...

makandra dev
github.com

Now supports Rails 4.1 and Ruby 2.1.

makandra dev

assignable_values now supports Rails 4.1 and Ruby 2.1.0.

Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it...

When you tell rbenv to install a Ruby it does not know about, you will get an error message.

makandra dev
github.com

EdgeRider 0.3.0 adds support for Rails 4.1 and Ruby 2.1. It forward-ports ActiveRecord::Base.scoped to Rails 4.1.

When you have a string containing umlauts which don't behave as expected (are not matched with a regexp, can...