thornbed 0.3.5 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb343131f9f7c4503071cb29fb3bfd639c4e514a
4
- data.tar.gz: 5e5395a7e4e5e9132ef7ff252ee8ccddb5d78ecd
3
+ metadata.gz: 339c2a56b5a3cc92999c3b2100e90b8fe1ea83bf
4
+ data.tar.gz: d946fbb79796b4e0239f30a57d22b1db0f167d43
5
5
  SHA512:
6
- metadata.gz: 7b4bb2aced84164eabc32cbb3a57f7efadc8569ef9da5582a1ebc5cd73c13bc95f2c46de9c3003aab279aba02f5b42b9b25475a938e70a475a17ed375703ff7c
7
- data.tar.gz: 52aa1b9e5a7c275b89dd17a84ca771604becf73780a80179715638d68e6efad78a2e840bc8ddc1671efaf8a138a46795a7fd648e5666063af1b9bcfc83d0cb78
6
+ metadata.gz: a242a8755dcb70179e96a1a4bb983bc61598c8642c7b16b8691ae6f7d711578a8550dbbc764fc6ef6af748295486e7eaab4bc3da34143ab629bf62403544d52f
7
+ data.tar.gz: 26ef5ae71eaef9292caa213d02b9b2e3322c9c2eec09b86face6775350108bdb3dd4f10163fdfd08a7432300396bad3731e3c752b82778ac78552f25a8e48969
data/README.md CHANGED
@@ -22,20 +22,16 @@ Or install it yourself as:
22
22
 
23
23
  >> require "thornbed"
24
24
  => true
25
- >> Thornbed.get("http://instagram.com/p/SOlosmBgoZ/")
26
- => {"provider_url"=>"http://instagram.com/",
27
- "media_id"=>"328365347227175449_43815385",
28
- "title"=>"Smile",
29
- "url"=>
30
- "http://distilleryimage1.instagram.com/b43af7ce329811e281d822000a1f9682_7.jpg",
31
- "author_name"=>"esteban108",
32
- "height"=>612,
33
- "width"=>612,
34
- "version"=>"1.0",
35
- "author_url"=>"http://instagram.com/",
36
- "author_id"=>43815385,
25
+ >> Thornbed.get("http://imgur.com/DHe9T")
26
+ => {"url"=>"http://i.imgur.com/DHe9T.jpg",
37
27
  "type"=>"photo",
38
- "provider_name"=>"Instagram"}
28
+ "provider_name"=>"Imgur",
29
+ "provider_url"=>"http://imgur.com",
30
+ "thumbnail_url"=>"http://i.imgur.com/DHe9Ts.jpg",
31
+ "version"=>"1.0",
32
+ "page"=>"http://imgur.com/DHe9T",
33
+ "width"=>nil,
34
+ "height"=>nil}
39
35
 
40
36
  ## Adding new providers
41
37
 
@@ -56,4 +52,4 @@ You should inherit from `Thornbed::Providers::Provider`. See imgur.rb for an exa
56
52
 
57
53
  ## Contributors
58
54
 
59
- * [frodsan](https://github.com/frodsan)
55
+ * [frodsan](https://github.com/frodsan)
@@ -17,15 +17,15 @@ module Thornbed::Providers
17
17
  pic_id = url.path == '/fast' ? url.fragment : /(\d+)/.match(url.path)[0]
18
18
 
19
19
  {
20
- url: "http://d24w6bsrhbeh9d.cloudfront.net/photo/#{pic_id}_700b.#{ptype}",
21
- type: "photo",
22
- provider_name: provider_name,
23
- provider_url: "http://9gag.com",
24
- thumbnail_url: "http://d24w6bsrhbeh9d.cloudfront.net/photo/#{pic_id}_fbthumbnail.#{ptype}",
25
- version: "1.0",
26
- page: "http://9gag.com/gag/#{pic_id}",
27
- width: nil,
28
- height: nil
20
+ "url" => "http://d24w6bsrhbeh9d.cloudfront.net/photo/#{pic_id}_700b.#{ptype}",
21
+ "type" => "photo",
22
+ "provider_name" => provider_name,
23
+ "provider_url" => "http://9gag.com",
24
+ "thumbnail_url" => "http://d24w6bsrhbeh9d.cloudfront.net/photo/#{pic_id}_fbthumbnail.#{ptype}",
25
+ "version" => "1.0",
26
+ "page" => "http://9gag.com/gag/#{pic_id}",
27
+ "width" => nil,
28
+ "height" => nil
29
29
  }
30
30
  end
31
31
  end
@@ -31,15 +31,15 @@ module Thornbed::Providers
31
31
  ptype = md[:ptype] || ".jpg"
32
32
 
33
33
  {
34
- url: "http://i.imgur.com/#{pid}#{ptype}",
35
- type: "photo",
36
- provider_name: provider_name,
37
- provider_url: "http://imgur.com",
38
- thumbnail_url: "http://i.imgur.com/#{pid}s#{ptype}",
39
- version: "1.0",
40
- page: "http://imgur.com/#{pid}",
41
- width: nil,
42
- height: nil
34
+ "url" => "http://i.imgur.com/#{pid}#{ptype}",
35
+ "type" => "photo",
36
+ "provider_name" => provider_name,
37
+ "provider_url" => "http://imgur.com",
38
+ "thumbnail_url" => "http://i.imgur.com/#{pid}s#{ptype}",
39
+ "version" => "1.0",
40
+ "page" => "http://imgur.com/#{pid}",
41
+ "width" => nil,
42
+ "height" => nil
43
43
  }
44
44
  end
45
45
  end
@@ -18,15 +18,15 @@ module Thornbed::Providers
18
18
  slug = res[2]
19
19
 
20
20
  {
21
- url: "http://memecrunch.com/meme/#{pic_id}/#{slug}/image.png",
22
- type: "photo",
23
- provider_name: provider_name,
24
- provider_url: "http://memecrunch.com",
25
- thumbnail_url: "http://memecrunch.com/meme/#{pic_id}/#{slug}/image.png?w=75",
26
- version: "1.0",
27
- page: "http://memecrunch.com/meme/#{pic_id}/#{slug}/",
28
- width: nil,
29
- height: nil
21
+ "url" => "http://memecrunch.com/meme/#{pic_id}/#{slug}/image.png",
22
+ "type" => "photo",
23
+ "provider_name" => provider_name,
24
+ "provider_url" => "http://memecrunch.com",
25
+ "thumbnail_url" => "http://memecrunch.com/meme/#{pic_id}/#{slug}/image.png?w=75",
26
+ "version" => "1.0",
27
+ "page" => "http://memecrunch.com/meme/#{pic_id}/#{slug}/",
28
+ "width" => nil,
29
+ "height" => nil
30
30
  }
31
31
  end
32
32
  end
@@ -15,15 +15,15 @@ module Thornbed::Providers
15
15
  ptype = "jpg"
16
16
  pic_id = /(\d+x\/)?\d+(\.jpg)?(\?[\w\W]*)?$/.match(url.path)
17
17
  {
18
- url: "http://cdn.memegenerator.net/instances/400x/#{pic_id}.#{ptype}",
19
- type: "photo",
20
- provider_name: provider_name,
21
- provider_url: "http://memegenerator.com",
22
- thumbnail_url: "http://cdn.memegenerator.net/instances/100x/#{pic_id}.#{ptype}",
23
- version: "1.0",
24
- page: "http://memegenerator.net/instance/#{pic_id}",
25
- width: nil,
26
- height: nil
18
+ "url" => "http://cdn.memegenerator.net/instances/400x/#{pic_id}.#{ptype}",
19
+ "type" => "photo",
20
+ "provider_name" => provider_name,
21
+ "provider_url" => "http://memegenerator.com",
22
+ "thumbnail_url" => "http://cdn.memegenerator.net/instances/100x/#{pic_id}.#{ptype}",
23
+ "version" => "1.0",
24
+ "page" => "http://memegenerator.net/instance/#{pic_id}",
25
+ "width" => nil,
26
+ "height" => nil
27
27
  }
28
28
  end
29
29
  end
@@ -24,15 +24,15 @@ module Thornbed::Providers
24
24
  end
25
25
 
26
26
  {
27
- url: "http://i.qkme.me/#{pic_id}.#{ptype}",
28
- type: "photo",
29
- provider_name: provider_name,
30
- provider_url: "http://quickmeme.com",
31
- thumbnail_url: "http://t.qkme.me/#{pic_id}.#{ptype}",
32
- version: "1.0",
33
- page: "http://quickmeme.com/#{pic_id}/",
34
- width: nil,
35
- height: nil
27
+ "url" => "http://i.qkme.me/#{pic_id}.#{ptype}",
28
+ "type" => "photo",
29
+ "provider_name" => provider_name,
30
+ "provider_url" => "http://quickmeme.com",
31
+ "thumbnail_url" => "http://t.qkme.me/#{pic_id}.#{ptype}",
32
+ "version" => "1.0",
33
+ "page" => "http://quickmeme.com/#{pic_id}/",
34
+ "width" => nil,
35
+ "height" => nil
36
36
  }
37
37
  end
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module Thornbed
2
- VERSION = "0.3.5"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -16,29 +16,29 @@ describe "NineGag" do
16
16
  it "should return OEmbed hash for NineGag urls" do
17
17
  ninegag = Thornbed::Providers::NineGag.new
18
18
  res = ninegag.get("http://9gag.com/gag/5931764")
19
- res.should include(url: "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_700b.jpg")
19
+ res.should include("url" => "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_700b.jpg")
20
20
 
21
21
  res = ninegag.get("http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_700b.jpg")
22
- res.should include(url: "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_700b.jpg")
22
+ res.should include("url" => "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_700b.jpg")
23
23
 
24
24
  res = ninegag.get("http://9gag.com/gag/5929873?ref=popular")
25
- res.should include(url: "http://d24w6bsrhbeh9d.cloudfront.net/photo/5929873_700b.jpg")
25
+ res.should include("url" => "http://d24w6bsrhbeh9d.cloudfront.net/photo/5929873_700b.jpg")
26
26
 
27
27
  res = ninegag.get("http://9gag.com/fast#5931764")
28
- res.should include(url: "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_700b.jpg")
28
+ res.should include("url" => "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_700b.jpg")
29
29
  end
30
30
 
31
31
  it "should discover NineGag provider" do
32
32
  res = Thornbed.get("http://9gag.com/gag/5931764")
33
- res.should include(url: "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_700b.jpg")
34
- res.should include(thumbnail_url: "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_fbthumbnail.jpg")
35
- res.should include(page: "http://9gag.com/gag/5931764")
36
- res.should include(provider_name: "NineGag")
33
+ res.should include("url" => "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_700b.jpg")
34
+ res.should include("thumbnail_url" => "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_fbthumbnail.jpg")
35
+ res.should include("page" => "http://9gag.com/gag/5931764")
36
+ res.should include("provider_name" => "NineGag")
37
37
 
38
38
  res = Thornbed.get("http://9gag.com/fast#5931764")
39
- res.should include(url: "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_700b.jpg")
40
- res.should include(thumbnail_url: "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_fbthumbnail.jpg")
41
- res.should include(page: "http://9gag.com/gag/5931764")
42
- res.should include(provider_name: "NineGag")
39
+ res.should include("url" => "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_700b.jpg")
40
+ res.should include("thumbnail_url" => "http://d24w6bsrhbeh9d.cloudfront.net/photo/5931764_fbthumbnail.jpg")
41
+ res.should include("page" => "http://9gag.com/gag/5931764")
42
+ res.should include("provider_name" => "NineGag")
43
43
  end
44
44
  end
@@ -17,6 +17,7 @@ describe "Imgur" do
17
17
  imgur.valid?('http://i.imgur.com/N2IDN.gif').should be_true
18
18
  imgur.valid?('http://i.imgur.com/A0TP9s.jpg').should be_true
19
19
  imgur.valid?('http://www.imgur.com/RUUuR.jpeg').should be_true
20
+ imgur.valid?('http://i.imgur.com/9XPKUJLh.jpg').should be_true
20
21
  imgur.valid?('http://imgur.com/LcbbCHv').should be_true
21
22
  imgur.valid?('http://imgur.com/0TczaPb').should be_true
22
23
  imgur.valid?('http://imgur.com/none').should be_false
@@ -27,46 +28,49 @@ describe "Imgur" do
27
28
  it "should return OEmbed hash for imgur urls" do
28
29
  imgur = Thornbed::Providers::Imgur.new
29
30
  res = imgur.get('http://imgur.com/gallery/A0TP9')
30
- res.should include(url: 'http://i.imgur.com/A0TP9.jpg')
31
+ res.should include("url" => 'http://i.imgur.com/A0TP9.jpg')
31
32
 
32
33
  res = imgur.get('http://i.imgur.com/A0TP9.png')
33
- res.should include(url: 'http://i.imgur.com/A0TP9.png')
34
+ res.should include("url" => 'http://i.imgur.com/A0TP9.png')
34
35
 
35
36
  res = imgur.get('http://i.imgur.com/A0TP9.gif')
36
- res.should include(url: 'http://i.imgur.com/A0TP9.gif')
37
+ res.should include("url" => 'http://i.imgur.com/A0TP9.gif')
37
38
 
38
39
  res = imgur.get('http://i.imgur.com/A0TP9.jpg')
39
- res.should include(url: 'http://i.imgur.com/A0TP9.jpg')
40
+ res.should include("url" => 'http://i.imgur.com/A0TP9.jpg')
40
41
 
41
42
  res = imgur.get('http://i.imgur.com/PFaps.jpg')
42
- res.should include(url: 'http://i.imgur.com/PFaps.jpg')
43
+ res.should include("url" => 'http://i.imgur.com/PFaps.jpg')
43
44
 
44
45
  res = imgur.get('http://imgur.com/SruWT?full')
45
- res.should include(url: 'http://i.imgur.com/SruWT.jpg')
46
+ res.should include("url" => 'http://i.imgur.com/SruWT.jpg')
46
47
 
47
48
  res = imgur.get('http://i.imgur.com/DE7Rbl.jpg')
48
- res.should include(url: 'http://i.imgur.com/DE7Rb.jpg')
49
+ res.should include("url" => 'http://i.imgur.com/DE7Rb.jpg')
49
50
 
50
51
  res = imgur.get('http://i.imgur.com/N2IDN.gif')
51
- res.should include(url: 'http://i.imgur.com/N2IDN.gif')
52
+ res.should include("url" => 'http://i.imgur.com/N2IDN.gif')
52
53
 
53
54
  res = imgur.get('http://i.imgur.com/A0TP9s.jpg')
54
- res.should include(url: 'http://i.imgur.com/A0TP9.jpg')
55
+ res.should include("url" => 'http://i.imgur.com/A0TP9.jpg')
55
56
 
56
57
  res = imgur.get('http://www.imgur.com/RUUuR.jpeg')
57
- res.should include(url: 'http://i.imgur.com/RUUuR.jpeg')
58
+ res.should include("url" => 'http://i.imgur.com/RUUuR.jpeg')
58
59
 
59
60
  res = imgur.get('http://imgur.com/LcbbCHv')
60
- res.should include(url: 'http://i.imgur.com/LcbbCHv.jpg')
61
+ res.should include("url" => 'http://i.imgur.com/LcbbCHv.jpg')
61
62
 
62
63
  res = imgur.get('http://i.imgur.com/LcbbCHvs.jpg')
63
- res.should include(url: 'http://i.imgur.com/LcbbCHv.jpg')
64
+ res.should include("url" => 'http://i.imgur.com/LcbbCHv.jpg')
64
65
 
65
66
  res = imgur.get('http://imgur.com/0TczaPb')
66
- res.should include(url: 'http://i.imgur.com/0TczaPb.jpg')
67
+ res.should include("url" => 'http://i.imgur.com/0TczaPb.jpg')
67
68
 
68
69
  res = imgur.get('http://i.imgur.com/xQdLBoVl.jpg')
69
- res.should include(url: 'http://i.imgur.com/xQdLBoV.jpg')
70
+ res.should include("url" => 'http://i.imgur.com/xQdLBoV.jpg')
71
+
72
+ res = imgur.get('http://i.imgur.com/9XPKUJLh.jpg')
73
+ res.should include("url" => 'http://i.imgur.com/9XPKUJL.jpg')
70
74
 
71
75
  lambda { imgur.get('http://imgur.com/none') }.should raise_error(Thornbed::NotValid)
72
76
  lambda { imgur.get('http://imgur.com/none.jpg') }.should raise_error(Thornbed::NotValid)
@@ -75,7 +79,7 @@ describe "Imgur" do
75
79
 
76
80
  it "should discover Imgur provider" do
77
81
  res = Thornbed.get('http://imgur.com/N2IDN')
78
- res.should include(url: 'http://i.imgur.com/N2IDN.jpg')
79
- res.should include(provider_name: "Imgur")
82
+ res.should include("url" => 'http://i.imgur.com/N2IDN.jpg')
83
+ res.should include("provider_name" => "Imgur")
80
84
  end
81
85
  end
@@ -15,32 +15,32 @@ describe "Memecrunch" do
15
15
  it "should return OEmbed hash for Memecrunch urls" do
16
16
  memecrunch = Thornbed::Providers::Memecrunch.new
17
17
  res = memecrunch.get("http://memecrunch.com/meme/CHDE/when-browsing-r-new")
18
- res.should include(url: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
18
+ res.should include("url" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
19
19
 
20
20
  res = memecrunch.get("http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
21
- res.should include(url: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
21
+ res.should include("url" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
22
22
 
23
23
  res = memecrunch.get("http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png?w=75")
24
- res.should include(url: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
24
+ res.should include("url" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
25
25
  end
26
26
 
27
27
  it "should discover Memecrunch provider" do
28
28
  res = Thornbed.get("http://memecrunch.com/meme/CHDE/when-browsing-r-new")
29
- res.should include(url: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
30
- res.should include(thumbnail_url: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png?w=75")
31
- res.should include(page: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/")
32
- res.should include(provider_name: "Memecrunch")
29
+ res.should include("url" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
30
+ res.should include("thumbnail_url" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png?w=75")
31
+ res.should include("page" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/")
32
+ res.should include("provider_name" => "Memecrunch")
33
33
 
34
34
  res = Thornbed.get("http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
35
- res.should include(url: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
36
- res.should include(thumbnail_url: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png?w=75")
37
- res.should include(page: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/")
38
- res.should include(provider_name: "Memecrunch")
35
+ res.should include("url" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
36
+ res.should include("thumbnail_url" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png?w=75")
37
+ res.should include("page" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/")
38
+ res.should include("provider_name" => "Memecrunch")
39
39
 
40
40
  res = Thornbed.get("http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png?w=75")
41
- res.should include(url: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
42
- res.should include(thumbnail_url: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png?w=75")
43
- res.should include(page: "http://memecrunch.com/meme/CHDE/when-browsing-r-new/")
44
- res.should include(provider_name: "Memecrunch")
41
+ res.should include("url" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png")
42
+ res.should include("thumbnail_url" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/image.png?w=75")
43
+ res.should include("page" => "http://memecrunch.com/meme/CHDE/when-browsing-r-new/")
44
+ res.should include("provider_name" => "Memecrunch")
45
45
  end
46
46
  end
@@ -15,13 +15,13 @@ describe "Memegenerator" do
15
15
  it "should return OEmbed hash for Memegenerator urls" do
16
16
  memegenerator = Thornbed::Providers::Memegenerator.new
17
17
  res = memegenerator.get("http://memegenerator.net/instance/30688283")
18
- res.should include(url: "http://cdn.memegenerator.net/instances/400x/30688283.jpg")
18
+ res.should include("url" => "http://cdn.memegenerator.net/instances/400x/30688283.jpg")
19
19
  end
20
20
 
21
21
  it "should discover Memegenerator provider" do
22
22
  res = Thornbed.get("http://memegenerator.net/instance/30688283")
23
- res.should include(url: "http://cdn.memegenerator.net/instances/400x/30688283.jpg")
24
- res.should include(thumbnail_url: "http://cdn.memegenerator.net/instances/100x/30688283.jpg")
25
- res.should include(provider_name: "Memegenerator")
23
+ res.should include("url" => "http://cdn.memegenerator.net/instances/400x/30688283.jpg")
24
+ res.should include("thumbnail_url" => "http://cdn.memegenerator.net/instances/100x/30688283.jpg")
25
+ res.should include("provider_name" => "Memegenerator")
26
26
  end
27
27
  end
@@ -21,22 +21,22 @@ describe "QuickMeme" do
21
21
  it "should return OEmbed hash for quickmeme urls" do
22
22
  quickmeme = Thornbed::Providers::QuickMeme.new
23
23
  res = quickmeme.get('http://i.qkme.me/353dum.jpg')
24
- res.should include(url: 'http://i.qkme.me/353dum.jpg')
24
+ res.should include("url" => 'http://i.qkme.me/353dum.jpg')
25
25
 
26
26
  res = quickmeme.get('http://t.qkme.me/353dum.jpg')
27
- res.should include(url: 'http://i.qkme.me/353dum.jpg')
27
+ res.should include("url" => 'http://i.qkme.me/353dum.jpg')
28
28
 
29
29
  res = quickmeme.get('http://www.quickmeme.com/meme/353dum/')
30
- res.should include(url: 'http://i.qkme.me/353dum.jpg')
30
+ res.should include("url" => 'http://i.qkme.me/353dum.jpg')
31
31
 
32
32
  res = quickmeme.get('http://qkme.me/353i1m?id=189959962')
33
- res.should include(url: 'http://i.qkme.me/353i1m.jpg')
33
+ res.should include("url" => 'http://i.qkme.me/353i1m.jpg')
34
34
 
35
35
  res = quickmeme.get('http://qkme.me/353dum')
36
- res.should include(url: 'http://i.qkme.me/353dum.jpg')
36
+ res.should include("url" => 'http://i.qkme.me/353dum.jpg')
37
37
 
38
38
  res = quickmeme.get('http://www.quickmeme.com/meme/3rtne7/')
39
- res.should include(url: 'http://i.qkme.me/3rtne7.jpg')
39
+ res.should include("url" => 'http://i.qkme.me/3rtne7.jpg')
40
40
 
41
41
  lambda { quickmeme.get('http://qkme.me/353i1ma') }.should raise_error(Thornbed::NotValid)
42
42
  lambda { quickmeme.get('http://www.quickmeme.com/meme/353duma/') }.should raise_error(Thornbed::NotValid)
@@ -45,23 +45,23 @@ describe "QuickMeme" do
45
45
 
46
46
  it "should discover Imgur provider" do
47
47
  res = Thornbed.get('http://qkme.me/353dum')
48
- res.should include(url: 'http://i.qkme.me/353dum.jpg')
49
- res.should include(provider_name: "QuickMeme")
48
+ res.should include("url" => 'http://i.qkme.me/353dum.jpg')
49
+ res.should include("provider_name" => "QuickMeme")
50
50
 
51
51
  res = Thornbed.get('http://www.quickmeme.com/meme/353dum/')
52
- res.should include(url: 'http://i.qkme.me/353dum.jpg')
53
- res.should include(provider_name: "QuickMeme")
52
+ res.should include("url" => 'http://i.qkme.me/353dum.jpg')
53
+ res.should include("provider_name" => "QuickMeme")
54
54
 
55
55
  res = Thornbed.get('http://t.qkme.me/353dum.jpg')
56
- res.should include(url: 'http://i.qkme.me/353dum.jpg')
57
- res.should include(provider_name: "QuickMeme")
56
+ res.should include("url" => 'http://i.qkme.me/353dum.jpg')
57
+ res.should include("provider_name" => "QuickMeme")
58
58
 
59
59
  res = Thornbed.get('http://qkme.me/353i1m?id=189959962')
60
- res.should include(url: 'http://i.qkme.me/353i1m.jpg')
61
- res.should include(provider_name: "QuickMeme")
60
+ res.should include("url" => 'http://i.qkme.me/353i1m.jpg')
61
+ res.should include("provider_name" => "QuickMeme")
62
62
 
63
63
  res = Thornbed.get('http://qkme.me/353dum')
64
- res.should include(url: 'http://i.qkme.me/353dum.jpg')
65
- res.should include(provider_name: "QuickMeme")
64
+ res.should include("url" => 'http://i.qkme.me/353dum.jpg')
65
+ res.should include("provider_name" => "QuickMeme")
66
66
  end
67
67
  end
data/thornbed.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
21
21
  gem.add_runtime_dependency "httparty", ">= 0.11.0"
22
22
  gem.add_development_dependency "rspec", "~> 2.12.0"
23
23
  gem.add_development_dependency "guard-rspec", "~> 2.1.1"
24
- gem.add_development_dependency "rb-fsevent", "~> 0.9.2"
24
+ gem.add_development_dependency "rb-fsevent", "~> 0.9.3"
25
25
  gem.add_development_dependency "terminal-notifier-guard", "~> 1.5.3"
26
26
  gem.add_development_dependency "fakeweb", "~> 1.3.0"
27
27
  gem.add_development_dependency "rake", "~> 10.0.2"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thornbed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esteban (Eka) Feldman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-31 00:00:00.000000000 Z
11
+ date: 2013-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-oembed
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: 0.9.2
75
+ version: 0.9.3
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: 0.9.2
82
+ version: 0.9.3
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: terminal-notifier-guard
85
85
  requirement: !ruby/object:Gem::Requirement