Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 使用bundler开发Gem并将其用于rails项目,有没有更快的方法?_Ruby On Rails 3_Git_Gem_Bundler - Fatal编程技术网

Ruby on rails 3 使用bundler开发Gem并将其用于rails项目,有没有更快的方法?

Ruby on rails 3 使用bundler开发Gem并将其用于rails项目,有没有更快的方法?,ruby-on-rails-3,git,gem,bundler,Ruby On Rails 3,Git,Gem,Bundler,我正在为Rails项目编写一个gem,并将更改提交到它的git存储库。Rails项目在GEM文件中引用了它 gem "blah", :git => "blah", :branch => "development" 问题在于耐心。每次我向gem提交更改时,我都必须运行“bundle update”(或者至少bundle update blah)才能使用gem,这需要一段时间。有没有办法绕过包更新步骤,在我重新启动Rails应用程序时使用最新版本的gem?首先: 使用路径: gem "

我正在为Rails项目编写一个gem,并将更改提交到它的git存储库。Rails项目在GEM文件中引用了它

gem "blah", :git => "blah", :branch => "development"
问题在于耐心。每次我向gem提交更改时,我都必须运行“bundle update”(或者至少
bundle update blah
)才能使用gem,这需要一段时间。有没有办法绕过包更新步骤,在我重新启动Rails应用程序时使用最新版本的gem?

首先:

使用路径:

gem "blah", :path => "~/Code/blah"
第二(回答Zabba的问答):不,目前不可能在开发模式下自动重新加载gems。每次更改gem时都必须重新启动服务器


更好的方法是使用测试套件中包含的虚拟应用程序生成gem,并对其进行测试。

相关问题:有没有一种方法可以在不重新启动Rails应用程序的情况下自动将更改加载到gem?