草庐IT

ruby-on-rails - Bundle Install 无法从 https ://rubygems. org/获取规范

我正在尝试遵循HartlRails教程,但在使用bundlergem时遇到了问题。当使用命令“bundleinstall”或“bundleupdate”时,我得到以下输出:Fetchingsourceindexfromhttps://rubygems.org/Couldnotfetchspecsfromhttps://rubygems.org/我搜索过这个输出,但没有在网上找到很多相关问题。也许我有另一个干扰bundler的gem?在这一点上,我对Rails没有什么经验。source'https://rubygems.org'gem'rails','3.2.12'group:devel

ruby-on-rails - 如何添加特定于 Mac 的 gem 以在 Mac 上 bundle 而不在 Linux 上 bundle ?

我正在Mac上开发Rails应用程序,我是测试新手,所以我刚刚将这些gem添加到我的Gemfile:group:test,:developmentdogem'rspec-rails'gem'rb-fsevent'gem'growl'end但我的生产服务器运行Linux,所以即使它们没有分组在:production中,bundle程序(v1.0.21)仍会尝试安装它们。...显然失败了!extconf.rb:19:in'':OnlyDarwin(MacOSX)systemsaresupported(RuntimeError)设置RAILS_ENV运行前到生产环境bundleinstall

ruby-on-rails -/usr/bin/env ruby​​ 没有这样的文件或目录 : Using capistrano 3, capistrano/rbenv、capistrano/bundler 和 capistrano/rails(使用 rails 4)

我正在使用capistrano、capistrano/rbenv、capistrano/bundler和capistrano/rails。我在capistrano编译Assets的步骤中得到这个错误:DEBUG[49a50df6]/usr/bin/env:DEBUG[49a50df6]rubyDEBUG[49a50df6]:NosuchfileordirectoryDEBUG[49a50df6]在生产服务器中/usr/bin/envruby​​-v是正确的。我知道这一点:why-does-something-work-in-my-ssh-session-but-not-in-capis

ruby - 使用 bundler 安装更新版本的 bundler

如果我更改Gemfile中所需的bundler版本,然后键入bundle,我得到Bundlercouldnotfindcompatibleversionsforgem"bundler":InGemfile:bundler(>=1.10.2)rubyCurrentBundlerversion:bundler(1.9.9)ThisGemfilerequiresadifferentversionofBundler.PerhapsyouneedtoupdateBundlerbyrunning`geminstallbundler`?Couldnotfindgem'bundler(>=1.10.2

ruby-on-rails - Rails 3 中的 Gemfile 中的组?

在我的Rails中的Gemfile中,我有这些组:group:development,:testdogem"capybara"gem"database_cleaner"gem"spork"gem"launchy"endgroup:bdddogem"cucumber-rails"gem"rspec-rails"end这是什么意思? 最佳答案 来自http://yehudakatz.com/2010/05/09/the-how-and-why-of-bundler-groups/:Specifyinggroupsallowsyoutod

ruby-on-rails - bundler /设置(LoadError)

我克隆了一个存储库并尝试运行railss。但是,我收到以下错误:/Users/me/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in`require':cannotloadsuchfile--bundler/setup(LoadError)from/Users/me/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in`require'from/Users/me/workspace/bindo

ruby - "<top (required)>"在 Ruby 堆栈跟踪中意味着什么?

在Ruby1.9.2堆栈跟踪中,我经常看到给出的方法为,如下面的堆栈部分所示。这是什么意思?我的Ruby安装有什么问题吗?Couldnotfindabstract-1.0.0inanyofthesources/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/spec_set.rb:87:in`blockinmaterialize'/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/spec_set.rb:81:in`map!'/usr/l

Gemfile 中的 Ruby Bundler 多个来源

我需要确保我的一些gem是从我们自己的gem存储库而不是ruby​​gems安装的,而其余的是从ruby​​gems安装的。我可以在Gemfile中设置它而不用担心与Rubygems中同名gem的命名冲突吗?如何确定gem从何处下载?例如gem文件:source:rubygemsgem'gemfromrubygems1'gem'gemfromrubygems2'source"http://our.own.gem.repo.com/the/path/to/it"gem'gemfromourrepo' 最佳答案 Bundler1.7有一

ruby-on-rails - 部署到 heroku 时如何解决 rails 中的更新 bundler 警告?

如何解决以下警告?我将我的ruby​​版本更新为2.3.1,将rails版本更新为4.2.6。当我将我的应用程序推送到heroku时,我收到此警告。remote:Cleaningupthebundlercache.remote:Warning:therunningversionofBundlerisolderthantheversionthatcreatedthelockfile.WesuggestyouupgradetothelatestversionofBundlerbyrunning`geminstallbundler`.remote:Removingmime-types-dat

ruby - 恢复 Rails 3's Bundle Install Path... It' s 现在安装在我的根目录中

我在尝试安装vestal_versions插件时做了一些事情,最终在我的应用程序的根目录中创建了一个vestal_versions目录,内容如下:-Application-APP-DB-vestal_versions-ruby-1.8-bin-cache-doc-gems-specifications如果删除哪个会阻止应用程序运行...我如何更新bundle以将所有这些东西安装在正确的位置,我认为这是在应用程序之外? 最佳答案 bundleinstall使bundler将gem安装在相应的目录中。正在运行bundleinstall-