series_timer 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,8 @@ rescue OptionParser::InvalidOption => err
9
9
  abort "series_timer: #{err.message}\n#{usage}"
10
10
  rescue SeriesTimer::InvalidSerieException
11
11
  abort "series_timer: invalid series"
12
+ rescue SeriesTimer::NoEpisodesFoundException
13
+ abort "series_timer: no episodes found"
12
14
  rescue ArgumentError
13
15
  abort "series_timer: you need to provide at least one series\n#{usage}"
14
16
  end
@@ -0,0 +1 @@
1
+ [["1", "Dexter", "2006-10-01"], ["2", "Crocodile", "2006-10-08"], ["3", "Popping Cherry", "2006-10-15"], ["4", "Let's Give the Boy a Hand", "2006-10-22"], ["5", "Love American Style", "2006-10-29"], ["6", "Return to Sender", "2006-11-05"], ["7", "Circle of Friends", "2006-11-12"], ["8", "Shrink Wrap", "2006-11-19"], ["9", "Father Knows Best", "2006-11-26"], ["10", "Seeing Red", "2006-12-03"], ["11", "Truth Be Told", "2006-12-10"], ["12", "Born Free", "2006-12-17"], ["1", "It's Alive!", "2007-09-30"], ["2", "Waiting to Exhale", "2007-10-07"], ["3", "An Inconvenient Lie", "2007-10-14"], ["4", "See-Through", "2007-10-21"], ["5", "The Dark Defender", "2007-10-28"], ["6", "Dex, Lies, and Videotape", "2007-11-04"], ["7", "That Night, a Forest Grew", "2007-11-11"], ["8", "Morning Comes", "2007-11-18"], ["9", "Resistance is Futile", "2007-11-25"], ["10", "There's Something About Harry", "2007-12-02"], ["11", "Left Turn Ahead", "2007-12-09"], ["12", "The British Invasion", "2007-12-16"], ["1", "Our Father", "2008-09-28"], ["2", "Finding Freebo", "2008-10-05"], ["3", "The Lion Sleeps Tonight", "2008-10-12"], ["4", "All in the Family", "2008-10-19"], ["5", "Turning Biminese", "2008-10-26"], ["6", "S\xC3\xAD Se Puede", "2008-11-02"], ["7", "Easy as Pie", "2008-11-09"], ["8", "The Damage a Man Can Do", "2008-11-16"], ["9", "About Last Night", "2008-11-23"], ["10", "Go Your Own Way", "2008-11-30"], ["11", "I Had a Dream", "2008-12-07"], ["12", "Do You Take Dexter Morgan?", "2008-12-14"], ["1", "Living the Dream", "2009-09-27"], ["2", "Remains to Be Seen", "2009-10-04"], ["3", "Blinded by the Light", "2009-10-11"], ["4", "Dex Takes a Holiday", "2009-10-18"], ["5", "Dirty Harry", "2009-10-25"], ["6", "If I Had a Hammer", "2009-11-01"], ["7", "Slack Tide", "2009-11-08"], ["8", "Road Kill", "2009-11-15"], ["9", "Hungry Man", "2009-11-22"], ["10", "Lost Boys", "2009-11-29"], ["11", "Hello, Dexter Morgan", "2009-12-06"], ["12", "The Getaway", "2009-12-13"], ["1", "My Bad", "2010-09-26"], ["2", "Hello, Bandit", "2010-10-03"], ["3", "Practically Perfect", "2010-10-10"], ["4", "Beauty and the Beast", "2010-10-17"], ["5", "First Blood", "2010-10-24"], ["6", "Everything is Illumenated", "2010-10-31"], ["7", "Circle Us", "2010-11-07"], ["8", "Take It!", "2010-11-14"], ["9", "Teenage Wasteland", "2010-11-21"], ["10", "In the Beginning", "2010-11-28"], ["11", "Hop a Freighter", "2010-12-05"], ["12", "The Big One", "2010-12-12"], ["1", "Those Kinds of Things", "2011-10-02"], ["2", "Once Upon a Time...", "2011-10-09"], ["3", "Smokey and the Bandit", "2011-10-16"], ["4", "A Horse of a Different Color", "2011-10-23"], ["5", "The Angel of Death", "2011-10-30"], ["6", "Just Let Go", "2011-11-06"], ["7", "Nebraska", "2011-11-13"], ["8", "Sin of Omission", "2011-11-20"], ["9", "Get Gellar", "2011-11-27"], ["10", "Ricochet Rabbit", "2011-12-04"], ["11", "Talk to the Hand", "2011-12-11"], ["12", "This is the Way the World Ends", "2011-12-18"], ["1", "Are You...?", "2012-09-30"]]
@@ -0,0 +1 @@
1
+ [["1", "Winter Is Coming", "2011-04-17"], ["2", "The Kingsroad", "2011-04-24"], ["3", "Lord Snow", "2011-05-01"], ["4", "Cripples, Bastards, and Broken Things", "2011-05-08"], ["5", "The Wolf and the Lion", "2011-05-15"], ["6", "A Golden Crown", "2011-05-22"], ["7", "You Win or You Die", "2011-05-29"], ["8", "The Pointy End", "2011-06-05"], ["9", "Baelor", "2011-06-12"], ["10", "Fire and Blood", "2011-06-19"], ["1", "The North Remembers", "2012-04-01"], ["2", "The Night Lands", "2012-04-08"], ["3", "What Is Dead May Never Die", "2012-04-15"], ["4", "Garden of Bones", "2012-04-22"], ["5", "The Ghost of Harrenhal", "2012-04-29"], ["6", "The Old Gods and the New", "2012-05-06"], ["7", "A Man Without Honor", "2012-05-13"], ["8", "The Prince of Winterfell", "2012-05-20"], ["9", "Blackwater", "2012-05-27"], ["10", "Valar Morghulis", "2012-06-03"]]
@@ -1 +1 @@
1
- [["1", "Pilot", "2004-11-16"], ["2", "Paternity", "2004-11-23"], ["3", "Occam", "2004-11-30"], ["4", "Maternity", "2004-12-07"], ["5", "Damned If You Do", "2004-12-14"], ["6", "The Socratic Method", "2004-12-21"], ["7", "Fidelity", "2004-12-28"], ["8", "Poison", "2005-01-25"], ["9", "DNR", "2005-02-01"], ["10", "Histories", "2005-02-08"], ["11", "Detox", "2005-02-15"], ["12", "Sports Medicine", "2005-02-22"], ["13", "Cursed", "2005-03-01"], ["14", "Control", "2005-03-15"], ["15", "Mob Rules", "2005-03-22"], ["16", "Heavy", "2005-03-29"], ["17", "Role Model", "2005-04-12"], ["18", "Babies ", "2005-04-19"], ["19", "Kids", "2005-05-03"], ["20", "Love Hurts", "2005-05-10"], ["21", "Three Stories", "2005-05-17"], ["22", "Honeymoon", "2005-05-24"], ["1", "Acceptance", "2005-09-13"], ["2", "Autopsy", "2005-09-20"], ["3", "Humpty Dumpty", "2005-09-27"], ["4", "TB or Not TB", "2005-11-01"], ["5", "Daddy", "2005-11-08"], ["6", "Spin", "2005-11-15"], ["7", "Hunting", "2005-11-22"], ["8", "The Mistake", "2005-11-29"], ["9", "Deception", "2005-12-13"], ["10", "Failure to Communicate", "2006-01-10"], ["11", "Need to Know", "2006-02-07"], ["12", "Distractions", "2006-02-14"], ["13", "Skin Deep", "2006-02-20"], ["14", "Sex Kills", "2006-03-07"], ["15", "Clueless", "2006-03-28"], ["16", "Safe", "2006-04-04"], ["17", "All In", "2006-04-11"], ["18", "Sleeping Dogs Lie", "2006-04-18"], ["19", "House vs", "2006-04-25"], ["20", "Euphoria ", "2006-05-02"], ["21", "Euphoria ", "2006-05-03"], ["22", "Forever", "2006-05-09"], ["23", "Who", "2006-05-16"], ["24", "No Reason", "2006-05-23"], ["1", "Meaning", "2006-09-05"], ["2", "Cane and Able", "2006-09-12"], ["3", "Informed Consent", "2006-09-19"], ["4", "Lines in the Sand", "2006-09-26"], ["5", "Fools for Love", "2006-10-31"], ["6", "Que Ser", "2006-11-07"], ["7", "Son of Coma Guy", "2006-11-14"], ["8", "Whac", "2006-11-21"], ["9", "Finding Judas", "2006-11-28"], ["10", "Merry Little Christmas", "2006-12-12"], ["11", "Words and Deeds", "2007-01-09"], ["12", "One Day", "2007-01-30"], ["13", "Needle in a Haystack", "2007-02-06"], ["14", "Insensitive", "2007-02-13"], ["15", "Half", "2007-03-06"], ["16", "Top Secret", "2007-03-27"], ["17", "Fetal Position", "2007-04-03"], ["18", "Airborne", "2007-04-10"], ["19", "Act Your Age", "2007-04-17"], ["20", "House Training", "2007-04-24"], ["21", "Family", "2007-05-01"], ["22", "Resignation", "2007-05-08"], ["23", "The Jerk", "2007-05-15"], ["24", "Human Error", "2007-05-29"], ["1", "Alone", "2007-09-25"], ["2", "The Right Stuff", "2007-10-02"], ["3", "97 Seconds", "2007-10-09"], ["4", "Guardian Angels", "2007-10-23"], ["5", "Mirror Mirror", "2007-10-30"], ["6", "Whatever It Takes", "2007-11-06"], ["7", "Ugly", "2007-11-13"], ["8", "You Don", "2007-11-20"], ["9", "Games", "2007-11-27"], ["10", "It", "2008-01-29"], ["11", "Frozen", "2008-02-03"], ["12", "Don", "2008-02-05"], ["13", "No More Mr", "2008-04-28"], ["14", "Living the Dream", "2008-05-05"], ["15", "House", "2008-05-12"], ["16", "Wilson", "2008-05-19"], ["1", "Dying Changes Everything", "2008-09-16"], ["2", "Not Cancer", "2008-09-23"], ["3", "Adverse Events", "2008-09-30"], ["4", "Birthmarks", "2008-10-14"], ["5", "Lucky Thirteen", "2008-10-21"], ["6", "Joy", "2008-10-28"], ["7", "The Itch", "2008-11-11"], ["8", "Emancipation", "2008-11-18"], ["9", "Last Resort", "2008-11-25"], ["10", "Let Them Eat Cake", "2008-12-02"], ["11", "Joy to the World", "2008-12-09"], ["12", "Painless", "2009-01-19"], ["13", "Big Baby", "2009-01-26"], ["14", "The Greater Good", "2009-02-02"], ["15", "Unfaithful", "2009-02-16"], ["16", "The Softer Side", "2009-02-23"], ["17", "The Social Contract", "2009-03-09"], ["18", "Here Kitty", "2009-03-16"], ["19", "Locked In", "2009-03-30"], ["20", "Simple Explanation", "2009-04-06"], ["21", "Saviors", "2009-04-13"], ["22", "House Divided", "2009-04-27"], ["23", "Under My Skin", "2009-05-04"], ["24", "Both Sides Now", "2009-05-11"], ["1", "Broken ", "2009-09-21"], ["2", "Broken ", "2009-09-21"], ["3", "Epic Fail", "2009-09-28"], ["4", "The Tyrant", "2009-10-05"], ["5", "Instant Karma", "2009-10-12"], ["6", "Brave Heart", "2009-10-19"], ["7", "Known Unknowns", "2009-11-09"], ["8", "Teamwork", "2009-11-16"], ["9", "Ignorance Is Bliss", "2009-11-23"], ["10", "Wilson", "2009-11-30"], ["11", "The Down Low", "2010-01-11"], ["12", "Remorse", "2010-01-25"], ["13", "Moving the Chains", "2010-02-01"], ["14", "5 to 9", "2010-02-08"], ["15", "Private Lives", "2010-03-08"], ["16", "Black Hole", "2010-03-15"], ["17", "Lockdown", "2010-04-12"], ["18", "Knight Fall", "2010-04-19"], ["19", "Open and Shut", "2010-04-26"], ["20", "The Choice", "2010-05-03"], ["21", "Baggage", "2010-05-10"], ["22", "Help Me", "2010-05-17"], ["1", "Now What", "2010-09-20"], ["2", "Selfish", "2010-09-27"], ["3", "Unwritten", "2010-10-04"], ["4", "Massage Therapy", "2010-10-11"], ["5", "Unplanned Parenthood", "2010-10-18"], ["6", "Office Politics", "2010-11-08"], ["7", "A Pox on Our House", "2010-11-15"], ["8", "Small Sacrifices", "2010-11-22"], ["9", "Larger Than Life", "2011-01-17"], ["10", "Carrot or Stick", "2011-01-24"], ["11", "Family Practice", "2011-02-07"], ["12", "You Must Remember This", "2011-02-14"], ["13", "Two Stories", "2011-02-21"], ["14", "Recession Proof", "2011-02-28"], ["15", "Bombshells", "2011-03-07"], ["16", "Out of the Chute", "2011-03-14"], ["17", "Fall from Grace", "2011-03-21"], ["18", "The Dig", "2011-04-11"], ["19", "Last Temptation", "2011-04-18"], ["20", "Changes", "2011-05-02"], ["21", "The Fix", "2011-05-09"], ["22", "After Hours", "2011-05-16"], ["23", "Moving On", "2011-05-23"], ["1", "Twenty Vicodin", "2011-10-03"], ["2", "Transplant", "2011-10-10"], ["3", "Charity Case", "2011-10-17"], ["4", "Risky Business", "2011-10-31"], ["5", "The Confession", "2011-11-07"], ["6", "Parents", "2011-11-14"], ["7", "Dead ", "2011-11-21"], ["8", "Perils of Paranoia", "2011-11-28"], ["9", "Better Half", "2012-01-23"], ["10", "Runaways", "2012-01-30"], ["11", "Nobody", "2012-02-06"], ["12", "Chase", "2012-02-13"], ["13", "Man of the House", "2012-02-20"], ["14", "Love Is Blind", "2012-02-27"], ["15", "", "2012-04-02"], ["16", "", "2012-04-09"], ["17", "", "2012-04-16"], ["18", "", "2012-04-23"], ["19", "", "2012-04-30"], ["20", "", "2012-05-07"], ["21", "", "2012-05-14"], ["22", "", "2012-05-21"]]
1
+ [["1", "Pilot", "2004-11-16"], ["2", "Paternity", "2004-11-23"], ["3", "Occam's Razor", "2004-11-30"], ["4", "Maternity", "2004-12-07"], ["5", "Damned If You Do", "2004-12-14"], ["6", "The Socratic Method", "2004-12-21"], ["7", "Fidelity", "2004-12-28"], ["8", "Poison", "2005-01-25"], ["9", "DNR", "2005-02-01"], ["10", "Histories", "2005-02-08"], ["11", "Detox", "2005-02-15"], ["12", "Sports Medicine", "2005-02-22"], ["13", "Cursed", "2005-03-01"], ["14", "Control", "2005-03-15"], ["15", "Mob Rules", "2005-03-22"], ["16", "Heavy", "2005-03-29"], ["17", "Role Model", "2005-04-12"], ["18", "Babies & Bathwater", "2005-04-19"], ["19", "Kids", "2005-05-03"], ["20", "Love Hurts", "2005-05-10"], ["21", "Three Stories", "2005-05-17"], ["22", "Honeymoon", "2005-05-24"], ["1", "Acceptance", "2005-09-13"], ["2", "Autopsy", "2005-09-20"], ["3", "Humpty Dumpty", "2005-09-27"], ["4", "TB or Not TB", "2005-11-01"], ["5", "Daddy's Boy", "2005-11-08"], ["6", "Spin", "2005-11-15"], ["7", "Hunting", "2005-11-22"], ["8", "The Mistake", "2005-11-29"], ["9", "Deception", "2005-12-13"], ["10", "Failure to Communicate", "2006-01-10"], ["11", "Need to Know", "2006-02-07"], ["12", "Distractions", "2006-02-14"], ["13", "Skin Deep", "2006-02-20"], ["14", "Sex Kills", "2006-03-07"], ["15", "Clueless", "2006-03-28"], ["16", "Safe", "2006-04-04"], ["17", "All In", "2006-04-11"], ["18", "Sleeping Dogs Lie", "2006-04-18"], ["19", "House vs. God", "2006-04-25"], ["20", "Euphoria (Part 1)", "2006-05-02"], ["21", "Euphoria (Part 2)", "2006-05-03"], ["22", "Forever", "2006-05-09"], ["23", "Who's Your Daddy?", "2006-05-16"], ["24", "No Reason", "2006-05-23"], ["1", "Meaning", "2006-09-05"], ["2", "Cane and Able", "2006-09-12"], ["3", "Informed Consent", "2006-09-19"], ["4", "Lines in the Sand", "2006-09-26"], ["5", "Fools for Love", "2006-10-31"], ["6", "Que Ser\xC3\xA1 Ser\xC3\xA1", "2006-11-07"], ["7", "Son of Coma Guy", "2006-11-14"], ["8", "Whac-A-Mole", "2006-11-21"], ["9", "Finding Judas", "2006-11-28"], ["10", "Merry Little Christmas", "2006-12-12"], ["11", "Words and Deeds", "2007-01-09"], ["12", "One Day, One Room", "2007-01-30"], ["13", "Needle in a Haystack", "2007-02-06"], ["14", "Insensitive", "2007-02-13"], ["15", "Half-Wit", "2007-03-06"], ["16", "Top Secret", "2007-03-27"], ["17", "Fetal Position", "2007-04-03"], ["18", "Airborne", "2007-04-10"], ["19", "Act Your Age", "2007-04-17"], ["20", "House Training", "2007-04-24"], ["21", "Family", "2007-05-01"], ["22", "Resignation", "2007-05-08"], ["23", "The Jerk", "2007-05-15"], ["24", "Human Error", "2007-05-29"], ["1", "Alone", "2007-09-25"], ["2", "The Right Stuff", "2007-10-02"], ["3", "97 Seconds", "2007-10-09"], ["4", "Guardian Angels", "2007-10-23"], ["5", "Mirror Mirror", "2007-10-30"], ["6", "Whatever It Takes", "2007-11-06"], ["7", "Ugly", "2007-11-13"], ["8", "You Don't Want to Know", "2007-11-20"], ["9", "Games", "2007-11-27"], ["10", "It's a Wonderful Lie", "2008-01-29"], ["11", "Frozen", "2008-02-03"], ["12", "Don't Ever Change", "2008-02-05"], ["13", "No More Mr. Nice Guy", "2008-04-28"], ["14", "Living the Dream", "2008-05-05"], ["15", "House's Head", "2008-05-12"], ["16", "Wilson's Heart", "2008-05-19"], ["1", "Dying Changes Everything", "2008-09-16"], ["2", "Not Cancer", "2008-09-23"], ["3", "Adverse Events", "2008-09-30"], ["4", "Birthmarks", "2008-10-14"], ["5", "Lucky Thirteen", "2008-10-21"], ["6", "Joy", "2008-10-28"], ["7", "The Itch", "2008-11-11"], ["8", "Emancipation", "2008-11-18"], ["9", "Last Resort", "2008-11-25"], ["10", "Let Them Eat Cake", "2008-12-02"], ["11", "Joy to the World", "2008-12-09"], ["12", "Painless", "2009-01-19"], ["13", "Big Baby", "2009-01-26"], ["14", "The Greater Good", "2009-02-02"], ["15", "Unfaithful", "2009-02-16"], ["16", "The Softer Side", "2009-02-23"], ["17", "The Social Contract", "2009-03-09"], ["18", "Here Kitty", "2009-03-16"], ["19", "Locked In", "2009-03-30"], ["20", "Simple Explanation", "2009-04-06"], ["21", "Saviors", "2009-04-13"], ["22", "House Divided", "2009-04-27"], ["23", "Under My Skin", "2009-05-04"], ["24", "Both Sides Now", "2009-05-11"], ["1", "Broken (Part 1)", "2009-09-21"], ["2", "Broken (Part 2)", "2009-09-21"], ["3", "Epic Fail", "2009-09-28"], ["4", "The Tyrant", "2009-10-05"], ["5", "Instant Karma", "2009-10-12"], ["6", "Brave Heart", "2009-10-19"], ["7", "Known Unknowns", "2009-11-09"], ["8", "Teamwork", "2009-11-16"], ["9", "Ignorance Is Bliss", "2009-11-23"], ["10", "Wilson", "2009-11-30"], ["11", "The Down Low", "2010-01-11"], ["12", "Remorse", "2010-01-25"], ["13", "Moving the Chains", "2010-02-01"], ["14", "5 to 9", "2010-02-08"], ["15", "Private Lives", "2010-03-08"], ["16", "Black Hole", "2010-03-15"], ["17", "Lockdown", "2010-04-12"], ["18", "Knight Fall", "2010-04-19"], ["19", "Open and Shut", "2010-04-26"], ["20", "The Choice", "2010-05-03"], ["21", "Baggage", "2010-05-10"], ["22", "Help Me", "2010-05-17"], ["1", "Now What?", "2010-09-20"], ["2", "Selfish", "2010-09-27"], ["3", "Unwritten", "2010-10-04"], ["4", "Massage Therapy", "2010-10-11"], ["5", "Unplanned Parenthood", "2010-10-18"], ["6", "Office Politics", "2010-11-08"], ["7", "A Pox on Our House", "2010-11-15"], ["8", "Small Sacrifices", "2010-11-22"], ["9", "Larger Than Life", "2011-01-17"], ["10", "Carrot or Stick", "2011-01-24"], ["11", "Family Practice", "2011-02-07"], ["12", "You Must Remember This", "2011-02-14"], ["13", "Two Stories", "2011-02-21"], ["14", "Recession Proof", "2011-02-28"], ["15", "Bombshells", "2011-03-07"], ["16", "Out of the Chute", "2011-03-14"], ["17", "Fall from Grace", "2011-03-21"], ["18", "The Dig", "2011-04-11"], ["19", "Last Temptation", "2011-04-18"], ["20", "Changes", "2011-05-02"], ["21", "The Fix", "2011-05-09"], ["22", "After Hours", "2011-05-16"], ["23", "Moving On", "2011-05-23"], ["1", "Twenty Vicodin", "2011-10-03"], ["2", "Transplant", "2011-10-10"], ["3", "Charity Case", "2011-10-17"], ["4", "Risky Business", "2011-10-31"], ["5", "The Confession", "2011-11-07"], ["6", "Parents", "2011-11-14"], ["7", "Dead & Buried", "2011-11-21"], ["8", "Perils of Paranoia", "2011-11-28"], ["9", "Better Half", "2012-01-23"], ["10", "Runaways", "2012-01-30"], ["11", "Nobody's Fault", "2012-02-06"], ["12", "Chase", "2012-02-13"], ["13", "Man of the House", "2012-02-20"], ["14", "Love Is Blind", "2012-02-27"], ["15", "Blowing the Whistle", "2012-04-02"], ["16", "Gut Check", "2012-04-09"], ["17", "We Need the Eggs", "2012-04-16"], ["18", "Body & Soul", "2012-04-23"], ["19", "The C-Word", "2012-04-30"], ["20", "Post Mortem", "2012-05-07"], ["21", "Holding On", "2012-05-14"], ["22", "Everybody Dies", "2012-05-21"]]
@@ -0,0 +1 @@
1
+ [["1", "Pilot", "2005-09-19"], ["2", "Purple Giraffe", "2005-09-26"], ["3", "Sweet Taste of Liberty", "2005-10-03"], ["4", "Return of the Shirt", "2005-10-10"], ["5", "Okay Awesome", "2005-10-17"], ["6", "Slutty Pumpkin", "2005-10-24"], ["7", "Matchmaker", "2005-11-07"], ["8", "The Duel", "2005-11-14"], ["9", "Belly Full of Turkey", "2005-11-21"], ["10", "The Pineapple Incident", "2005-11-28"], ["11", "The Limo", "2005-12-19"], ["12", "The Wedding", "2006-01-09"], ["13", "Drumroll, Please", "2006-01-23"], ["14", "Zip, Zip, Zip", "2006-02-06"], ["15", "Game Night", "2006-02-27"], ["16", "Cupcake", "2006-03-06"], ["17", "Life Among the Gorillas", "2006-03-20"], ["18", "Nothing Good Happens After 2 A.M.", "2006-04-10"], ["19", "Mary the Paralegal", "2006-04-24"], ["20", "Best Prom Ever", "2006-05-01"], ["21", "Milk", "2006-05-08"], ["22", "Come On", "2006-05-15"], ["1", "Where Were We?", "2006-09-18"], ["2", "The Scorpion and the Toad", "2006-09-25"], ["3", "Brunch", "2006-10-02"], ["4", "Ted Mosby: Architect", "2006-10-09"], ["5", "World's Greatest Couple", "2006-10-16"], ["6", "Aldrin Justice", "2006-10-23"], ["7", "Swarley", "2006-11-06"], ["8", "Atlantic City", "2006-11-13"], ["9", "Slap Bet", "2006-11-20"], ["10", "Single Stamina", "2006-11-27"], ["11", "How Lily Stole Christmas", "2006-12-11"], ["12", "First Time in New York", "2007-01-08"], ["13", "Columns", "2007-01-22"], ["14", "Monday Night Football", "2007-02-05"], ["15", "Lucky Penny", "2007-02-12"], ["16", "Stuff", "2007-02-19"], ["17", "Arrivederci, Fiero", "2007-02-26"], ["18", "Moving Day", "2007-03-19"], ["19", "Bachelor Party", "2007-04-09"], ["20", "Showdown", "2007-04-30"], ["21", "Something Borrowed", "2007-05-07"], ["22", "Something Blue", "2007-05-14"], ["1", "Wait for It", "2007-09-24"], ["2", "We're Not from Here", "2007-10-01"], ["3", "Third Wheel", "2007-10-08"], ["4", "Little Boys", "2007-10-15"], ["5", "How I Met Everyone Else", "2007-10-22"], ["6", "I'm Not That Guy", "2007-10-29"], ["7", "Dowisetrepla", "2007-11-05"], ["8", "Spoiler Alert", "2007-11-12"], ["9", "Slapsgiving", "2007-11-19"], ["10", "The Yips", "2007-11-26"], ["11", "The Platinum Rule", "2007-12-10"], ["12", "No Tomorrow", "2008-03-17"], ["13", "Ten Sessions", "2008-03-24"], ["14", "The Bracket", "2008-03-31"], ["15", "The Chain of Screaming", "2008-04-14"], ["16", "Sandcastles in the Sand", "2008-04-21"], ["17", "The Goat", "2008-04-28"], ["18", "Rebound Bro", "2008-05-05"], ["19", "Everything Must Go", "2008-05-12"], ["20", "Miracles", "2008-05-19"], ["1", "Do I Know You?", "2008-09-22"], ["2", "The Best Burger in New York", "2008-09-29"], ["3", "I Heart NJ", "2008-10-06"], ["4", "Intervention", "2008-10-13"], ["5", "Shelter Island", "2008-10-20"], ["6", "Happily Ever After", "2008-11-03"], ["7", "Not a Father's Day", "2008-11-10"], ["8", "Woooo!", "2008-11-17"], ["9", "The Naked Man", "2008-11-24"], ["10", "The Fight", "2008-12-08"], ["11", "Little Minnesota", "2008-12-15"], ["12", "Benefits", "2009-01-12"], ["13", "Three Days of Snow", "2009-01-19"], ["14", "The Possimpible", "2009-02-02"], ["15", "The Stinsons", "2009-03-02"], ["16", "Sorry, Bro", "2009-03-09"], ["17", "The Front Porch", "2009-03-16"], ["18", "Old King Clancy", "2009-03-23"], ["19", "Murtaugh", "2009-03-30"], ["20", "Mosbius Designs", "2009-04-13"], ["21", "The Three Days Rule", "2009-04-27"], ["22", "Right Place, Right Time", "2009-05-04"], ["23", "As Fast as She Can", "2009-05-11"], ["24", "The Leap", "2009-05-18"], ["1", "Definitions", "2009-09-21"], ["2", "Double Date", "2009-09-28"], ["3", "Robin 101", "2009-10-05"], ["4", "The Sexless Innkeeper", "2009-10-12"], ["5", "Duel Citizenship", "2009-10-19"], ["6", "Bagpipes", "2009-11-02"], ["7", "The Rough Patch", "2009-11-09"], ["8", "The Playbook", "2009-11-16"], ["9", "Slapsgiving 2: Revenge of the Slap", "2009-11-23"], ["10", "The Window", "2009-12-07"], ["11", "Last Cigarette Ever", "2009-12-14"], ["12", "Girls Versus Suits", "2010-01-11"], ["13", "Jenkins", "2010-01-18"], ["14", "Perfect Week", "2010-02-01"], ["15", "Rabbit or Duck", "2010-02-08"], ["16", "Hooked", "2010-03-01"], ["17", "Of Course", "2010-03-08"], ["18", "Say Cheese", "2010-03-22"], ["19", "Zoo or False", "2010-04-12"], ["20", "Home Wreckers", "2010-04-19"], ["21", "Twin Beds", "2010-05-03"], ["22", "Robots Versus Wrestlers", "2010-05-10"], ["23", "The Wedding Bride", "2010-05-17"], ["24", "Doppelgangers", "2010-05-24"], ["1", "Big Days", "2010-09-20"], ["2", "Cleaning House", "2010-09-27"], ["3", "Unfinished", "2010-10-04"], ["4", "Subway Wars", "2010-10-11"], ["5", "Architect of Destruction", "2010-10-18"], ["6", "Baby Talk", "2010-10-25"], ["7", "Canning Randy", "2010-11-01"], ["8", "Natural History", "2010-11-08"], ["9", "Glitter", "2010-11-15"], ["10", "Blitzgiving", "2010-11-22"], ["11", "The Mermaid Theory", "2010-12-06"], ["12", "False Positive", "2010-12-13"], ["13", "Bad News", "2011-01-03"], ["14", "Last Words", "2011-01-17"], ["15", "Oh Honey", "2011-02-07"], ["16", "Desperation Day", "2011-02-14"], ["17", "Garbage Island", "2011-02-21"], ["18", "A Change of Heart", "2011-02-28"], ["19", "Legendaddy", "2011-03-21"], ["20", "The Exploding Meatball Sub", "2011-04-11"], ["21", "Hopeless", "2011-04-18"], ["22", "The Perfect Cocktail", "2011-05-02"], ["23", "Landmarks", "2011-05-09"], ["24", "Challenge Accepted", "2011-05-16"], ["1", "The Best Man", "2011-09-19"], ["2", "The Naked Truth", "2011-09-19"], ["3", "Ducky Tie", "2011-09-26"], ["4", "The Stinson Missile Crisis", "2011-10-03"], ["5", "Field Trip", "2011-10-10"], ["6", "Mystery vs. History", "2011-10-17"], ["7", "Noretta", "2011-10-24"], ["8", "The Slutty Pumpkin Returns", "2011-10-31"], ["9", "Disaster Averted", "2011-11-07"], ["10", "Tick Tick Tick\xE2\x80\xA6", "2011-11-14"], ["11", "The Rebound Girl", "2011-11-21"], ["12", "Symphony of Illumination", "2011-12-05"], ["13", "Tailgate", "2012-01-02"], ["14", "46 Minutes", "2012-01-16"], ["15", "The Burning Beekeeper", "2012-02-06"], ["16", "The Drunk Train", "2012-02-13"], ["17", "No Pressure", "2012-02-20"], ["18", "Karma", "2012-02-27"], ["19", "The Broath", "2012-03-19"], ["20", "Trilogy Time", "2012-04-09"], ["21", "Now We're Even", "2012-04-16"], ["22", "Good Crazy", "2012-04-30"]]
@@ -0,0 +1 @@
1
+ [["1", "Pilot", "2007-09-24"], ["2", "The Big Bran Hypothesis", "2007-10-01"], ["3", "The Fuzzy Boots Corollary", "2007-10-08"], ["4", "The Luminous Fish Effect", "2007-10-15"], ["5", "The Hamburger Postulate", "2007-10-22"], ["6", "The Middle-Earth Paradigm", "2007-10-29"], ["7", "The Dumpling Paradox", "2007-11-05"], ["8", "The Grasshopper Experiment", "2007-11-12"], ["9", "The Cooper-Hofstadter Polarization", "2008-03-17"], ["10", "The Loobenfeld Decay", "2008-03-24"], ["11", "The Pancake Batter Anomaly", "2008-03-31"], ["12", "The Jerusalem Duality", "2008-04-14"], ["13", "The Bat Jar Conjecture", "2008-04-21"], ["14", "The Nerdvana Annihilation", "2008-04-28"], ["15", "The Shiksa Indeterminacy", "2008-05-05"], ["16", "The Peanut Reaction", "2008-05-12"], ["17", "The Tangerine Factor", "2008-05-19"], ["1", "The Bad Fish Paradigm", "2008-09-22"], ["2", "The Codpiece Topology", "2008-09-29"], ["3", "The Barbarian Sublimation", "2008-10-06"], ["4", "The Griffin Equivalency", "2008-10-13"], ["5", "The Euclid Alternative", "2008-10-20"], ["6", "The Cooper-Nowitzki Theorem", "2008-11-03"], ["7", "The Panty Pi\xC3\xB1ata Polarization", "2008-11-10"], ["8", "The Lizard-Spock Expansion", "2008-11-17"], ["9", "The White Asparagus Triangulation", "2008-11-24"], ["10", "The Vartabedian Conundrum", "2008-12-08"], ["11", "The Bath Item Gift Hypothesis", "2008-12-15"], ["12", "The Killer Robot Instability", "2009-01-12"], ["13", "The Friendship Algorithm", "2009-01-19"], ["14", "The Financial Permeability", "2009-02-02"], ["15", "The Maternal Capacitance", "2009-02-09"], ["16", "The Cushion Saturation", "2009-03-02"], ["17", "The Terminator Decoupling", "2009-03-09"], ["18", "The Work Song Nanocluster", "2009-03-16"], ["19", "The Dead Hooker Juxtaposition", "2009-03-30"], ["20", "The Hofstadter Isotope", "2009-04-13"], ["21", "The Vegas Renormalization", "2009-04-27"], ["22", "The Classified Materials Turbulence", "2009-05-04"], ["23", "The Monopolar Expedition", "2009-05-11"], ["1", "The Electric Can Opener Fluctuation", "2009-09-21"], ["2", "The Jiminy Conjecture", "2009-09-28"], ["3", "The Gothowitz Deviation", "2009-10-05"], ["4", "The Pirate Solution", "2009-10-12"], ["5", "The Creepy Candy Coating Corollary", "2009-10-19"], ["6", "The Cornhusker Vortex", "2009-11-02"], ["7", "The Guitarist Amplification", "2009-11-09"], ["8", "The Adhesive Duck Deficiency", "2009-11-16"], ["9", "The Vengeance Formulation", "2009-11-23"], ["10", "The Gorilla Experiment", "2009-12-07"], ["11", "The Maternal Congruence", "2009-12-14"], ["12", "The Psychic Vortex", "2010-01-11"], ["13", "The Bozeman Reaction", "2010-01-18"], ["14", "The Einstein Approximation", "2010-02-01"], ["15", "The Large Hadron Collision", "2010-02-08"], ["16", "The Excelsior Acquisition", "2010-03-01"], ["17", "The Precious Fragmentation", "2010-03-08"], ["18", "The Pants Alternative", "2010-03-22"], ["19", "The Wheaton Recurrence", "2010-04-12"], ["20", "The Spaghetti Catalyst", "2010-05-03"], ["21", "The Plimpton Stimulation", "2010-05-10"], ["22", "The Staircase Implementation", "2010-05-17"], ["23", "The Lunar Excitation", "2010-05-24"], ["1", "The Robotic Manipulation", "2010-09-23"], ["2", "The Cruciferous Vegetable Amplification", "2010-09-30"], ["3", "The Zazzy Substitution", "2010-10-07"], ["4", "The Hot Troll Deviation", "2010-10-14"], ["5", "The Desperation Emanation", "2010-10-21"], ["6", "The Irish Pub Formulation", "2010-10-28"], ["7", "The Apology Insufficiency", "2010-11-04"], ["8", "The 21-Second Excitation", "2010-11-11"], ["9", "The Boyfriend Complexity", "2010-11-18"], ["10", "The Alien Parasite Hypothesis", "2010-12-09"], ["11", "The Justice League Recombination", "2010-12-16"], ["12", "The Bus Pants Utilization", "2011-01-06"], ["13", "The Love Car Displacement", "2011-01-20"], ["14", "The Thespian Catalyst", "2011-02-03"], ["15", "The Benefactor Factor", "2011-02-10"], ["16", "The Cohabitation Formulation", "2011-02-17"], ["17", "The Toast Derivation", "2011-02-24"], ["18", "The Prestidigitation Approximation", "2011-03-10"], ["19", "The Zarnecki Incursion", "2011-03-31"], ["20", "The Herb Garden Germination", "2011-04-07"], ["21", "The Agreement Dissection", "2011-04-28"], ["22", "The Wildebeest Implementation", "2011-05-05"], ["23", "The Engagement Reaction", "2011-05-12"], ["24", "The Roommate Transmogrification", "2011-05-19"], ["1", "The Skank Reflex Analysis", "2011-09-22"], ["2", "The Infestation Hypothesis", "2011-09-22"], ["3", "The Pulled Groin Extrapolation", "2011-09-29"], ["4", "The Wiggly Finger Catalyst", "2011-10-06"], ["5", "The Russian Rocket Reaction", "2011-10-13"], ["6", "The Rhinitis Revelation", "2011-10-20"], ["7", "The Good Guy Fluctuation", "2011-10-27"], ["8", "The Isolation Permutation", "2011-11-03"], ["9", "The Ornithophobia Diffusion", "2011-11-10"], ["10", "The Flaming Spittoon Acquisition", "2011-11-17"], ["11", "The Speckerman Recurrence", "2011-12-08"], ["12", "The Shiny Trinket Maneuver", "2012-01-12"], ["13", "The Recombination Hypothesis", "2012-01-19"], ["14", "The Beta Test Initiation", "2012-01-26"], ["15", "The Friendship Contraction", "2012-02-02"], ["16", "The Vacation Solution", "2012-02-09"], ["17", "The Rothman Disintegration", "2012-02-16"], ["18", "The Werewolf Transformation", "2012-02-23"], ["19", "The Weekend Vortex", "2012-03-08"], ["20", "The Transporter Malfunction", "2012-03-29"], ["21", "The Hawking Excitation", "2012-04-05"], ["22", "The Stag Convergence", "2012-04-26"], ["23", "The Launch Acceleration", "2012-05-03"], ["24", "The Countdown Reflection", "2012-05-10"]]
@@ -1 +1 @@
1
- [["1", "Pilot", "2009-09-22"], ["2", "Stripped", "2009-09-29"], ["3", "Home", "2009-10-06"], ["4", "Fixed", "2009-10-13"], ["5", "Crash", "2009-10-20"], ["6", "Conjugal", "2009-11-03"], ["7", "Unorthodox", "2009-11-10"], ["8", "Unprepared", "2009-11-17"], ["9", "Threesome", "2009-11-24"], ["10", "Lifeguard", "2009-12-15"], ["11", "Infamy", "2010-01-05"], ["12", "Painkiller", "2010-01-12"], ["13", "Bad", "2010-02-02"], ["14", "Hi", "2010-02-09"], ["15", "Bang", "2010-03-02"], ["16", "Fleas", "2010-03-09"], ["17", "Heart", "2010-03-16"], ["18", "Doubt", "2010-04-06"], ["19", "Boom", "2010-04-27"], ["20", "Mock", "2010-05-04"], ["21", "Unplugged", "2010-05-11"], ["22", "Hybristophilia", "2010-05-18"], ["23", "Running", "2010-05-25"], ["1", "Taking Control", "2010-09-28"], ["2", "Double Jeopardy", "2010-10-05"], ["3", "Breaking Fast", "2010-10-12"], ["4", "Cleaning House", "2010-10-19"], ["5", "VIP Treatment", "2010-10-26"], ["6", "Poisoned Pill", "2010-11-09"], ["7", "Bad Girls", "2010-11-16"], ["8", "On Tap", "2010-11-23"], ["9", "Nine Hours", "2010-12-14"], ["10", "Breaking Up", "2011-01-11"], ["11", "Two Courts", "2011-01-18"], ["12", "Silly Season", "2011-02-01"], ["13", "Real Deal", "2011-02-08"], ["14", "Net Worth", "2011-02-15"], ["15", "Silver Bullet", "2011-02-22"], ["16", "Great Firewall", "2011-03-01"], ["17", "Ham Sandwich", "2011-03-22"], ["18", "Killer Song", "2011-03-29"], ["19", "Wrongful Termination", "2011-04-05"], ["20", "Foreign Affairs", "2011-04-12"], ["21", "In Sickness", "2011-05-03"], ["22", "Getting Off", "2011-05-10"], ["23", "Closing Arguments", "2011-05-17"], ["1", "A New Day", "2011-09-25"], ["2", "The Death Zone", "2011-10-02"], ["3", "Get a Room", "2011-10-09"], ["4", "Feeding the Rat", "2011-10-16"], ["5", "Marthas and Caitlins", "2011-10-23"], ["6", "Affairs of State", "2011-10-30"], ["7", "Executive Order 13224", "2011-11-06"], ["8", "Death Row Tip", "2011-11-13"], ["9", "Whiskey Tango Foxtrot", "2011-11-20"], ["10", "Parenting Made Easy", "2011-12-04"], ["11", "What Went Wrong", "2011-12-11"], ["12", "Alienation of Affection", "2012-01-08"], ["13", "Bitcoin for Dummies", "2012-01-15"], ["14", "Another Ham Sandwich", "2012-01-29"], ["15", "Live From Damascus", "2012-02-19"], ["16", "After the Fall", "2012-03-04"], ["17", "Long Way Home", "2012-03-11"], ["18", "Gloves Come Off", "2012-03-18"], ["19", "Blue Ribbon Panel", "2012-03-25"], ["20", "Pants on Fire", "2012-04-15"], ["21", "The Penalty Box", "2012-04-22"], ["22", "The Dream Team", "2012-04-29"]]
1
+ [["1", "Pilot", "2009-09-22"], ["2", "Stripped", "2009-09-29"], ["3", "Home", "2009-10-06"], ["4", "Fixed", "2009-10-13"], ["5", "Crash", "2009-10-20"], ["6", "Conjugal", "2009-11-03"], ["7", "Unorthodox", "2009-11-10"], ["8", "Unprepared", "2009-11-17"], ["9", "Threesome", "2009-11-24"], ["10", "Lifeguard", "2009-12-15"], ["11", "Infamy", "2010-01-05"], ["12", "Painkiller", "2010-01-12"], ["13", "Bad", "2010-02-02"], ["14", "Ridicule", "2010-02-09"], ["15", "Bang", "2010-03-02"], ["16", "Fleas", "2010-03-09"], ["17", "Heart", "2010-03-16"], ["18", "Doubt", "2010-04-06"], ["19", "Boom", "2010-04-27"], ["20", "Mock", "2010-05-04"], ["21", "Unplugged", "2010-05-11"], ["22", "Hybristophilia", "2010-05-18"], ["23", "Running", "2010-05-25"], ["1", "Taking Control", "2010-09-28"], ["2", "Double Jeopardy", "2010-10-05"], ["3", "Breaking Fast", "2010-10-12"], ["4", "Cleaning House", "2010-10-19"], ["5", "VIP Treatment", "2010-10-26"], ["6", "Poisoned Pill", "2010-11-09"], ["7", "Bad Girls", "2010-11-16"], ["8", "On Tap", "2010-11-23"], ["9", "Nine Hours", "2010-12-14"], ["10", "Breaking Up", "2011-01-11"], ["11", "Two Courts", "2011-01-18"], ["12", "Silly Season", "2011-02-01"], ["13", "Real Deal", "2011-02-08"], ["14", "Net Worth", "2011-02-15"], ["15", "Silver Bullet", "2011-02-22"], ["16", "Great Firewall", "2011-03-01"], ["17", "Ham Sandwich", "2011-03-22"], ["18", "Killer Song", "2011-03-29"], ["19", "Wrongful Termination", "2011-04-05"], ["20", "Foreign Affairs", "2011-04-12"], ["21", "In Sickness", "2011-05-03"], ["22", "Getting Off", "2011-05-10"], ["23", "Closing Arguments", "2011-05-17"], ["1", "A New Day", "2011-09-25"], ["2", "The Death Zone", "2011-10-02"], ["3", "Get a Room", "2011-10-09"], ["4", "Feeding the Rat", "2011-10-16"], ["5", "Marthas and Caitlins", "2011-10-23"], ["6", "Affairs of State", "2011-10-30"], ["7", "Executive Order 13224", "2011-11-06"], ["8", "Death Row Tip", "2011-11-13"], ["9", "Whiskey Tango Foxtrot", "2011-11-20"], ["10", "Parenting Made Easy", "2011-12-04"], ["11", "What Went Wrong", "2011-12-11"], ["12", "Alienation of Affection", "2012-01-08"], ["13", "Bitcoin for Dummies", "2012-01-15"], ["14", "Another Ham Sandwich", "2012-01-29"], ["15", "Live From Damascus", "2012-02-19"], ["16", "After the Fall", "2012-03-04"], ["17", "Long Way Home", "2012-03-11"], ["18", "Gloves Come Off", "2012-03-18"], ["19", "Blue Ribbon Panel", "2012-03-25"], ["20", "Pants on Fire", "2012-04-15"], ["21", "The Penalty Box", "2012-04-22"], ["22", "The Dream Team", "2012-04-29"]]
@@ -1 +1 @@
1
- [["1", "Days Gone Bye", "2010-10-31"], ["2", "Guts", "2010-11-07"], ["3", "Tell It to the Frogs", "2010-11-14"], ["4", "Vatos", "2010-11-21"], ["5", "Wildfire", "2010-11-28"], ["6", "TS", "2010-12-05"], ["1", "What Lies Ahead", "2011-10-16"], ["2", "Bloodletting", "2011-10-23"], ["3", "Save the Last One", "2011-10-30"], ["4", "Cherokee Rose", "2011-11-06"], ["5", "Chupacabra", "2011-11-13"], ["6", "Secrets", "2011-11-20"], ["7", "Pretty Much Dead Already", "2011-11-27"], ["8", "Nebraska", "2012-02-12"], ["9", "Triggerfinger", "2012-02-19"], ["10", "18 Miles Out", "2012-02-26"], ["11", "Judge", "2012-03-04"], ["12", "Better Angels", "2012-03-11"], ["13", "Beside the Dying Fire", "2012-03-18"]]
1
+ [["1", "Days Gone Bye", "2010-10-31"], ["2", "Guts", "2010-11-07"], ["3", "Tell It to the Frogs", "2010-11-14"], ["4", "Vatos", "2010-11-21"], ["5", "Wildfire", "2010-11-28"], ["6", "TS-19", "2010-12-05"], ["1", "What Lies Ahead", "2011-10-16"], ["2", "Bloodletting", "2011-10-23"], ["3", "Save the Last One", "2011-10-30"], ["4", "Cherokee Rose", "2011-11-06"], ["5", "Chupacabra", "2011-11-13"], ["6", "Secrets", "2011-11-20"], ["7", "Pretty Much Dead Already", "2011-11-27"], ["8", "Nebraska", "2012-02-12"], ["9", "Triggerfinger", "2012-02-19"], ["10", "18 Miles Out", "2012-02-26"], ["11", "Judge, Jury, Executioner", "2012-03-04"], ["12", "Better Angels", "2012-03-11"], ["13", "Beside the Dying Fire", "2012-03-18"]]
@@ -4,8 +4,7 @@ module SeriesTimer
4
4
  module Crawler
5
5
  class << self
6
6
 
7
- REGEX_EPISODES =
8
- Regexp.new(/<td>(\d+)<\/td>[^<]+<td class="summary" [^>]+>(?:"<b>)?(?:<a [^>]+>)?([\w\s]*)(?:<\/a>)?(?:<\/b>")?.*?<span[^>]+>([0-9-]+)<\/span>/m)
7
+ REGEX_EPISODES = /<td>(\d+)<\/td>[^<]+<td[^>]+>"(?:<b><a[^>]+>|<b>|<a[^>]+>)?([^<]*)(?:<\/a><\/b>|<\/b>|<\/a>)?".*?<span[^>]+>([0-9-]+)<\/span>/m
9
8
  CACHE_DIR = File.join(File.dirname(__FILE__), '../../cache/')
10
9
 
11
10
  def get_episodes(serie, options)
@@ -18,9 +17,7 @@ module SeriesTimer
18
17
 
19
18
  private
20
19
  def parse_episodes(serie, html)
21
- episodes = []
22
- html.scan(REGEX_EPISODES) { |episode| episodes << episode }
23
- episodes
20
+ html.scan(REGEX_EPISODES)
24
21
  end
25
22
 
26
23
  def get_cache_file(serie)
@@ -35,12 +32,12 @@ module SeriesTimer
35
32
  raise InvalidSerieException if response.code == "404"
36
33
 
37
34
  episodes = parse_episodes(serie, response.body)
38
- File.open(get_cache_file(serie), 'w') { |file| file.write(episodes) }
35
+ File.write(get_cache_file(serie), episodes)
39
36
  cache(serie)
40
37
  end
41
38
 
42
39
  def cache(serie)
43
- episodes_parsed = JSON.parse(File.open(get_cache_file(serie), "r").read)
40
+ episodes_parsed = JSON.parse(File.read(get_cache_file(serie)))
44
41
  season = 1
45
42
  episodes = []
46
43
 
@@ -51,6 +48,7 @@ module SeriesTimer
51
48
  episodes << Episode.new(serie, season.to_i, *episode)
52
49
  end
53
50
  end
51
+ raise NoEpisodesFoundException if episodes.empty?
54
52
  episodes
55
53
  end
56
54
 
@@ -1,3 +1,4 @@
1
1
  module SeriesTimer
2
2
  InvalidSerieException = Class.new(StandardError)
3
+ NoEpisodesFoundException = Class.new(StandardError)
3
4
  end
@@ -1,3 +1,3 @@
1
1
  module SeriesTimer
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: series_timer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-16 00:00:00.000000000 Z
12
+ date: 2012-05-09 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: scrapes the list of episodes of any series from wikipedia
15
15
  email:
@@ -28,8 +28,12 @@ files:
28
28
  - lib/series_timer.rb
29
29
  - cache/The Mentalist.cache
30
30
  - cache/empty
31
+ - cache/The Big Bang Theory.cache
31
32
  - cache/The Walking Dead.cache
32
33
  - cache/House.cache
34
+ - cache/Dexter.cache
35
+ - cache/Game of Thrones.cache
36
+ - cache/How I Met Your Mother.cache
33
37
  - cache/The Good Wife.cache
34
38
  - README.md
35
39
  homepage: http://github.com/abacha/series_timer