Sha256: c2f551f2f42f7f556537ee3cd63b548571be1cfcf00f9f5b877e0e6824e7dee5
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
puts 'WARNING: The simple_worker gem is deprecated! Please use iron_worker gem instead: https://github.com/iron-io/iron_worker_ruby. Same gem, different name.' require_relative 'simple_worker/utils' require_relative 'simple_worker/service' require_relative 'simple_worker/base' require_relative 'simple_worker/config' require_relative 'simple_worker/used_in_worker' module SimpleWorker @@logger = Logger.new(STDOUT) @@logger.level = Logger::INFO class << self attr_accessor :config, :service def configure() yield(config) if config && config.token SimpleWorker.service ||= Service.new(config.token, :config=>config) else @@logger.warn "No token specified in configure, be sure to set it!" end end def config @config ||= Config.new end def logger @@logger end def api_version 2 end end end if defined?(Rails) # puts 'Rails=' + Rails.inspect # puts 'vers=' + Rails::VERSION::MAJOR.inspect if Rails::VERSION::MAJOR == 2 require_relative 'simple_worker/rails2_init.rb' else require_relative 'simple_worker/railtie' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_worker-2.0.10 | lib/simple_worker.rb |