imagize 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/imagize.gemspec +1 -1
- data/lib/imagize.rb +5 -3
- data/spec/imagize_spec.rb +6 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/imagize.gemspec
CHANGED
data/lib/imagize.rb
CHANGED
data/spec/imagize_spec.rb
CHANGED
@@ -76,7 +76,12 @@ describe "Imagize" do
|
|
76
76
|
|
77
77
|
urls[0].should == "http://img.ly/show/full/2oii"
|
78
78
|
end
|
79
|
-
|
79
|
+
it "should extract moby.to" do
|
80
|
+
urls= @imagizer.imagize "Thats Ma Cock pa...RT @SirKumNflex @kingkong it look like u like #teamuncut u rep it or u just like it? http://moby.to/40p2s4"
|
81
|
+
urls.size.should == 1
|
82
|
+
|
83
|
+
urls[0].should == "http://moby.to/40p2s4:full"
|
84
|
+
end
|
80
85
|
it "should create normal urls" do
|
81
86
|
@imagizer.make_url(:twitpic, "hi").should == "http://twitpic.com/show/large/hi"
|
82
87
|
@imagizer.make_url(:yfrog, "hi").should == "http://yfrog.com/hi:iphone"
|