Sha256: c5de73521f86363f0e2e2a708bf572c56793ca093479e819122b7da273cb2793

Contents?: true

Size: 256 Bytes

Versions: 25

Compression:

Stored size: 256 Bytes

Contents

require 'sneakers'
require 'open-uri'
require 'nokogiri'


class TitleScraper
  include Sneakers::Worker

  from_queue 'downloads'

  def work(msg)
    doc = Nokogiri::HTML(open(msg))
    worker_trace "FOUND <#{doc.css('title').text}>"
    ack!
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
sneakers-2.3.5 spec/fixtures/require_worker.rb
sneakers-2.3.4 spec/fixtures/require_worker.rb
sneakers-2.3.2 spec/fixtures/require_worker.rb
sneakers-2.3.1 spec/fixtures/require_worker.rb
sneakers-2.3.0 spec/fixtures/require_worker.rb
sneakers-2.2.1 spec/fixtures/require_worker.rb
sneakers-2.2.0 spec/fixtures/require_worker.rb
sneakers-2.1.0 spec/fixtures/require_worker.rb
sneakers-1.1.2 spec/fixtures/require_worker.rb
sneakers-1.1.1 spec/fixtures/require_worker.rb
sneakers-1.1.0 spec/fixtures/require_worker.rb
sneakers_custom_bunny-1.0.4 spec/fixtures/require_worker.rb
sneakers-1.0.4 spec/fixtures/require_worker.rb
sneakers-1.0.3 spec/fixtures/require_worker.rb
sneakers-1.0.2 spec/fixtures/require_worker.rb
sneakers-1.0.1 spec/fixtures/require_worker.rb
sneakers-1.0.0 spec/fixtures/require_worker.rb
sneakers-0.1.1.pre spec/fixtures/require_worker.rb
sneakers-0.1.0.pre spec/fixtures/require_worker.rb
sneakers-0.0.7 spec/fixtures/require_worker.rb