lib/image_scraper.rb in image_scraper-0.0.1 vs lib/image_scraper.rb in image_scraper-0.0.2

- old
+ new

@@ -1,8 +1,11 @@ require 'open-uri' require 'nokogiri' module ImageScraper + class Railtie < Rails::Railtie + end + def self.image_urls(url, convert_to_absolute_url=true) uri = URI.parse(url) domain = "#{uri.scheme}://#{uri.host}" doc = Nokogiri::HTML(open url) urls = [] \ No newline at end of file