Changeset 29819 for lang/ruby

Show
Ignore:
Timestamp:
02/10/09 13:29:36 (4 years ago)
Author:
valda
Message:

eic-book.com のサンプル動画に対応
バージョン 1.0.4

Location:
lang/ruby/video_scraper
Files:
2 added
4 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/video_scraper/lib/www/video_scraper.rb

    r29179 r29819  
    1616module WWW 
    1717  module VideoScraper 
    18     VERSION = '1.0.3' 
     18    VERSION = '1.0.4' 
    1919 
    20     MODULES_NAME = %w(adult_satellites age_sage ameba_vision dailymotion moro_tube 
    21                       nico_video pornhub pornotube red_tube tube8 veoh 
     20    MODULES_NAME = %w(adult_satellites age_sage ameba_vision dailymotion eic_book 
     21                      moro_tube nico_video pornhub pornotube red_tube tube8 veoh 
    2222                      you_porn you_tube your_file_host) 
    2323 
  • lang/ruby/video_scraper/lib/www/video_scraper/base.rb

    r29178 r29819  
    7878        raise TryAgainLater, e.to_s if e.to_s.include?('503') 
    7979        raise e 
     80      rescue TimeoutError, Timeout::Error, Errno::ETIMEDOUT => e 
     81        raise TryAgainLater, e.to_s 
    8082      end 
    8183    end 
  • lang/ruby/video_scraper/test/www/test_video_scraper.rb

    r29177 r29819  
    3636  def test_scrape 
    3737    vs = WWW::VideoScraper.scrape('http://www.yourfilehost.com/media.php?cat=video&file=XV436__03.wmv') 
    38     assert_kind_of WWW::VideoScraper::Yourfilehost, vs 
     38    assert_kind_of WWW::VideoScraper::YourFileHost, vs 
    3939  end 
    4040end 
  • lang/ruby/video_scraper/video_scraper.gemspec

    r29179 r29819  
    33Gem::Specification.new do |s| 
    44  s.name = %q{video_scraper} 
    5   s.version = "1.0.3" 
     5  s.version = "1.0.4" 
    66 
    77  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= 
    88  s.authors = ["YAMAGUCHI Seiji"] 
    9   s.date = %q{2009-01-27} 
     9  s.date = %q{2009-02-10} 
    1010  s.description = %q{Web scraping library for video sharing sites.} 
    1111  s.email = %q{valda@underscore.jp} 
    1212  s.extra_rdoc_files = ["README", "ChangeLog"] 
    13   s.files = ["README", "ChangeLog", "Rakefile", "test/test_helper.rb", "test/www", "test/www/video_scraper", "test/www/video_scraper/test_ameba_vision.rb", "test/www/video_scraper/test_dailymotion.rb", "test/www/video_scraper/test_age_sage.rb", "test/www/video_scraper/test_pornotube.rb", "test/www/video_scraper/test_your_file_host_flymake.rb", "test/www/video_scraper/test_tube8.rb", "test/www/video_scraper/test_your_file_host.rb", "test/www/video_scraper/test_moro_tube.rb", "test/www/video_scraper/test_veoh.rb", "test/www/video_scraper/test_pornhub.rb", "test/www/video_scraper/test_nico_video.rb", "test/www/video_scraper/test_you_porn.rb", "test/www/video_scraper/test_you_tube.rb", "test/www/video_scraper/test_adult_satellites.rb", "test/www/video_scraper/test_red_tube.rb", "test/www/video_scraper/test_base.rb", "test/www/test_video_scraper.rb", "lib/www", "lib/www/video_scraper", "lib/www/video_scraper/nico_video.rb", "lib/www/video_scraper/you_porn.rb", "lib/www/video_scraper/ameba_vision.rb", "lib/www/video_scraper/age_sage.rb", "lib/www/video_scraper/pornotube.rb", "lib/www/video_scraper/adult_satellites.rb", "lib/www/video_scraper/you_tube.rb", "lib/www/video_scraper/moro_tube.rb", "lib/www/video_scraper/pornhub.rb", "lib/www/video_scraper/dailymotion.rb", "lib/www/video_scraper/veoh.rb", "lib/www/video_scraper/red_tube.rb", "lib/www/video_scraper/base.rb", "lib/www/video_scraper/your_file_host.rb", "lib/www/video_scraper/tube8.rb", "lib/www/video_scraper.rb"] 
     13  s.files = ["README", "ChangeLog", "Rakefile", "test/test_helper.rb", "test/www", "test/www/video_scraper", "test/www/video_scraper/test_ameba_vision.rb", "test/www/video_scraper/test_dailymotion.rb", "test/www/video_scraper/test_age_sage.rb", "test/www/video_scraper/test_pornotube.rb", "test/www/video_scraper/test_tube8.rb", "test/www/video_scraper/test_your_file_host.rb", "test/www/video_scraper/test_moro_tube.rb", "test/www/video_scraper/test_eic_book.rb", "test/www/video_scraper/test_veoh.rb", "test/www/video_scraper/test_pornhub.rb", "test/www/video_scraper/test_nico_video.rb", "test/www/video_scraper/test_you_porn.rb", "test/www/video_scraper/test_you_tube.rb", "test/www/video_scraper/test_adult_satellites.rb", "test/www/video_scraper/test_red_tube.rb", "test/www/video_scraper/test_base.rb", "test/www/test_video_scraper.rb", "test/www/test_video_scraper_flymake.rb", "lib/www", "lib/www/video_scraper", "lib/www/video_scraper/nico_video.rb", "lib/www/video_scraper/you_porn.rb", "lib/www/video_scraper/ameba_vision.rb", "lib/www/video_scraper/age_sage.rb", "lib/www/video_scraper/eic_book.rb", "lib/www/video_scraper/pornotube.rb", "lib/www/video_scraper/adult_satellites.rb", "lib/www/video_scraper/you_tube.rb", "lib/www/video_scraper/moro_tube.rb", "lib/www/video_scraper/pornhub.rb", "lib/www/video_scraper/dailymotion.rb", "lib/www/video_scraper/veoh.rb", "lib/www/video_scraper/red_tube.rb", "lib/www/video_scraper/base.rb", "lib/www/video_scraper/your_file_host.rb", "lib/www/video_scraper/tube8.rb", "lib/www/video_scraper.rb"] 
    1414  s.has_rdoc = true 
    1515  s.homepage = %q{http://github.com/valda/video_scraper}