mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
9ea167db16
Migrate Sidekiq::Web a pure Rack application to avoid sinatra as dependency. rack-protection is still needed. The application is mounted on top of Rack::Builder, mantaining all of the previous http interface. Rack apps being used: - Rack::File to serve assets - Rack::Session::Cookie, the secret can be configured via Sidekiq::Web.session_secret - Rack::Protection, same as before when using sinatra - Sidekiq::WebApplication, described below. Sidekiq::WebApplication is a very simple rack application composed of a Sidekiq::WebRouter and a Sidekiq::WebAction dispatcher. This terminology was adopted to be able to mantain Sidekiq::Web as a Rack app. The Router is heavily inspired on Rack::Router[0] (and in many parts identical), however not being retrocompatible. The Action is a wrapper to provide convenience, DRY code and maintain the old interface. I tried to mantain most of the old application structures so that customizations and monkey-patches are easily adjustable or even further work be done to enforce retrocompatibility. Testing welcome! 0: https://github.com/pjb3/rack-router
26 lines
1.2 KiB
Ruby
26 lines
1.2 KiB
Ruby
# -*- encoding: utf-8 -*-
|
|
require File.expand_path('../lib/sidekiq/version', __FILE__)
|
|
|
|
Gem::Specification.new do |gem|
|
|
gem.authors = ["Mike Perham"]
|
|
gem.email = ["mperham@gmail.com"]
|
|
gem.summary = "Simple, efficient background processing for Ruby"
|
|
gem.description = "Simple, efficient background processing for Ruby."
|
|
gem.homepage = "http://sidekiq.org"
|
|
gem.license = "LGPL-3.0"
|
|
|
|
gem.executables = ['sidekiq', 'sidekiqctl']
|
|
gem.files = `git ls-files | grep -Ev '^(myapp|examples)'`.split("\n")
|
|
gem.test_files = `git ls-files -- test/*`.split("\n")
|
|
gem.name = "sidekiq"
|
|
gem.require_paths = ["lib"]
|
|
gem.version = Sidekiq::VERSION
|
|
gem.add_dependency 'redis', '~> 3.2', '>= 3.2.1'
|
|
gem.add_dependency 'connection_pool', '~> 2.2', '>= 2.2.0'
|
|
gem.add_dependency 'concurrent-ruby', '~> 1.0'
|
|
gem.add_dependency 'rack-protection', '~> 1.5'
|
|
gem.add_development_dependency 'redis-namespace', '~> 1.5', '>= 1.5.2'
|
|
gem.add_development_dependency 'minitest', '~> 5.7', '>= 5.7.0'
|
|
gem.add_development_dependency 'rake', '~> 10.0'
|
|
gem.add_development_dependency 'rails', '~> 4', '>= 3.2.0'
|
|
end
|