1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/test
Amadeus Folego 9ea167db16 Migrate Sidekiq::Web to a pure Rack application
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
2016-07-26 11:43:32 -03:00
..
fixtures Allow dynamic sidekiq-web locale paths, for localized extensions, fixes #1261 2013-10-21 12:07:18 -07:00
config.yml Dont use logger in options parsing, fixes #1335 2013-11-13 21:33:44 -08:00
env_based_config.yml Clean up option processing 2013-01-18 20:57:26 -08:00
fake_env.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
helper.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_actors.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_api.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_cli.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_client.rb Handle case of no jobs to push_bulk, fixes #2997 2016-05-31 10:05:16 -07:00
test_exception_handler.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_extensions.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_fetch.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_launcher.rb Fix memory leak, bump version 2016-05-04 14:43:15 -05:00
test_logging.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_manager.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_middleware.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_processor.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_rails.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_redis_connection.rb Symbolize keys in options hash for RedisConnection.create 2016-05-26 12:50:37 +07:00
test_retry.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_retry_exhausted.rb switch syntax for jruby 2016-02-04 10:40:46 -08:00
test_scheduled.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_scheduling.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_sidekiq.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_testing.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_testing_fake.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_testing_inline.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_util.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_web.rb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
test_web_helpers.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00