1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
Commit graph

15 commits

Author SHA1 Message Date
Mike Perham
4338695727 Bump standard, style fixes 2020-06-17 15:15:20 -07:00
Mike Perham
6bd4eaffdc Bump standard, fix style issues 2020-03-17 13:38:48 -07:00
Akshay Birajdar
2bfd41117c
Prefer Hash#transform_keys & Regex#named_captures (#4491)
* Prefer Hash#transform_keys to stringify keys

* Prefer Regexp#named_captures to create hash for match data
2020-03-15 13:32:25 -07:00
Bryan FRIMIN
32c55e3165 Use standardrb for source styling (#4114) 2019-04-01 09:20:41 -07:00
Mike Perham
2ed92600fa Missed a few 2018-02-17 14:09:28 -08:00
Mike Perham
959ab0ad49 Better root URL handling for zany web servers, fixes #3207 2016-11-03 11:10:53 -07:00
Mike Perham
de13425b44 Fix Ruby warnings, thanks for the reminder @nateberkopec 2016-08-30 13:29:03 -07:00
Amadeus Folego
a7814923fc Unescape PATH_INFO 2016-08-02 14:47:59 -03:00
Amadeus Folego
a742e96b00 Capture only param in route :param.extension 2016-08-02 12:31:09 -03:00
Amadeus Folego
44614b5da2 Implement additional methods and optimize router 2016-07-29 17:56:52 -03:00
Amadeus Folego
64fa2078a1 Remove unnecessary constraints attribute 2016-07-29 16:28:27 -03:00
Mike Perham
e8cdbd80b4 Add necessary web infrastructure to support Pro/Ent 2016-07-29 12:09:00 -07:00
Amadeus Folego
d05066dc1a Implement compatibility interface with sinatra 2016-07-29 04:45:19 -03:00
Amadeus Folego
91fd77d44e Minor cleanups and improve extension compatibility 2016-07-27 16:18:52 -03:00
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