From 89509bd9c00803a6b17e14d3438ffef9bd19b157 Mon Sep 17 00:00:00 2001 From: Alex Coomans Date: Mon, 23 Nov 2009 11:53:07 -0700 Subject: [PATCH] Small fixes --- lib/shorty/bitly.rb | 2 -- lib/shorty/cligs.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/shorty/bitly.rb b/lib/shorty/bitly.rb index 922846e..4d01391 100644 --- a/lib/shorty/bitly.rb +++ b/lib/shorty/bitly.rb @@ -84,8 +84,6 @@ def stats(urlorhash) def gsub_url(shorturl) shorturl.split('/').last - # shorturl = shorturl.gsub(/http:\/\//, '') if shorturl.include?('http://') - # shorturl = shorturl.gsub(/bit.ly\//, '') if shorturl.include?('bit.ly/') end def raise_error(hash) diff --git a/lib/shorty/cligs.rb b/lib/shorty/cligs.rb index 3f7c500..8bf11e2 100644 --- a/lib/shorty/cligs.rb +++ b/lib/shorty/cligs.rb @@ -49,7 +49,7 @@ def expand(urlorhash) def raise_error(code, message = '(no error message)') error = message + " (error code: #{code})" - raise Shorty::Bitly::Error, error + raise Shorty::Cligs::Error, error end end