lib/anemone/page_store.rb
# Does this PageStore contain the specified URL?
# HTTP and HTTPS versions of a URL are considered to be the same page.
Does this PageStore contain the specified URL.
HTTP and HTTPS versions of a URL are considered to be the same page.
Does this PageStore contain the specified URL . HTTP and HTTPS versions of a URL are considered to be the same page .
def has_page?(url)
      page_url = URI(url)
      schemes = %w(http https)
      if schemes.include? page_url.scheme
        u = url.dup
        return schemes.any? { |s| u.scheme = s; Page.exists?(:url => u.to_s) }
      end
      Page.exists?(:url => page_url.to_s)
    end
def has_page? ( url ) page_url = URI ( url ) schemes = %w( http https ) if schemes . include? page_url . scheme u = url . dup return schemes . any? { | s | u . scheme = s ; Page . exists? ( :url => u . to_s ) } end Page . exists? ( :url => page_url . to_s ) end
Does this PageStore contain the specified URL?
Does this PageStore contain the specified URL?
url
<not_specific>