Sha256: 333923338af3c015439c21e9b064d878f797723cd97f7ae623c8437a23d2e4e2
Contents?: true
Size: 884 Bytes
Versions: 1
Compression:
Stored size: 884 Bytes
Contents
require "aws-sdk-kinesis" require "delayed_job" require "json-schema" require "request_store" require "journaled/engine" require 'journaled/enqueue' module Journaled mattr_accessor :default_app_name mattr_accessor(:job_priority) { 20 } mattr_accessor(:http_idle_timeout) { 5 } mattr_accessor(:http_open_timeout) { 2 } mattr_accessor(:http_read_timeout) { 60 } def development_or_test? %w(development test).include?(Rails.env) end def enabled? !['0', 'false', false, 'f', ''].include?(ENV.fetch('JOURNALED_ENABLED', !development_or_test?)) end def schema_providers @schema_providers ||= [Journaled::Engine, Rails] end def commit_hash ENV.fetch('GIT_COMMIT') end def actor_uri Journaled::ActorUriProvider.instance.actor_uri end module_function :development_or_test?, :enabled?, :schema_providers, :commit_hash, :actor_uri end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
journaled-2.5.0 | lib/journaled.rb |