diff --git a/Gemfile.lock b/Gemfile.lock index 83b71a0..dfab285 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,9 @@ PATH remote: . specs: - deliver_later_matchers (0.1.1) - actionmailer (~> 5.0) - activejob (~> 5.0) + deliver_later_matchers (0.1.2) + actionmailer (>= 4.0) + activejob (>= 4.0) rspec-expectations (~> 3.0) rspec-mocks (~> 3.0) rspec-rails (~> 3.0) @@ -58,7 +58,7 @@ GEM method_source (0.9.0) mini_mime (1.0.0) mini_portile2 (2.3.0) - minitest (5.11.1) + minitest (5.11.2) nokogiri (1.8.1) mini_portile2 (~> 2.3.0) rack (2.0.3) diff --git a/deliver_later_matchers.gemspec b/deliver_later_matchers.gemspec index 551202d..2129ca7 100644 --- a/deliver_later_matchers.gemspec +++ b/deliver_later_matchers.gemspec @@ -20,8 +20,8 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.add_dependency 'actionmailer', '~> 5.0' - spec.add_dependency 'activejob', '~> 5.0' + spec.add_dependency 'actionmailer', '>= 4.0' + spec.add_dependency 'activejob', '>= 4.0' spec.add_dependency 'rspec-expectations', '~> 3.0' spec.add_dependency 'rspec-mocks', '~> 3.0' spec.add_dependency 'rspec-rails', '~> 3.0' diff --git a/lib/deliver_later_matchers/deliver_later.rb b/lib/deliver_later_matchers/deliver_later.rb index c9f862e..2e5345f 100644 --- a/lib/deliver_later_matchers/deliver_later.rb +++ b/lib/deliver_later_matchers/deliver_later.rb @@ -69,7 +69,7 @@ def queue_adapter def check_job_adapter return if queue_adapter.is_a?(::ActiveJob::QueueAdapters::TestAdapter) - raise RuntimeError, "To use DeliverLaterMatchers, set `ActiveJob::Base.queue_adpater = :test`." + raise RuntimeError, "To use DeliverLaterMatchers, set `ActiveJob::Base.queue_adapter = :test`." end end end diff --git a/lib/deliver_later_matchers/version.rb b/lib/deliver_later_matchers/version.rb index 932905a..9814cde 100644 --- a/lib/deliver_later_matchers/version.rb +++ b/lib/deliver_later_matchers/version.rb @@ -1,3 +1,3 @@ module DeliverLaterMatchers - VERSION = "0.1.1" + VERSION = '0.1.2' end diff --git a/spec/deliver_later_matchers_spec.rb b/spec/deliver_later_matchers_spec.rb index ac53847..c84e776 100644 --- a/spec/deliver_later_matchers_spec.rb +++ b/spec/deliver_later_matchers_spec.rb @@ -40,7 +40,7 @@ def email_with_args(arg1, arg2) ActiveJob::Base.queue_adapter = :async expect { expect { TestMailer.test_email.deliver_later }.to deliver_later(TestMailer, :test_email) } - .to raise_error(RuntimeError, "To use DeliverLaterMatchers, set `ActiveJob::Base.queue_adpater = :test`.") + .to raise_error(RuntimeError, "To use DeliverLaterMatchers, set `ActiveJob::Base.queue_adapter = :test`.") end end