Quantcast
Channel: Ruby – Ben Gribaudo
Browsing all 5 articles
Browse latest View live

Rake Package Task Fails with Status 127 on Windows

The other day, I tried running a Rake Package task on a Windows system. Rake aborted with “Command failed with status (127): [zip -r Module.zip Module…]“. What could be the problem? Status code 127 is...

View Article



Ruby: Case Testing Against Arrays of Values

Did you know that a when clause in a Ruby case statement can test against each item in an array? If any item in the array matches the case statement’s comparison (target) value, the when clause will...

View Article

Image may be NSFW.
Clik here to view.

Let It Quack!

An entire day passed. The repugnant lines sat festering. Finally, their odious stench wafted strong enough to give me a start. What had I done?! The situation started simply enough. I realized several...

View Article

RSpec: be true & be_true Are Different!

RSpec’s be true and be_true look deceptively similar. In fact, their naming suggests that they might be synonyms for the same assertion. Can the two clauses be used interchangeably to produce the same...

View Article

Quick Tip: Setting Variables Inside Array & Hash Literals

Did you know that you can assign variables inside Ruby’s array and hash literals? While the values used inside square bracket array literals are typically hard-coded, provided by a variable, computed...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images