thibaudgg/video_info — pull request #18 by NARKOZ (2012-11-24 16:41:23+00:00)
Title: replace hpricot with json

Gives performance boost:

```ruby
[9] pry(main)> Benchmark.bm {|x| x.report("JSON") { 100.times do; Video│[8] pry(main)> Benchmark.bm {|x| x.report("Hpricot") { 100.times do; V
Info.new('http://www.youtube.com/watch?v=mZqGqE0D0n4'); end } } │ideoInfo.new('http://www.youtube.com/watch?v=mZqGqE0D0n4'); end } }
│
user system total real │ user system total real
JSON 0.430000 0.040000 0.470000 ( 31.847480) │Hpricot 0.590000 0.050000 0.640000 ( 31.008403)
=> [ 0.430000 0.040000 0.470000 ( 31.847480) │=> [ 0.590000 0.050000 0.640000 ( 31.008403)
] │]
[10] pry(main)> │[9] pry(main)>
```

Plus no additional dependency for MRI 1.9 and up.

Note that YouTube video keywords are gone: https://developers.google.com/youtube/2.0/reference#youtube_data_api_tag_media:keywords