简体   繁体   English

轨道应用中的宝石开发

[英]Gem development in a rails application

I am working on a gem, which I'd like to finalize inside a Rails (3) project. 我正在开发一个gem,我想在Rails(3)项目中完成。 The gem is build with jeweler. 宝石是由珠宝商建造的。

The gem works, but has quite a few rough edges and TODOs. 宝石工作,但有相当多的粗糙边缘和TODO。 I have (some) tests, and they all pass. 我有(一些)测试,他们都通过了。 I want to work on it a bit more, by implementing it in a Rails project. 我希望通过在Rails项目中实现它来更多地工作。

What workflow should I use? 我应该使用什么工作流程? Are there bundler, jeweler or rake commands for this kind of workflow? 这种工作流程是否有捆绑器,珠宝商或rake命令? Or should I place the "source" (unbuild gem) somewhere in my rails app and have Rails pick it magically? 或者我应该在我的rails应用程序中放置“源”(unbuild gem)并让Rails神奇地选择它? Are there other tricks or projects to look at? 是否还有其他技巧或项目需要考虑?

Just place something like this in your Rails project's Gemfile: 只需在Rails项目的Gemfile中放置这样的东西:

gem 'yourgem', :path => "~/Workspace/yourgem"

where ~/Workspace/yourgem points to the location where you are doing active gem development on your computer. ~/Workspace/yourgem指向您在计算机上进行活动gem开发的位置。

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

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