shorturl 0.8.7 → 0.8.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +2 -0
  2. data/lib/shorturl.rb +7 -0
  3. metadata +2 -2
data/README CHANGED
@@ -33,6 +33,7 @@ Here is the list of the services supported by ShortURL:
33
33
  * http://0rz.net
34
34
  * http://moourl.com
35
35
  * http://urltea.com
36
+ * http://vurl.me
36
37
 
37
38
  == Usage:
38
39
  call-seq:
@@ -61,6 +62,7 @@ The second parameter represents the service you want to use. These are:
61
62
  * <tt>:orz</tt>
62
63
  * <tt>:moourl</tt>
63
64
  * <tt>:urltea</tt>
65
+ * <tt>:vurl</tt>
64
66
 
65
67
 
66
68
  You can use <tt>ShortURL.valid_services</tt> to obtain a
@@ -137,6 +137,13 @@ class ShortURL
137
137
  s.action = "/"
138
138
  s.field = "longurl"
139
139
  s.block = lambda { |body| URI.extract(body).grep(/ur1/)[0] }
140
+ },
141
+
142
+ :vurl => Service.new("vurl.me") { |s|
143
+ s.method = :get
144
+ s.action = "/shorten"
145
+ s.field = "url"
146
+ s.block = lambda { |body| body }
140
147
  }
141
148
 
142
149
  # :skinnylink => Service.new("skinnylink.com") { |s|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shorturl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robby Russell
@@ -9,7 +9,7 @@ autorequire: shorturl
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-09 00:00:00 -07:00
12
+ date: 2010-03-08 00:00:00 -08:00
13
13
  default_executable: shorturl
14
14
  dependencies: []
15
15