I have a version half way using inheritance. Hope to finish it up these
days! Sorry for the delay!!

In lib/sidekiq/framework.rb:

> @@ -0,0 +1,67 @@
> +module Sidekiq
> +  module Framework
> +    def self.which_is_it?(path='.')
> +      if is_padrino?(path)
> +        :padrino
> +      elsif is_rails?(path)
> +        :rails
> +      elsif is_sinatra?(path)
> +        :sinatra
> +      end
> +    end
> +
> +    def self.hook!(path)
> +      case @framework ||= which_is_it?(path)

@dariocravero <https://github.com/dariocravero> any luck ?

—
Reply to this email directly or view it on
GitHub<https://github.com/mperham/sidekiq/pull/760/files#r3474796>
.