Grape: Upgrade mustermann dependency ?

Created on 16 Oct 2016  路  14Comments  路  Source: ruby-grape/grape

I'm currently having trouble updating an app to Rails 5 because of this dependency, here's why:

  • rails 5 depends on rack 2
  • rack 2 requires sinatra 2+
  • sinatra 2 requires mustermann 1
  • grape 0.18 depends on mustermann-grape 0.4 which depends on mustermann 0.4

So this is a deadlock and I can't bundle this. I tried to find mustermann-grape to see if we could upgrade the dependency but I can't find it, It seems with a github search that the Grape extension is now in mustermann-contrib.

So I guess grape is now supposed to depend on mustermann-contrib ?

bug?

Most helpful comment

Also stuck due to the same upgrade. Would be great to use the new gem and release. Is there anything I can do to help?

All 14 comments

@jarthod Thanks for yourt report! I'm going to investigate the problem in a few days.

I heard from @zzak that the conttrib stuff was a result of merging many gems? Maybe he can help shed some light on what's going on?

Well, I found a few points.

  • rack-2.0 seems not to depend on sinatra
  • sinatra-2.0 depends on mustermann-1, but they're still in beta.

And then, I think we have two approach for managing mustermann gem.

  • Continue to maintain mustermann-grape.
  • Use mustermann-contrib instead of mustermann-grape.

If we decide to use mustermann-contrib, it does not affect to our development, I think.

I think we should use whatever is maintained.

Yes, both mustermann-contrib and mustermann-grape can be maintained.
Btw I think mustermann-grape is hosted by me, so we can feel free to cut a release of the gem.

Sounds good. Maybe you want to move it into the Grape organization @namusyaka?

Exactly. Mustermann will be continued to be used by us.
In other words, the gem is considered to be the most desirable that we can handle.

If you don't have org permissions move it to me and I'll move it to the org @namusyaka.

Sounds good to me, let me know if you need anything from me.

Thanks

Also stuck due to the same upgrade. Would be great to use the new gem and release. Is there anything I can do to help?

Sorry fory the late reply. I've just released v1.0.0.beta2.

I'm going to close this issue, but if you still have the problem, please let me know.
Thanks!

Thanks @namusyaka for the mustermann-grape update. Does that update alone fix this issue though? Grape itself still depends on mustermann-grape 0.4.0. Does that need to be changed to resolve the original dependency deadlock described by @jarthod?

@russellsilva I'm going to cut new release mustermann-grape-1.0.0 after releasing official mustermann-1.0.0, and then we will release new grape.

To avoid dependency dead lock, you can use this branch by adding following line to your Gemfile.

gem 'grape', branch: 'upgrade-mustermann', github: 'ruby-grape/grape'
Was this page helpful?
0 / 5 - 0 ratings