has_vimeo_video 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module HasVimeoVideo
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -35,6 +35,7 @@ module HasVimeoVideo
35
35
  end
36
36
 
37
37
  def thumbnail
38
+ return unless info
38
39
  info["thumbnail_large"]
39
40
  end
40
41
 
@@ -30,6 +30,10 @@ describe HasVimeoVideo::VimeoVideo do
30
30
  new_video("http://vimeo.com/000000000").info.should be_nil
31
31
  end
32
32
 
33
+ it "should have a nil thumbnail if the video doesn't exist" do
34
+ new_video("http://vimeo.com/000000000").thumbnail.should be_nil
35
+ end
36
+
33
37
  it "should correctly parse video_url" do
34
38
  new_video(" http://vimeo.com/6428069 ").id.should == "6428069"
35
39
  new_video("xyzhttp://vimeo.com/6428069bar").id.should == "6428069"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Engage