-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Roadmap for Arturo 3.0 #39
Comments
I could definitely see doing this. Would be a nice to have for Sinatra/Cuba apps as well, so I'm for moving it towards rack. I need to look over these examples a bit more and review the current code to evaluate the sugested changes more, but I like the idea of rack for sure. Sent from my phone On Thu, Mar 21, 2013 at 5:01 PM, James Rosen [email protected]
|
@plukevdh the |
Would be nice to implement in such a way that we can turn it into middleware. I just did a conversion of a Rails plugin to rack + middleware so it was on my mind and I wanted to drop here.. Works really cleanly if done right. |
Here's what I did for FayeRails: Also look over faye/faye and the RackAdapter class for how it works out. |
We could conceivably do the feature management pages as a pure Rack endpoint, but the Rails helpers sure are nice for that. Plus, it won't visually fit in with Rails apps that it's mounted in (since there's no "layout"). All the feature querying can be done in a Rack middleware, though. That's what I had tried to express above. |
Ah damn. Totally forgot about the middleware shout out in the initial suggestion. Good call. You're way ahead of me :) |
I'd be interested in starting on this one. I'll see what time I can work in and start a branch/PR to get this going. Any work done on this yet that I should know about? |
Let's do the work on the v2.0 branch. A proposed path:
|
We would very much like it if the management interface was separated into a another gem - we have an app that only reads the Arturo bits, and we're having some problems caused by Arturo being an engine rather than a normal library. |
I just published v2.0 with some minor API changes. This roadmap will be for v3.0, which I hope to start work on soon. |
After some reflection, I'd like to make Arturo more Rack-centric and less Rails-centric, but still make it easy to integrate with Rails. To that end, I'm recommending the following basic interface for v2.0:
The middleware also sets
env['arturo']
, which has#feature_enabled?(Symbol) -> Boolean
and#enabled_features -> Lazy Set
. Use it like so:Of course, we can still build all the Rails integrations on top of this. The only potential problem I see is that it might be hard for some people to turn
feature_recipient
into a method that runs against a Rackenv
Hash.@plukevdh do you have any thoughts on this?
The text was updated successfully, but these errors were encountered: