imagize 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{imagize}
8
- s.version = "0.4.0"
8
+ s.version = "0.5.0"
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"]
12
- s.date = %q{2011-05-26}
12
+ s.date = %q{2011-08-28}
13
13
  s.description = %q{Retrieve images from a tweet}
14
14
  s.email = %q{dongelen@nhl.nl}
15
15
  s.extra_rdoc_files = [
@@ -25,11 +25,11 @@ module Imagize
25
25
  :url => "http://tweetphoto.com/",
26
26
  :convert => "http://tweetphotoapi.com/api/TPAPI.svc/imagefromurl?size=big&url=http://tweetphoto.com/§ID§"
27
27
  },
28
- :plixi => {
28
+ :lockerz => {
29
29
  :url => "http://lockerz.com/s/",
30
30
  :convert => "http://api.plixi.com/api/tpapi.svc/imagefromurl?size=big&url=http://lockerz.com/s/§ID§"
31
31
  },
32
- :lockerz => {
32
+ :plixi => {
33
33
  :url => "http://plixi.com/p/",
34
34
  :convert => "http://api.plixi.com/api/tpapi.svc/imagefromurl?size=big&url=http://plixi.com/§ID§"
35
35
  },
@@ -45,8 +45,11 @@ module Imagize
45
45
  :mobyto => {
46
46
  :url => "http://moby.to/",
47
47
  :convert => "http://moby.to/§ID§:full"
48
- }
49
-
48
+ },
49
+ :instagram => {
50
+ :url => "http://instagr.am/p/",
51
+ :convert => "http://instagr.am/p/§ID§/media/?size=t"
52
+ }
50
53
  }
51
54
  SHORTENERS = {
52
55
  :bitly => {
@@ -92,7 +92,14 @@ describe "Imagize" do
92
92
  urls.size.should == 1
93
93
 
94
94
  urls[0].should == "http://img.ly/show/full/2oii"
95
- end
95
+ end
96
+
97
+ it "should extract instagram" do
98
+ urls= @imagizer.imagize "hsadfbkasdfkab http://instagr.am/p/LdVQg/ #porrauol Que falha é essa na página principal...?"
99
+ urls.size.should == 1
100
+
101
+ urls[0].should == "http://instagr.am/p/LdVQg/media/?size=t"
102
+ end
96
103
  it "should extract moby.to" do
97
104
  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"
98
105
  urls.size.should == 1
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 4
7
+ - 5
8
8
  - 0
9
- version: 0.4.0
9
+ version: 0.5.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Raymond van Dongelen
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-05-26 00:00:00 +02:00
17
+ date: 2011-08-28 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency