找出哪些宝石需要来自Gemfile的原生C扩展? [英] Find out which gems require native c extensions from a Gemfile?

查看:153
本文介绍了找出哪些宝石需要来自Gemfile的原生C扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始将注意力转移到在 TorqueBox 上部署Ruby应用程序,这当然是建立在Jruby之上的。到目前为止,我基本上都在执行一个 bundle install ,然后沿着jrubydom的方式处理每个gem,但是我碰到了一些花了我很多时间来解决的宝石由于需要重新实现它们的大部分。

有没有一种方法可以调用bundler或rubygems来运行所有gem及其代码,以测试它们是否需要本地c扩展,然后返回这样的列表?它肯定会很好地处理一些较小的项目,甚至知道是否值得将项目转移到jruby上。

解决方案

您可以使用 JRuby Lint 。它会检查一些需要C扩展的宝石,甚至是替代列表(基于此列表)。


I just recently started shifting attention towards deploying Ruby apps atop TorqueBox which of course is built atop Jruby. Hitherto I have been basically performing a bundle install and then tackling each gem along the way to jrubydom, but I've hit a couple gems that have taken me some considerable time to resolve due to needing to reimplement large portions of them.

Is there a way to invoke bundler or rubygems to run through all gems and their deps to test if they require native c extensions and then return such a list? It sure would be nice to tackle some of the more minor items or even to know if it is worthwhile to tackle a project in terms of moving it to jruby.

解决方案

You can use JRuby Lint for that. It will will check for some gems requiring C extension and even list alternative (based on this list).

这篇关于找出哪些宝石需要来自Gemfile的原生C扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆