Skip to content
This repository was archived by the owner on Feb 15, 2020. It is now read-only.

Commit 91fe655

Browse files
authored
Feature/rails 4 compatibility (#3)
* Allow activejob and actionmailer >= 4 for Rails 4 * Fix queue_adapter message typo * Bump version to 0.1.2 * Bundle install after bumping version
1 parent 5992ae5 commit 91fe655

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PATH
22
remote: .
33
specs:
4-
deliver_later_matchers (0.1.1)
5-
actionmailer (~> 5.0)
6-
activejob (~> 5.0)
4+
deliver_later_matchers (0.1.2)
5+
actionmailer (>= 4.0)
6+
activejob (>= 4.0)
77
rspec-expectations (~> 3.0)
88
rspec-mocks (~> 3.0)
99
rspec-rails (~> 3.0)
@@ -58,7 +58,7 @@ GEM
5858
method_source (0.9.0)
5959
mini_mime (1.0.0)
6060
mini_portile2 (2.3.0)
61-
minitest (5.11.1)
61+
minitest (5.11.2)
6262
nokogiri (1.8.1)
6363
mini_portile2 (~> 2.3.0)
6464
rack (2.0.3)

deliver_later_matchers.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
2020
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2121
spec.require_paths = ['lib']
2222

23-
spec.add_dependency 'actionmailer', '~> 5.0'
24-
spec.add_dependency 'activejob', '~> 5.0'
23+
spec.add_dependency 'actionmailer', '>= 4.0'
24+
spec.add_dependency 'activejob', '>= 4.0'
2525
spec.add_dependency 'rspec-expectations', '~> 3.0'
2626
spec.add_dependency 'rspec-mocks', '~> 3.0'
2727
spec.add_dependency 'rspec-rails', '~> 3.0'

lib/deliver_later_matchers/deliver_later.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def queue_adapter
6969
def check_job_adapter
7070
return if queue_adapter.is_a?(::ActiveJob::QueueAdapters::TestAdapter)
7171

72-
raise RuntimeError, "To use DeliverLaterMatchers, set `ActiveJob::Base.queue_adpater = :test`."
72+
raise RuntimeError, "To use DeliverLaterMatchers, set `ActiveJob::Base.queue_adapter = :test`."
7373
end
7474
end
7575
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module DeliverLaterMatchers
2-
VERSION = "0.1.1"
2+
VERSION = '0.1.2'
33
end

spec/deliver_later_matchers_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def email_with_args(arg1, arg2)
4040
ActiveJob::Base.queue_adapter = :async
4141

4242
expect { expect { TestMailer.test_email.deliver_later }.to deliver_later(TestMailer, :test_email) }
43-
.to raise_error(RuntimeError, "To use DeliverLaterMatchers, set `ActiveJob::Base.queue_adpater = :test`.")
43+
.to raise_error(RuntimeError, "To use DeliverLaterMatchers, set `ActiveJob::Base.queue_adapter = :test`.")
4444
end
4545
end
4646

0 commit comments

Comments
 (0)