diff --git a/Gemfile.lock b/Gemfile.lock index 708f2b9..7706343 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - servo (0.1.2) + servo (0.1.3) activemodel activesupport interactor diff --git a/lib/servo/sidekiq_job.rb b/lib/servo/sidekiq_job.rb index f2d1857..f889faf 100644 --- a/lib/servo/sidekiq_job.rb +++ b/lib/servo/sidekiq_job.rb @@ -3,9 +3,6 @@ module Servo class SidekiqJob include Callable - - if defined?(Sidekiq) - include Sidekiq::Worker - end + include Sidekiq::Worker if defined?(Sidekiq) end end diff --git a/lib/servo/version.rb b/lib/servo/version.rb index d3aaa0d..942cf91 100644 --- a/lib/servo/version.rb +++ b/lib/servo/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Servo - VERSION = '0.1.2' + VERSION = '0.1.3' end diff --git a/spec/support/application_job.rb b/spec/support/application_job.rb new file mode 100644 index 0000000..d92ffdd --- /dev/null +++ b/spec/support/application_job.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class ApplicationJob < ActiveJob::Base +end diff --git a/lib/servo/bar.rb b/spec/support/bar.rb similarity index 100% rename from lib/servo/bar.rb rename to spec/support/bar.rb diff --git a/lib/servo/foo.rb b/spec/support/foo.rb similarity index 100% rename from lib/servo/foo.rb rename to spec/support/foo.rb