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 CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/imagize.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{imagize}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Raymond van Dongelen"]
data/lib/imagize.rb CHANGED
@@ -36,9 +36,11 @@ module Imagize
36
36
  :imgly =>{
37
37
  :url => "http://img.ly/",
38
38
  :convert => "http://img.ly/show/full/§ID§"
39
- }
40
-
41
-
39
+ },
40
+ :mobyto => {
41
+ :url => "http://moby.to/",
42
+ :convert => "http://moby.to/§ID§:full"
43
+ }
42
44
 
43
45
  }
44
46
  SHORTENERS = {
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"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Raymond van Dongelen