Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

bump up the version

  • Loading branch information...
commit d6e4dbbfa8f123e8387d0ce2371aa8a91bc6bc25 1 parent 681817a
nas authored

Showing 2 changed files with 4 additions and 30 deletions. Show diff stats Hide diff stats

  1. +2 28 README.rdoc
  2. +2 2 url_shortener.gemspec
30 README.rdoc
Source Rendered
... ... @@ -1,5 +1,7 @@
1 1 ==Description
2 2
  3 + Tutorial: http://nasir.wordpress.com/2009/11/26/url-shortener-gem-bitly-api-wrapper-in-ruby/
  4 +
3 5 Url Shortener is a Ruby library / gem and API wrapper for bit.ly to shorten/expand the urls and retrieve other information about them.
4 6
5 7 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.
49 51
50 52 shorten.urls
51 53
52   -===To Expand Urls
53   -
54   - expand = client.expand(:shortUrl => 'http://bit.ly/1RmnUT') # => UrlShortener::Response::Expand object
55   -
56   - OR
57   -
58   - expand = client.expand(:hash => '1RmnUT')
59   - expand.result # => returns a hash of all data returned from bitly
60   - expand.url # => returns a long url string
61   -
62   -===To get stats
63   -
64   - stats = client.stats(:shortUrl => 'http://bit.ly/1RmnUT') # => UrlShortener::Response object
65   -
66   - OR
67   -
68   - stats = client.stats(:hash => '1RmnUT') # => UrlShortener::Response object
69   - stats.result # => returns a hash of all data returned from bitly
70   -
71   -===To get url info
72   -
73   - info = client.info(:shortUrl => 'http://bit.ly/1RmnUT') # => UrlShortener::Response object
74   -
75   - OR
76   -
77   - info = client.info(:hash => '1RmnUT') # => UrlShortener::Response object
78   - info.result # => returns a hash of all data returned from bitly
79   -
80 54 ==Docs
81 55
82 56 http://rdoc.info/projects/nas/url_shortener
4 url_shortener.gemspec
... ... @@ -1,10 +1,10 @@
1 1 Gem::Specification.new do |s|
2 2 s.name = %q{url_shortener}
3   - s.version = "0.0.5"
  3 + s.version = "0.0.6"
4 4
5 5 s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6 6 s.authors = ["Nasir Jamal"]
7   - s.date = %q{2009-11-17}
  7 + s.date = %q{2009-11-26}
8 8 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.}
9 9 s.email = %q{nas35_in@yahoo.com}
10 10 s.extra_rdoc_files = ["README.rdoc"]

0 comments on commit d6e4dbb

Please sign in to comment.
Something went wrong with that request. Please try again.