mirror of
https://github.com/ditkrg/outboxable.git
synced 2026-01-22 22:06:47 +00:00
Requires sidekiq-cron and activesupport
This commit is contained in:
parent
6d56b1f57a
commit
e08006e456
4
Gemfile
4
Gemfile
@ -10,3 +10,7 @@ gem "rake", "~> 13.0"
|
||||
gem "rspec", "~> 3.0"
|
||||
|
||||
gem "rubocop", "~> 1.21"
|
||||
|
||||
gem 'sidekiq-cron', '~> 1.9'
|
||||
|
||||
gem 'activesupport', '~> 7.0.4.2'
|
||||
|
||||
30
Gemfile.lock
30
Gemfile.lock
@ -8,20 +8,38 @@ PATH
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
activesupport (7.0.4.2)
|
||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||
i18n (>= 1.6, < 2)
|
||||
minitest (>= 5.1)
|
||||
tzinfo (~> 2.0)
|
||||
amq-protocol (2.3.2)
|
||||
ast (2.4.2)
|
||||
bunny (2.20.3)
|
||||
amq-protocol (~> 2.3, >= 2.3.1)
|
||||
sorted_set (~> 1, >= 1.0.2)
|
||||
concurrent-ruby (1.2.2)
|
||||
connection_pool (2.3.0)
|
||||
diff-lcs (1.5.0)
|
||||
et-orbi (1.2.7)
|
||||
tzinfo
|
||||
fugit (1.8.1)
|
||||
et-orbi (~> 1, >= 1.2.7)
|
||||
raabro (~> 1.4)
|
||||
i18n (1.12.0)
|
||||
concurrent-ruby (~> 1.0)
|
||||
json (2.6.3)
|
||||
minitest (5.18.0)
|
||||
parallel (1.22.1)
|
||||
parser (3.2.1.0)
|
||||
ast (~> 2.4.1)
|
||||
raabro (1.4.0)
|
||||
rack (3.0.4.2)
|
||||
rainbow (3.1.1)
|
||||
rake (13.0.6)
|
||||
rbtree (0.4.6)
|
||||
redis-client (0.13.0)
|
||||
connection_pool
|
||||
regexp_parser (2.7.0)
|
||||
rexml (3.2.5)
|
||||
rspec (3.12.0)
|
||||
@ -51,19 +69,31 @@ GEM
|
||||
parser (>= 3.2.1.0)
|
||||
ruby-progressbar (1.11.0)
|
||||
set (1.0.3)
|
||||
sidekiq (7.0.6)
|
||||
concurrent-ruby (< 2)
|
||||
connection_pool (>= 2.3.0)
|
||||
rack (>= 2.2.4)
|
||||
redis-client (>= 0.11.0)
|
||||
sidekiq-cron (1.9.1)
|
||||
fugit (~> 1.8)
|
||||
sidekiq (>= 4.2.1)
|
||||
sorted_set (1.0.3)
|
||||
rbtree
|
||||
set (~> 1.0)
|
||||
tzinfo (2.0.6)
|
||||
concurrent-ruby (~> 1.0)
|
||||
unicode-display_width (2.4.2)
|
||||
|
||||
PLATFORMS
|
||||
x86_64-linux
|
||||
|
||||
DEPENDENCIES
|
||||
activesupport (~> 7.0.4.2)
|
||||
outboxable!
|
||||
rake (~> 13.0)
|
||||
rspec (~> 3.0)
|
||||
rubocop (~> 1.21)
|
||||
sidekiq-cron (~> 1.9)
|
||||
|
||||
BUNDLED WITH
|
||||
2.4.2
|
||||
|
||||
@ -8,11 +8,12 @@ require 'outboxable/polling_publisher_worker'
|
||||
require 'outboxable/connection'
|
||||
require 'outboxable/configuration'
|
||||
require 'outboxable/rabbitmq/publisher'
|
||||
require 'active_support'
|
||||
|
||||
|
||||
module Outboxable
|
||||
class Error < StandardError; end
|
||||
|
||||
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
require 'sidekiq'
|
||||
|
||||
module Outboxable
|
||||
class Worker
|
||||
include Sidekiq::Job
|
||||
@ -6,4 +8,4 @@ module Outboxable
|
||||
Outboxable::PublishingManager.publish(resource: Outbox.find(outbox_id))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -6,6 +6,6 @@ RSpec.describe Outboxable do
|
||||
end
|
||||
|
||||
it "does something useful" do
|
||||
expect(false).to eq(true)
|
||||
expect(true).to eq(true)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user