Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bump up the version

  • Loading branch information...
commit d6e4dbbfa8f123e8387d0ce2371aa8a91bc6bc25 1 parent 681817a
nas authored
Showing with 4 additions and 30 deletions.
  1. +2 −28 README.rdoc
  2. +2 −2 url_shortener.gemspec
View
30 README.rdoc
@@ -1,5 +1,7 @@
==Description
+ Tutorial: http://nasir.wordpress.com/2009/11/26/url-shortener-gem-bitly-api-wrapper-in-ruby/
+
Url Shortener is a Ruby library / gem and API wrapper for bit.ly to shorten/expand the urls and retrieve other information about them.
To use the url_shortener gem you need a bit.ly login and Api key.
@@ -49,34 +51,6 @@ To use the url_shortener gem you need a bit.ly login and Api key.
shorten.urls
-===To Expand Urls
-
- expand = client.expand(:shortUrl => 'http://bit.ly/1RmnUT') # => UrlShortener::Response::Expand object
-
- OR
-
- expand = client.expand(:hash => '1RmnUT')
- expand.result # => returns a hash of all data returned from bitly
- expand.url # => returns a long url string
-
-===To get stats
-
- stats = client.stats(:shortUrl => 'http://bit.ly/1RmnUT') # => UrlShortener::Response object
-
- OR
-
- stats = client.stats(:hash => '1RmnUT') # => UrlShortener::Response object
- stats.result # => returns a hash of all data returned from bitly
-
-===To get url info
-
- info = client.info(:shortUrl => 'http://bit.ly/1RmnUT') # => UrlShortener::Response object
-
- OR
-
- info = client.info(:hash => '1RmnUT') # => UrlShortener::Response object
- info.result # => returns a hash of all data returned from bitly
-
==Docs
http://rdoc.info/projects/nas/url_shortener
View
4 url_shortener.gemspec
@@ -1,10 +1,10 @@
Gem::Specification.new do |s|
s.name = %q{url_shortener}
- s.version = "0.0.5"
+ s.version = "0.0.6"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Nasir Jamal"]
- s.date = %q{2009-11-17}
+ s.date = %q{2009-11-26}
s.description = %q{Url Shortener is a Ruby library / gem and API wrapper for bit.ly to shorten/expand the urls and retrieve other information about them.}
s.email = %q{nas35_in@yahoo.com}
s.extra_rdoc_files = ["README.rdoc"]
Please sign in to comment.
Something went wrong with that request. Please try again.