background preloader

Gems (lib)

Facebook Twitter

AWS Developer Blog - Ruby. File: README — AWS SDK for Ruby. Stubbing AWS Responses - AWS Ruby Blog. Right_aws (3.0.4) README. Introduction to Rails Screencast. Isn't it funny how most "introduction to Ruby on Rails" screencasts are overly simplistic, and rely on generators like scaffolding?

Introduction to Rails Screencast

The teacher typically follows up the tutorial by stating that most Rails developer don't use scaffolding generators. Well that's not much help then! I'd like to give you the tutorial I wish I had. Along the way, we'll also rely heavily on test-driven development to build a simple app. Create models and generatorsUse test-driven development to plan and test an application’s featuresWork with ActiveRecordAutotest with Guard Use Rspec and Capybara to simulate the user.Create partialsTake advantage of Flash notices…and plenty more If you watched the entire screencast, I hope you enjoyed it! [mocha-developer] A quick guide to Mocha. README - Mocha 0.13.3. Description A Ruby library for mocking and stubbing.A unified, simple and readable syntax for both full & partial mocking.Built-in support for MiniTest and Test::Unit.Supported by many other test frameworks.

README - Mocha 0.13.3

Installation Gem Install the latest version of the gem with the following command... $ gem install mocha Note: If you are intending to use Mocha with Test::Unit or MiniTest, you should only setup Mocha after loading the relevant test library... Mocha. RubyGems Manuals. Frequently Asked Questions. Command Reference - RubyGems Guides. What each gem command does, and how to use it.

Command Reference - RubyGems Guides

This reference was automatically generated from RubyGems version 2.5.1. gem build Build a gem from a gemspec Usage gem build GEMSPEC_FILE [options] Options: Gem Command Reference. Cucumber Introduction (comprehensive) Or: How I Learned to Stop Worrying and Love Testing Start Behaving Introduction Cucumber is a tool that implements a Behaviour Driven Design (BDD) workflow.

Cucumber Introduction (comprehensive)

This document deals principally with initial set up and first use of the Cucumber-Rails and Cucumber Rubygems. It takes as its background the Ruby on Rails (RoR) web application framework. Detailed discussion of Behaviour Driven (BDD), Test Driven (TDD), and Panic Driven Development (SNAFU aka Cowboy Coding) can be found elsewhere. Cucumber/aruba step deffinitions. Rb is YAML for Ruby. At the YamlForRuby site Welcome to the Yaml Cookbook for Ruby.

rb is YAML for Ruby

This version of the Yaml Cookbook focuses on the Ruby implementation of Yaml by comparing Yaml documents with their Ruby counterparts. YAML(tm) is a readable text format for data structures. As you'll see below, YAML can handle many common data types and structures. And what YAML can't handle natively can be supported through flexible type families. RubyBindings - selenium - Ruby bindings - Browser automation framework. The Ruby bindings for Selenium/WebDriver are available as the selenium-webdriver gem.

RubyBindings - selenium - Ruby bindings - Browser automation framework

The web page explains how to install the selenium-webdriver gem. On Mac OSX and linux you may need to prefix the rest of the command with the sudo command if the installation fails because of security restrictions on your computer. There are many other Selenium gems out there, but this is the only official, maintained gem. If you're looking for a slightly higher level API built on the same technology, you may want to check out watir-webdriver or capybara. Savon: Heavy metal SOAP client. Do YOU know Resque? Do YOU know Resque?

Do YOU know Resque?

This guest post is by Dave Hoover, who authored the book Apprenticeship Patterns: Guidance for the Aspiring Software Craftsman for O’Reilly, instigated the Software Craftsmanship North America conference, and is the Chief Craftsman at Obtiva. Dave began teaching himself to program in 2000, back when he was a family therapist. Dave lives near Chicago with his wife and three children. In his spare time, Dave competes in endurance sports. Web developers can sometimes forget the importance of doing as little work as possible during the HTTP request-response life-cycle. One nice thing about Resque is that it’s not dependant on Rails or any web framework. If I named this program idea_analyzer.rb and it was in my current working directory, I could run it like this: Stream Parsing with REXML. Hi (again, sort of) :) I am still on my quest to write a program that parses a large XML file.

Stream Parsing with REXML

After having tried to do it in tree mode, I had to realize that the performance was simply abysmal. So back to the drawing board. But, and here is the thing...I could find a good straight-forward tutorial on how to write a stream parser using REXML. The official tutorial is pretty much mute on that part and the only other example I found (or rather was pointed to - was way too complex for someone like me who is still pretty much a beginner in ruby.

So, what I am looking for is either a brief description of how to write an event driven parser or else a link to a good and simple tutorial. Dusty (Guest) on 2008-01-12 19:56 I have found that hpricot works very well with large xml files.