Sha256: ac48c82c12cc4975867231bfa6a087dfafba9972d6a84b58ec6aeee5c70c33ba

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

$:.unshift(File.dirname(__FILE__)) unless
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))

require "jkl/rss_client"
require "jkl/rest_client"
require "jkl/calais_client"
require "jkl/text_client"

module Jkl
  class << self
    
    def links(feed)
      links = Jkl::Rss::links(Jkl::Rss::items(Jkl::get_xml_from(feed)))
      links.each do |link|
        yield link if block_given?
      end
    end
    
    def tags(key, link)
      text = Jkl::Text::sanitize(Jkl::get_from(link))
      Jkl::Extraction::tags(key, text)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jakal-0.1.6 lib/jkl.rb
jakal-0.1.5 lib/jkl.rb