imagize 0.3.2 → 0.3.3

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.2
1
+ 0.3.3
data/imagize.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{imagize}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
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{2010-11-18}
12
+ s.date = %q{2010-11-19}
13
13
  s.description = %q{Retrieve images from a tweet}
14
14
  s.email = %q{dongelen@nhl.nl}
15
15
  s.extra_rdoc_files = [
data/lib/imagize.rb CHANGED
@@ -66,7 +66,7 @@ module Imagize
66
66
  PNG_FINDER = /#{IMAGE_URL}.png/
67
67
 
68
68
  IMAGE_FINDERS = [JPG_FINDER, GIF_FINDER, PNG_FINDER]
69
- YOUTUBE_LONG_URL="http://www.youtube.com/watch"
69
+ YOUTUBE_LONG_URL="www.youtube.com/watch"
70
70
  YOUTUBE_LONG_CONVERT_URL="http://img.youtube.com/vi/§ID§/0.jpg"
71
71
 
72
72
  class Imagizer
data/spec/imagize_spec.rb CHANGED
@@ -39,6 +39,13 @@ describe "Imagize" do
39
39
 
40
40
  urls = @imagizer.imagize("RT @bartligthart - V0.5 of the hezoo screencast! http://www.youtube.com/watch?v=XGV0rKvtEwc #mtnw #tutorial")
41
41
  urls[0].should == "http://img.youtube.com/vi/XGV0rKvtEwc/0.jpg"
42
+
43
+
44
+ urls = @imagizer.imagize("Thumbs up! #NHLhogeschool #lipdub. #cmdlwd Echt goed gedaan hoor! www.youtube.com/watch?v=kX1Mc0e2fBA")
45
+ urls[0].should == "http://img.youtube.com/vi/kX1Mc0e2fBA/0.jpg"
46
+
47
+
48
+
42
49
  end
43
50
 
44
51
  it "should recognize tweetphoto" do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
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: 2010-11-18 00:00:00 +01:00
17
+ date: 2010-11-19 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency