url_expander 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module UrlExpander
|
2
|
+
module Expanders
|
3
|
+
#
|
4
|
+
# Expand dlvr.it URLS
|
5
|
+
# Usage:
|
6
|
+
# UrlExpander::Client.expand("http://dlvr.it/ccG3g")
|
7
|
+
#
|
8
|
+
class Dlvrit < UrlExpander::Expanders::Basic
|
9
|
+
PATTERN = %r'(http://dlvr\.it(/[\w/]+))'
|
10
|
+
attr_reader :parent_klass
|
11
|
+
|
12
|
+
def initialize(short_url="", options={})
|
13
|
+
@parent_klass = self
|
14
|
+
super(short_url, options)
|
15
|
+
end
|
16
|
+
|
17
|
+
class Request
|
18
|
+
include HTTParty
|
19
|
+
base_uri 'http://dlvr.it'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module UrlExpander
|
2
|
+
module Expanders
|
3
|
+
#
|
4
|
+
# Expand plizy URLS
|
5
|
+
# Usage:
|
6
|
+
# UrlExpander::Client.expand("http://plizy.com/jzW29w")
|
7
|
+
#
|
8
|
+
class Plizy < UrlExpander::Expanders::Basic
|
9
|
+
PATTERN = %r'(http://plizy\.com(/[\w/]+))'
|
10
|
+
attr_reader :parent_klass
|
11
|
+
|
12
|
+
def initialize(short_url="", options={})
|
13
|
+
@parent_klass = self
|
14
|
+
super(short_url, options)
|
15
|
+
end
|
16
|
+
|
17
|
+
class Request
|
18
|
+
include HTTParty
|
19
|
+
base_uri 'http://plizy.com'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module UrlExpander
|
2
|
+
module Expanders
|
3
|
+
#
|
4
|
+
# Expand tnw.to URLS
|
5
|
+
# Usage:
|
6
|
+
# UrlExpander::Client.expand("http://tnw.to/1A3qT")
|
7
|
+
#
|
8
|
+
class Tnwto < UrlExpander::Expanders::Basic
|
9
|
+
PATTERN = %r'(http://tnw\.to(/[\w/]+))'
|
10
|
+
attr_reader :parent_klass
|
11
|
+
|
12
|
+
def initialize(short_url="", options={})
|
13
|
+
@parent_klass = self
|
14
|
+
super(short_url, options)
|
15
|
+
end
|
16
|
+
|
17
|
+
class Request
|
18
|
+
include HTTParty
|
19
|
+
base_uri 'http://tnw.to'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -30,6 +30,10 @@ module UrlExpander
|
|
30
30
|
autoload :Ur1ca, 'basic/ur1ca'
|
31
31
|
autoload :Supr, 'basic/supr'
|
32
32
|
autoload :T11me, 'basic/t11me'
|
33
|
+
autoload :Tnwto, 'basic/tnwto'
|
34
|
+
autoload :Dlvrit, 'basic/dlvrit'
|
35
|
+
autoload :Plizy, 'basic/plizy'
|
36
|
+
|
33
37
|
|
34
38
|
# Using API
|
35
39
|
autoload :Bitly, 'api/bitly'
|
data/url_expander.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{url_expander}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Moski"]
|
12
|
-
s.date = %q{2011-07-
|
12
|
+
s.date = %q{2011-07-29}
|
13
13
|
s.description = %q{Expand short urls from shortning services shuch as bitly and tinyurl}
|
14
14
|
s.email = %q{abushaikh@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -39,6 +39,7 @@ Gem::Specification.new do |s|
|
|
39
39
|
"lib/url_expander/expanders/basic.rb",
|
40
40
|
"lib/url_expander/expanders/basic/adjix.rb",
|
41
41
|
"lib/url_expander/expanders/basic/digbig.rb",
|
42
|
+
"lib/url_expander/expanders/basic/dlvrit.rb",
|
42
43
|
"lib/url_expander/expanders/basic/doiop.rb",
|
43
44
|
"lib/url_expander/expanders/basic/easyurljp.rb",
|
44
45
|
"lib/url_expander/expanders/basic/fbme.rb",
|
@@ -48,6 +49,7 @@ Gem::Specification.new do |s|
|
|
48
49
|
"lib/url_expander/expanders/basic/notlong.rb",
|
49
50
|
"lib/url_expander/expanders/basic/nutshellurl.rb",
|
50
51
|
"lib/url_expander/expanders/basic/owly.rb",
|
52
|
+
"lib/url_expander/expanders/basic/plizy.rb",
|
51
53
|
"lib/url_expander/expanders/basic/shrtst.rb",
|
52
54
|
"lib/url_expander/expanders/basic/snipurl.rb",
|
53
55
|
"lib/url_expander/expanders/basic/supr.rb",
|
@@ -56,6 +58,7 @@ Gem::Specification.new do |s|
|
|
56
58
|
"lib/url_expander/expanders/basic/tighturl.rb",
|
57
59
|
"lib/url_expander/expanders/basic/tinycc.rb",
|
58
60
|
"lib/url_expander/expanders/basic/tinyurl.rb",
|
61
|
+
"lib/url_expander/expanders/basic/tnwto.rb",
|
59
62
|
"lib/url_expander/expanders/basic/twurlnl.rb",
|
60
63
|
"lib/url_expander/expanders/basic/ur1ca.rb",
|
61
64
|
"lib/url_expander/expanders/basic/urlie.rb",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: url_expander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Moski
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-07-
|
18
|
+
date: 2011-07-29 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -154,6 +154,7 @@ files:
|
|
154
154
|
- lib/url_expander/expanders/basic.rb
|
155
155
|
- lib/url_expander/expanders/basic/adjix.rb
|
156
156
|
- lib/url_expander/expanders/basic/digbig.rb
|
157
|
+
- lib/url_expander/expanders/basic/dlvrit.rb
|
157
158
|
- lib/url_expander/expanders/basic/doiop.rb
|
158
159
|
- lib/url_expander/expanders/basic/easyurljp.rb
|
159
160
|
- lib/url_expander/expanders/basic/fbme.rb
|
@@ -163,6 +164,7 @@ files:
|
|
163
164
|
- lib/url_expander/expanders/basic/notlong.rb
|
164
165
|
- lib/url_expander/expanders/basic/nutshellurl.rb
|
165
166
|
- lib/url_expander/expanders/basic/owly.rb
|
167
|
+
- lib/url_expander/expanders/basic/plizy.rb
|
166
168
|
- lib/url_expander/expanders/basic/shrtst.rb
|
167
169
|
- lib/url_expander/expanders/basic/snipurl.rb
|
168
170
|
- lib/url_expander/expanders/basic/supr.rb
|
@@ -171,6 +173,7 @@ files:
|
|
171
173
|
- lib/url_expander/expanders/basic/tighturl.rb
|
172
174
|
- lib/url_expander/expanders/basic/tinycc.rb
|
173
175
|
- lib/url_expander/expanders/basic/tinyurl.rb
|
176
|
+
- lib/url_expander/expanders/basic/tnwto.rb
|
174
177
|
- lib/url_expander/expanders/basic/twurlnl.rb
|
175
178
|
- lib/url_expander/expanders/basic/ur1ca.rb
|
176
179
|
- lib/url_expander/expanders/basic/urlie.rb
|