-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from wspurgin/ws/support-sidekiq-7
Support Sidekiq 7
- Loading branch information
Showing
9 changed files
with
315 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'sidekiq', '~> 7' | ||
gem 'activejob', '~> 7' | ||
gem 'actionmailer', '~> 7' | ||
gem 'activerecord', '~> 7' | ||
gem "activemodel", "~> 7" | ||
gem "railties", "~> 7" | ||
|
||
gemspec :path => '../' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
require "rubygems" | ||
|
||
module RSpec | ||
module Sidekiq | ||
class Configuration | ||
attr_accessor :clear_all_enqueued_jobs, :enable_terminal_colours, :warn_when_jobs_not_processed_by_sidekiq | ||
attr_accessor :clear_all_enqueued_jobs, | ||
:enable_terminal_colours, | ||
:warn_when_jobs_not_processed_by_sidekiq | ||
|
||
def initialize | ||
@clear_all_enqueued_jobs = true | ||
# Display settings defaults | ||
@enable_terminal_colours = true | ||
|
||
# Functional settings defaults | ||
@clear_all_enqueued_jobs = true | ||
@warn_when_jobs_not_processed_by_sidekiq = true | ||
end | ||
|
||
def sidekiq_gte_7? | ||
Gem::Version.new(::Sidekiq::VERSION) >= Gem::Version.new("7.0.0") | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,38 @@ | ||
require File.expand_path('../lib/rspec/sidekiq/version', __FILE__) | ||
require File.expand_path("../lib/rspec/sidekiq/version", __FILE__) | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'rspec-sidekiq' | ||
s.name = "rspec-sidekiq" | ||
s.version = RSpec::Sidekiq::VERSION | ||
s.platform = Gem::Platform::RUBY | ||
s.author = 'Phil Ostler' | ||
s.email = '[email protected]' | ||
s.homepage = 'http://github.com/philostler/rspec-sidekiq' | ||
s.summary = 'RSpec for Sidekiq' | ||
s.description = 'Simple testing of Sidekiq jobs via a collection of matchers and helpers' | ||
s.license = 'MIT' | ||
s.authors = ["Aidan Coyle", "Phil Ostler", "Will Spurgin"] | ||
s.homepage = "http://github.com/wspurgin/rspec-sidekiq" | ||
s.summary = "RSpec for Sidekiq" | ||
s.description = "Simple testing of Sidekiq jobs via a collection of matchers and helpers" | ||
s.license = "MIT" | ||
|
||
s.add_dependency 'rspec-core', '~> 3.0', '>= 3.0.0' | ||
s.add_dependency 'sidekiq', '>= 2.4.0', '< 7' | ||
s.add_dependency "rspec-core", "~> 3.0", ">= 3.0.0" | ||
s.add_dependency "sidekiq", ">= 5", "< 8" | ||
|
||
s.add_development_dependency 'pry' | ||
s.add_development_dependency 'pry-doc' | ||
s.add_development_dependency 'pry-nav' | ||
s.add_development_dependency 'rspec' | ||
s.add_development_dependency 'coveralls' | ||
s.add_development_dependency 'fuubar' | ||
s.add_development_dependency 'activejob' | ||
s.add_development_dependency 'actionmailer' | ||
s.add_development_dependency 'activerecord' | ||
s.add_development_dependency 'activemodel' | ||
s.add_development_dependency 'activesupport' | ||
s.add_development_dependency "pry" | ||
s.add_development_dependency "pry-doc" | ||
s.add_development_dependency "pry-nav" | ||
s.add_development_dependency "rspec" | ||
s.add_development_dependency "coveralls" | ||
s.add_development_dependency "fuubar" | ||
s.add_development_dependency "activejob" | ||
s.add_development_dependency "actionmailer" | ||
s.add_development_dependency "activerecord" | ||
s.add_development_dependency "activemodel" | ||
s.add_development_dependency "activesupport" | ||
|
||
|
||
s.files = Dir['.gitattributes'] + | ||
Dir['.gitignore'] + | ||
Dir['.rspec'] + | ||
Dir['CHANGES.md'] + | ||
Dir['Gemfile'] + | ||
Dir['LICENSE'] + | ||
Dir['README.md'] + | ||
Dir['rspec-sidekiq.gemspec'] + | ||
Dir['**/*.rb'] | ||
s.require_paths = ['lib'] | ||
s.files = Dir[".gitattributes"] + | ||
Dir[".gitignore"] + | ||
Dir[".rspec"] + | ||
Dir["CHANGES.md"] + | ||
Dir["Gemfile"] + | ||
Dir["LICENSE"] + | ||
Dir["README.md"] + | ||
Dir["rspec-sidekiq.gemspec"] + | ||
Dir["**/*.rb"] | ||
s.require_paths = ["lib"] | ||
end |
Oops, something went wrong.