简体   繁体   English

修改现有的Rails宝石

[英]Modifying an Existing Rails Gem

I'm playing around with MongoMapper and have cloned the repository. 我在玩MongoMapper,并克隆了存储库。 I'd like to start modifying the code but am new to Rails and am not sure how to do this. 我想开始修改代码,但对Rails还是陌生的,并且不确定如何做到这一点。

You can checkout the github repository - http://github.com/jnunemaker/mongomapper 您可以检出github存储库-http: //github.com/jnunemaker/mongomapper

You can extract the source like this: 您可以像这样提取源:

git clone http://github.com/jnunemaker/mongomapper.git

Which will create a directory with the gem's source in it. 这将创建一个包含gem来源的目录。

You can then reinstall your modified version using 然后,您可以使用重新安装修改后的版本

rake install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM