本文介绍了如何“转换”一个宝石插件使它“私密”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ruby on Rails 3.2.2。我已经实现了一个 Something 插件(它几乎是一个宝石,但不是宝石),所有相关的文件都在 lib / something directory。


  1. 我应该如何完成转换 Something Something gem而不公开它($ c $>插件到Ruby gem?也就是说,没有把它放在公共服务器上)?

    解决方案


    1. 前面的链接也包含了这个 - gem install something-1.2.3.gem


    I am using Ruby on Rails 3.2.2. I have implemented a Something plugin (it is almost a gem, but is not a gem) and all related files are in the lib/something directory.

    1. What steps should I accomplish to "convert" the Something plugin to a Ruby gem?
    2. How to use the new implemented Something gem in my application without to make it public (that is, without put that on a public server)?
    解决方案
    1. http://guides.rubygems.org/make-your-own-gem/
    2. Previous link covers that as well - gem install something-1.2.3.gem

    这篇关于如何“转换”一个宝石插件使它“私密”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 03:21