mechanize_content 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -114,6 +114,14 @@ describe "MechanizeContent" do
114
114
  mc.best_image.should eql("http://assets.vg247.com/current//2010/03/rockbandlogo.jpg")
115
115
  end
116
116
  end
117
+
118
+ context "given a url with strange utf8 encoding" do
119
+ it "will find the best image" do
120
+ mc = MechanizeContent::Parser.new(%w(http://www.computerandvideogames.com/310643/news/lg-dedicated-gaming-handhelds-are-over/
121
+ http://www.destructoid.com/lg-age-of-dedicated-gaming-handhelds-is-over--205485.phtml))
122
+ mc.best_image.should eql("http://cdn.medialib.computerandvideogames.com/screens/screenshot_259495_thumb_wide300.jpg")
123
+ end
124
+ end
117
125
 
118
126
  context "given the first pick does not support hot linking" do
119
127
  it "will fall back to the next image" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mechanize_content
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.0
5
+ version: 0.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Griffin
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-29 00:00:00 Z
13
+ date: 2011-07-10 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mechanize
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 1.0.0
23
+ version: 2.0.1
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency
@@ -53,7 +53,7 @@ dependencies:
53
53
  requirements:
54
54
  - - ~>
55
55
  - !ruby/object:Gem::Version
56
- version: 1.9.0
56
+ version: 1.10.0
57
57
  type: :development
58
58
  version_requirements: *id004
59
59
  - !ruby/object:Gem::Dependency
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  requirements: []
120
120
 
121
121
  rubyforge_project: mechanize_content
122
- rubygems_version: 1.7.2
122
+ rubygems_version: 1.8.5
123
123
  signing_key:
124
124
  specification_version: 3
125
125
  summary: scrape the best content from a page