This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'roxml' | |
xml = ' | |
<library> | |
<name>Fullerton Public</name> | |
<phoneNumber>000-000-000</phoneNumber> | |
<media> | |
<item> | |
<medium>cassette-tape</medium> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'socket' | |
begin | |
# ssanders: Try to load RSpec based on the LOADPATH, this allows | |
# projects (e.g. Rails) to provide alternate versions via the buildpath | |
require 'spec' | |
rescue LoadError | |
# ssanders: Fallback to loading from the Gem | |
require 'rubygems' |