shorturl 0.8.3 → 0.8.4
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.
- data/ChangeLog +5 -15
- data/README +50 -35
- data/bin/CVS/Entries +2 -0
- data/bin/CVS/Repository +1 -0
- data/bin/CVS/Root +1 -0
- data/bin/shorturl +20 -36
- data/doc/classes/{WWW/InvalidService.html → InvalidService.html} +4 -4
- data/doc/classes/{WWW/Service.html → Service.html} +10 -50
- data/doc/classes/Service.src/M000003.html +28 -0
- data/doc/classes/Service.src/M000004.html +26 -0
- data/doc/classes/{WWW/ShortURL.html → ShortURL.html} +36 -46
- data/doc/classes/ShortURL.src/M000001.html +18 -0
- data/doc/classes/ShortURL.src/M000002.html +22 -0
- data/doc/created.rid +1 -1
- data/doc/files/ChangeLog.html +5 -26
- data/doc/files/MIT-LICENSE.html +2 -2
- data/doc/files/README.html +119 -45
- data/doc/files/TODO.html +1 -1
- data/doc/files/lib/shorturl_rb.html +1 -1
- data/doc/fr_class_index.html +3 -4
- data/doc/fr_method_index.html +4 -4
- data/examples/CVS/Entries +2 -0
- data/examples/CVS/Repository +1 -0
- data/examples/CVS/Root +1 -0
- data/lib/CVS/Entries +2 -0
- data/lib/CVS/Repository +1 -0
- data/lib/CVS/Root +1 -0
- data/lib/shorturl.rb +194 -152
- data/test/CVS/Entries +4 -0
- data/test/CVS/Repository +1 -0
- data/test/CVS/Root +1 -0
- data/test/tc_service.rb +1 -3
- data/test/tc_shorturl.rb +0 -1
- metadata +78 -50
- data/doc/classes/WWW.html +0 -113
data/doc/files/ChangeLog.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Sun Jan 06 15:55:17 -0800 2008</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -70,33 +70,12 @@
|
|
70
70
|
|
71
71
|
<div id="description">
|
72
72
|
<p>
|
73
|
-
0.8.
|
73
|
+
0.8.4:
|
74
74
|
</p>
|
75
75
|
<pre>
|
76
|
-
- Fixed
|
77
|
-
-
|
78
|
-
|
79
|
-
<p>
|
80
|
-
0.8.2:
|
81
|
-
</p>
|
82
|
-
<pre>
|
83
|
-
- Fixed unit tests
|
84
|
-
- Added shurl.org
|
85
|
-
- Added "random" service to bin/shorturl to pick a random one
|
86
|
-
- Removed shorl.com and skinnylink.com because they no longer seem to
|
87
|
-
be up and running
|
88
|
-
</pre>
|
89
|
-
<p>
|
90
|
-
0.8.1:
|
91
|
-
</p>
|
92
|
-
<pre>
|
93
|
-
- Wrapped the library in a WWW namespace
|
94
|
-
</pre>
|
95
|
-
<p>
|
96
|
-
0.8.0:
|
97
|
-
</p>
|
98
|
-
<pre>
|
99
|
-
- Made some improvements to bin/shorturl
|
76
|
+
- Fixed support for RubyURL.com
|
77
|
+
- Added support for urlTea.com
|
78
|
+
- Added support for moourl.com
|
100
79
|
</pre>
|
101
80
|
<p>
|
102
81
|
0.7.0:
|
data/doc/files/MIT-LICENSE.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Mon Sep 26 16:19:06 -0700 2005</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -70,7 +70,7 @@
|
|
70
70
|
|
71
71
|
<div id="description">
|
72
72
|
<p>
|
73
|
-
Copyright
|
73
|
+
Copyright (c) 2005, Vincent Foley
|
74
74
|
</p>
|
75
75
|
<p>
|
76
76
|
Permission is hereby granted, free of charge, to any person obtaining a
|
data/doc/files/README.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Sun Jan 06 15:48:40 -0800 2008</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -69,16 +69,16 @@
|
|
69
69
|
<div id="contextContent">
|
70
70
|
|
71
71
|
<div id="description">
|
72
|
-
<h1>ShortURL 0.8.
|
72
|
+
<h1><a href="../classes/ShortURL.html">ShortURL</a> 0.8.4</h1>
|
73
73
|
<h2>Summary</h2>
|
74
74
|
<p>
|
75
|
-
ShortURL is a very simple library to
|
76
|
-
|
75
|
+
<a href="../classes/ShortURL.html">ShortURL</a> is a very simple library to
|
76
|
+
use URL shortening services such as RubyURL, urlTea, and TinyURL.
|
77
77
|
</p>
|
78
78
|
<h2>Installation</h2>
|
79
79
|
<p>
|
80
|
-
ShortURL is available as a gem,
|
81
|
-
<tt>$ gem install
|
80
|
+
<a href="../classes/ShortURL.html">ShortURL</a> is available as a gem,
|
81
|
+
installation is just like any other gem: <tt>$ gem install shorturl</tt>
|
82
82
|
</p>
|
83
83
|
<p>
|
84
84
|
You can also download the tar.bz2 archive at <a
|
@@ -87,49 +87,68 @@ if you do not want to use the gem.
|
|
87
87
|
</p>
|
88
88
|
<h2>Supported services</h2>
|
89
89
|
<p>
|
90
|
-
Here is the list of the services supported by
|
90
|
+
Here is the list of the services supported by <a
|
91
|
+
href="../classes/ShortURL.html">ShortURL</a>:
|
91
92
|
</p>
|
92
93
|
<ul>
|
93
|
-
<li>
|
94
|
+
<li><a href="http://rubyurl.com">rubyurl.com</a>
|
94
95
|
|
95
96
|
</li>
|
96
|
-
<li>
|
97
|
+
<li><a href="http://tinyurl.com">tinyurl.com</a>
|
97
98
|
|
98
99
|
</li>
|
99
|
-
<li>
|
100
|
+
<li><a href="http://shorl.com">shorl.com</a>
|
100
101
|
|
101
102
|
</li>
|
102
|
-
<li>
|
103
|
+
<li><a href="http://snipurl.com">snipurl.com</a>
|
103
104
|
|
104
105
|
</li>
|
105
|
-
<li>
|
106
|
+
<li><a href="http://metamark.net">metamark.net</a>
|
106
107
|
|
107
108
|
</li>
|
108
|
-
<li>
|
109
|
+
<li><a href="http://makeashorterlink.com">makeashorterlink.com</a>
|
109
110
|
|
110
111
|
</li>
|
111
|
-
<li>
|
112
|
+
<li><a href="http://skinnylink.com">skinnylink.com</a>
|
112
113
|
|
113
114
|
</li>
|
114
|
-
<li>
|
115
|
+
<li><a href="http://linktrim.com">linktrim.com</a>
|
115
116
|
|
116
117
|
</li>
|
117
|
-
<li>
|
118
|
+
<li><a href="http://shorterlink.com">shorterlink.com</a>
|
118
119
|
|
119
120
|
</li>
|
120
|
-
<li>
|
121
|
+
<li><a href="http://minilink.org">minilink.org</a>
|
121
122
|
|
122
123
|
</li>
|
123
|
-
<li>
|
124
|
+
<li><a href="http://ln-s.net">ln-s.net</a>
|
124
125
|
|
125
126
|
</li>
|
126
|
-
<li>
|
127
|
+
<li><a href="http://fyad.org">fyad.org</a>
|
127
128
|
|
128
129
|
</li>
|
129
|
-
<li>
|
130
|
+
<li><a href="http://d62.net">d62.net</a>
|
130
131
|
|
131
132
|
</li>
|
132
|
-
<li>
|
133
|
+
<li><a href="http://shiturl.com">shiturl.com</a>
|
134
|
+
|
135
|
+
</li>
|
136
|
+
<li><a href="http://littlink.com">littlink.com</a>
|
137
|
+
|
138
|
+
</li>
|
139
|
+
<li><a href="http://clipurl.com">clipurl.com</a>
|
140
|
+
|
141
|
+
</li>
|
142
|
+
<li><a href="http://shortify.com">shortify.com</a>
|
143
|
+
|
144
|
+
</li>
|
145
|
+
<li><a href="http://0rz.net">0rz.net</a>
|
146
|
+
|
147
|
+
</li>
|
148
|
+
<li><a href="http://moourl.com">moourl.com</a>
|
149
|
+
|
150
|
+
</li>
|
151
|
+
<li><a href="http://urltea.com">urltea.com</a>
|
133
152
|
|
134
153
|
</li>
|
135
154
|
</ul>
|
@@ -139,36 +158,86 @@ call-seq:
|
|
139
158
|
</p>
|
140
159
|
<pre>
|
141
160
|
require "shorturl"
|
142
|
-
puts
|
143
|
-
puts
|
161
|
+
puts ShortURL.shorten("http://mypage.com")
|
162
|
+
puts ShortURL.shorten("http://mypage.com", :moourl)
|
144
163
|
</pre>
|
145
164
|
<p>
|
146
|
-
The second parameter represents the service you want to use.
|
147
|
-
documentation for <a href="../classes/WWW/ShortURL.html">WWW::ShortURL</a>
|
148
|
-
for a complete list
|
149
|
-
</p>
|
150
|
-
<p>
|
151
|
-
You can use <tt>ShortURL.valid_services</tt> to obtain a list of the valid
|
152
|
-
services (in case I forget to update the documentation)
|
165
|
+
The second parameter represents the service you want to use. These are:
|
153
166
|
</p>
|
167
|
+
<ul>
|
168
|
+
<li><tt>:rubyurl</tt>
|
169
|
+
|
170
|
+
</li>
|
171
|
+
<li><tt>:tinyurl</tt>
|
172
|
+
|
173
|
+
</li>
|
174
|
+
<li><tt>:shorl</tt>
|
175
|
+
|
176
|
+
</li>
|
177
|
+
<li><tt>:snipurl</tt>
|
178
|
+
|
179
|
+
</li>
|
180
|
+
<li><tt>:metamark</tt>
|
181
|
+
|
182
|
+
</li>
|
183
|
+
<li><tt>:makeashorterlink</tt>
|
184
|
+
|
185
|
+
</li>
|
186
|
+
<li><tt>:skinnylink</tt>
|
187
|
+
|
188
|
+
</li>
|
189
|
+
<li><tt>:linktrim</tt>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
<li><tt>:shorterlink</tt>
|
193
|
+
|
194
|
+
</li>
|
195
|
+
<li><tt>:minlink</tt>
|
196
|
+
|
197
|
+
</li>
|
198
|
+
<li><tt>:lns</tt>
|
199
|
+
|
200
|
+
</li>
|
201
|
+
<li><tt>:fyad</tt>
|
202
|
+
|
203
|
+
</li>
|
204
|
+
<li><tt>:d62</tt>
|
205
|
+
|
206
|
+
</li>
|
207
|
+
<li><tt>:shiturl</tt>
|
208
|
+
|
209
|
+
</li>
|
210
|
+
<li><tt>:littlink</tt>
|
211
|
+
|
212
|
+
</li>
|
213
|
+
<li><tt>:clipurl</tt>
|
214
|
+
|
215
|
+
</li>
|
216
|
+
<li><tt>:shortify</tt>
|
217
|
+
|
218
|
+
</li>
|
219
|
+
<li><tt>:orz</tt>
|
220
|
+
|
221
|
+
</li>
|
222
|
+
<li><tt>:moourl</tt>
|
223
|
+
|
224
|
+
</li>
|
225
|
+
<li><tt>:urltea</tt>
|
226
|
+
|
227
|
+
</li>
|
228
|
+
</ul>
|
154
229
|
<p>
|
155
|
-
You can
|
156
|
-
|
230
|
+
You can use <tt><a
|
231
|
+
href="../classes/ShortURL.html#M000001">ShortURL.valid_services</a></tt> to
|
232
|
+
obtain a list of the valid services (in case I forget to update the
|
233
|
+
documentation)
|
157
234
|
</p>
|
158
|
-
<pre>
|
159
|
-
$ shorturl www.google.com
|
160
|
-
http://rubyurl.com/fuuUw
|
161
|
-
$ shorturl -s tinyurl www.google.com
|
162
|
-
http://tinyurl.com/1c2
|
163
|
-
$ shorturl -s random www.google.com
|
164
|
-
http://linktrim.com/42k
|
165
|
-
</pre>
|
166
235
|
<h2>Thanks</h2>
|
167
236
|
<ul>
|
168
237
|
<li>Marcel Molina Jr., Devin Mullins for some ideas
|
169
238
|
|
170
239
|
</li>
|
171
|
-
<li>imperator from ruby-lang (I don&#
|
240
|
+
<li>imperator from ruby-lang (I don‘t know your real name, sorry) for
|
172
241
|
helping me with creating and uploading a RubyGem
|
173
242
|
|
174
243
|
</li>
|
@@ -176,10 +245,15 @@ helping me with creating and uploading a RubyGem
|
|
176
245
|
|
177
246
|
</li>
|
178
247
|
</ul>
|
179
|
-
<h2>
|
180
|
-
<
|
181
|
-
Vincent Foley
|
182
|
-
|
248
|
+
<h2>Authors</h2>
|
249
|
+
<ul>
|
250
|
+
<li>Vincent Foley (original developer)
|
251
|
+
|
252
|
+
</li>
|
253
|
+
<li>Robby Russell <robbyrussell@gmail.com>
|
254
|
+
|
255
|
+
</li>
|
256
|
+
</ul>
|
183
257
|
|
184
258
|
</div>
|
185
259
|
|
data/doc/files/TODO.html
CHANGED
data/doc/fr_class_index.html
CHANGED
@@ -20,10 +20,9 @@
|
|
20
20
|
<div id="index">
|
21
21
|
<h1 class="section-bar">Classes</h1>
|
22
22
|
<div id="index-entries">
|
23
|
-
<a href="classes/
|
24
|
-
<a href="classes/
|
25
|
-
<a href="classes/
|
26
|
-
<a href="classes/WWW/ShortURL.html">WWW::ShortURL</a><br />
|
23
|
+
<a href="classes/InvalidService.html">InvalidService</a><br />
|
24
|
+
<a href="classes/Service.html">Service</a><br />
|
25
|
+
<a href="classes/ShortURL.html">ShortURL</a><br />
|
27
26
|
</div>
|
28
27
|
</div>
|
29
28
|
</body>
|
data/doc/fr_method_index.html
CHANGED
@@ -20,10 +20,10 @@
|
|
20
20
|
<div id="index">
|
21
21
|
<h1 class="section-bar">Methods</h1>
|
22
22
|
<div id="index-entries">
|
23
|
-
<a href="classes/
|
24
|
-
<a href="classes/
|
25
|
-
<a href="classes/
|
26
|
-
<a href="classes/
|
23
|
+
<a href="classes/Service.html#M000004">call (Service)</a><br />
|
24
|
+
<a href="classes/Service.html#M000003">new (Service)</a><br />
|
25
|
+
<a href="classes/ShortURL.html#M000002">shorten (ShortURL)</a><br />
|
26
|
+
<a href="classes/ShortURL.html#M000001">valid_services (ShortURL)</a><br />
|
27
27
|
</div>
|
28
28
|
</div>
|
29
29
|
</body>
|
@@ -0,0 +1 @@
|
|
1
|
+
support/examples
|
data/examples/CVS/Root
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
:pserver:anonymous@rubyforge.org:/var/cvs/shorturl
|
data/lib/CVS/Entries
ADDED
data/lib/CVS/Repository
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
support/lib
|
data/lib/CVS/Root
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
:pserver:anonymous@rubyforge.org:/var/cvs/shorturl
|