Skip to content

Commit

Permalink
bump up the version
Browse files Browse the repository at this point in the history
  • Loading branch information
nas committed Nov 26, 2009
1 parent 681817a commit d6e4dbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 30 deletions.
30 changes: 2 additions & 28 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions url_shortener.gemspec
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down

0 comments on commit d6e4dbb

Please sign in to comment.