multi_shorten 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/README.md +45 -45
  2. metadata +2 -2
data/README.md CHANGED
@@ -1,51 +1,51 @@
1
- README
2
- ======
1
+ # README
2
+
3
3
 
4
4
  Use multiple url shorteners with a single gem
5
5
 
6
- Install
7
- -------
8
-
9
- <code>gem install multi_shorten</code>
10
-
11
- Usage
12
- -----
13
- <code>
14
- require 'multi_shorten'
15
- client = MultiShorten::Client.new
16
- </code>
17
- <b>For single shortener apis</b>
18
- <code>
19
- client.shorten({:mode => "single", :url => "http://www.google.com", :shortener => "b54"})
20
- </code>
21
-
22
- <b>Sample response for this request</b>
23
- <code>
24
- {:status => :success, :short_url => "http://b54.in/9o"}
25
- </code>
26
-
27
- <b>For multiple apis</b>
28
- <code>
29
- client.shorten({:mode => "multiple", :url => "http://www.google.com", :shorteners => ["b54", "qr_cx"]})
30
- </code>
31
-
32
- <b>Sample response for this request </b>
33
- <code>
34
- {"b54" => {:status => :fail }, "qr_cx" => {:status => :success, :short_url => "http://qr.cx/9o"}}
35
- </code>
36
-
37
- Available Shortener Codes
38
- --------------------
39
-
40
- [b54](http://b54.in)
41
- [linkee](http://linkee.com)
42
- [goo_gl](http://goo.gl)
43
- [is_gd](htpp://is.gd)
44
- [jumbo_tweet](http://jmb.tw/)
45
- [meta_mark](http://metamark.net)
46
- [mt_ny](http://mtny.mobi")
47
- [qr_cx](http://qr.cx)
48
- [shortr](http://shortr.info)
6
+ ## Installation
7
+
8
+ <code>gem install multi_shorten</code>
9
+
10
+ ## Usage
11
+
12
+ #### Require the gem
13
+ <code>require 'multi_shorten'</code>
14
+
15
+ #### Instantiate the client
16
+ <code>client = MultiShorten::Client.new</code>
17
+
18
+ #### For single shortener apis
19
+ <code>client.shorten({:mode => "single", :url => "http://www.google.com", :shortener => "b54"})</code>
20
+
21
+
22
+ #### Sample response for this request
23
+ <code>
24
+ {:status => :success, :short_url => "http://b54.in/9o"}
25
+ </code>
26
+
27
+ #### For multiple apis
28
+ <code>
29
+ client.shorten({:mode => "multiple", :url => "http://www.google.com", :shorteners => ["b54", "qr_cx"]})
30
+ </code>
31
+
32
+ #### Sample response for this request
33
+ <code>
34
+ {"b54" => {:status => :fail }, "qr_cx" => {:status => :success, :short_url => "http://qr.cx/9o"}}
35
+ </code>
36
+
37
+ ## Available Shortener Codes
38
+
39
+
40
+ [b54](http://b54.in)<br/>
41
+ [linkee](http://linkee.com)<br/>
42
+ [goo_gl](http://goo.gl)<br/>
43
+ [is_gd](htpp://is.gd)<br/>
44
+ [jumbo_tweet](http://jmb.tw/)<br/>
45
+ [meta_mark](http://metamark.net)<br/>
46
+ [mt_ny](http://mtny.mobi")<br/>
47
+ [qr_cx](http://qr.cx)<br/>
48
+ [shortr](http://shortr.info)<br/>
49
49
 
50
50
  Use the above codes to shorten your urls with the respective service
51
51
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_shorten
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -53,7 +53,7 @@ files:
53
53
  - lib/multi_shorten/url_shorteners.rb
54
54
  - lib/multi_shorten.rb
55
55
  - README.md
56
- homepage: http://rubygems.org/gems/multi_shorten
56
+ homepage: https://github.com/ronyv89/multi_shorten
57
57
  licenses: []
58
58
  post_install_message:
59
59
  rdoc_options: []