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
{"EDT"=>"America/New_York", "GMT"=>"GMT", "AST"=>"America/Halifax", "ICT"=>"Asia/Bangkok", "PET"=>"America/Lima", "CLST"=>"America/Santiago", "KST"=>"Asia/Seoul", "PST"=>"America/Los_Angeles", "AKDT"=>"America/Juneau", "CDT"=>"America/Chicago", "AKST"=>"America/Juneau", "BRST"=>"America/Sao_Paulo", "CEST"=>"Europe/Paris", "WIT"=>"Asia/Jakarta", "EAT"=>"Africa/Addis_Ababa", "HKT"=>"Asia/Hong_Kong", "IST"=>"Asia/Calcutta", "MDT"=>"America/Denver", "ADT"=>"America/Halifax", "IRST"=>"Asia/Tehran", "BST"=>"Europe/London", "ART"=>"America/Argentina/Buenos_Aires", "CAT"=>"Africa/Harare", "GST"=>"Asia/Dubai", "NZDT"=>"Pacific/Auckland", "NZST"=>"Pacific/Auckland", "PDT"=>"America/Los_Angeles", "COT"=>"America/Bogota", "PKT"=>"Asia/Karachi", "SGT"=>"Asia/Singapore", "EEST"=>"Europe/Istanbul", "EET"=>"Europe/Istanbul", "WEST"=>"Europe/Lisbon", "UTC"=>"UTC", "WAT"=>"Africa/Lagos", "EST"=>"America/New_York", "JST"=>"Asia/Tokyo", "CET"=>"Europe/Paris", "BDT"=>"Asia/Dhaka", "MSK"=>"Europe/Moscow", "CLT"=>"America/Santiago" |
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
["Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/ |
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
#test suite | |
def assert_equal(actual, expected) | |
if actual == expected | |
puts "pass" | |
else | |
puts "fail: expected #{expected} but was #{actual}" | |
end | |
end |
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
desc "Create a bunch of seed data for artists and songs" | |
task :seed_artists_and_songs => [:environment, :clear_artists_and_songs] do | |
# Build Song Off Artist | |
# Given a Song called R.E.S.P.E.C.T | |
# build the Aretha Franklin Artist | |
s = Song.create(:name => "R.E.S.P.E.C.T") | |
s.build_artist(:name => "Aretha Franklin") |
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
# create a file jukebox.rb | |
# When that program is run, it should introduce itself | |
# to the user and accept input from the user using the gets command. | |
# The jukebox should respond to 3 commands, help, play, list and exit. | |
# The help command should output instructions for the user | |
# on how to use the jukebox. |