草庐IT

esm-bundler

全部标签

ruby - Bundler::GemfileNotFound 每当我尝试运行 bundle install

我正在使用kali-linux(Linux发行版女巫是Back-Track的延续,基于Ubuntu,只是现在基于Debianwheezy)进行一些渗透测试。一切正常,直到我决定更新我的系统工具。现在,每当我尝试运行基于ruby​​的工具时,它都会给我带来麻烦:Couldnotfindgem'ruby-progressbar(>=1.1.0)ruby'inthegemsavailableonthismachine.Run`bundleinstall`toinstallmissinggems.我继续运行bundleinstall但随后出现了Bundler::GemfileNotFound错

ruby-on-rails - 找不到 RubyGem bundler

我已经为github克隆了diaspora,git://github.com/diaspora/diaspora.git我试着安装它。使用bundleinstall时发生错误。$bundleinstall/usr/local/lib/site_ruby/1.8/rubygems.rb:812:in`report_activate_error':CouldnotfindRubyGembundler(>=0)(Gem::LoadError)from/usr/local/lib/site_ruby/1.8/rubygems.rb:223:in`activate'from/usr/local/

ruby - 使用自定义 gem 源的 bundler 出现 "Could not find gem …"错误

在我的Gemfile中,我需要一个来自自定义源的gem,其中包含以下行:gem'very-secret-gem',source:'https://foo.example.com/'bundleinstall完成正常:$bundleinstallFetchingsourceindexfromhttps://foo.example.com/Fetchingsourceindexfromhttps://foo.example.com/Fetchinggemmetadatafromhttps://rubygems.org/........…Resolvingdependencies...…In

ruby - 运行 dependency.rb :247:in `to_specs' : Could not find bundler

当我运行bundle时,出现以下错误~/rails_apps/redmine]#bundle/usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in`to_specs':Couldnotfindbundler(>=0)amongst[RedCloth-4.2.9,ZenTest-4.8.2,actionmailer-2.3.14,actionpack-2.3.14,activerecord-2.3.14,activeresource-2.3.14,activesupport-2.3.14,cgi_multipart_eof_fi

ruby-on-rails - 绕过辅助开发 gem 的 bundler

在我的Rails项目的Gemfile中,我开始有辅助gem,例如“ruby-debug19”、“perftools.rb”或“irbtools”。所有这些实际上与项目无关,而是我本地开发设置的一部分。但是因为我使用的是bundler,所以我无法加载这些gems(即使它们是在系统范围内安装的),除非我将它们添加到Gemfile中。在我看来,这有点代码味道。例如,我希望能够在railsconsole中require'irbtools'而无需将“irbtools”添加到我的Gemfile。有没有办法将辅助gem排除在Gemfile之外,并且仍然能够在我需要它们时加载它们以进行调试、分析等?

ruby-on-rails - Capistrano bundler :install fails

我正在尝试使用Capistrano3.0将我的Rails应用程序部署到EC2实例中。我现在在运行“capproductiondeploy”或“capproductionbundler:install”时出现以下输出。DEBUG[5b379979]Running/usr/bin/enviftest!-d/var/www/app/current;thenecho"Directorydoesnotexist'/var/www/app/current'"1>&2;false;fionec2-75-101-200-185.compute-1.amazonaws.comDEBUG[5b379979

ruby-on-rails - 没有要加载的文件 -- bundler/setup

我正在尝试让Rails在Rackspace服务器上运行,不幸的是,它们不支持Rails。我在Ubuntu上使用Apache和Passenger(没有RVM)。当我访问服务器时,出现以下错误:nosuchfiletoload--bundler/setup回溯如下:/usr/lib/ruby/1.8/rubygems/custom_require.rb31ingem_original_require'/usr/lib/ruby/1.8/rubygems/custom_require.rb31inrequire'/rails/gradebook-attendance/config/boot.

ruby - 没有这样的文件来加载 Rails 3 的 bundler 错误

我有一个Rails3应用程序准备好进行暂存。我还没有设置VPS主机。因为我计划在头几个月将所有内容都放在共享主机上。问题:cd我的应用程序捆绑检查结果:TheGemfile'sdependenciesaresatisfied乘客错误:Errormessage:nosuchfiletoload--bundlerExceptionclass:LoadError关于共享主机的令人沮丧的事情是我必须在config.ru上添加这些行:ENV['GEM_HOME']='/home/username/.gems'ENV['GEM_PATH']='$GEM_HOME:/usr/lib/ruby/gem

ruby - 使用 Aruba 和 Bundler 测试基于 Ruby 的 CLI

我有一个RSpec套件,通过Bundler运行,它正在使用Aruba测试许多不同的命令行应用程序。它工作正常......只要被测试的命令本身不是使用Bundler用Ruby编写的。但我无法弄清楚如何防止RSpec套件的bundler配置干扰本身使用bundler的命令的执行-至少,并非没有极端措施。我尝试了unset_bundler_env_vars和with_clean_env的各种排列,但无济于事。这是我认为可行的技术示例:describe'myrubyapp'dobefore:each{unset_bundler_env_vars}it'shouldwork'doBundler.

ruby - Homebrew 软件损坏 - "cannot load such file -- vendor/bundle/bundler/setup (LoadError)"

每次我尝试运行brew命令时,都会出现以下错误:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in`require':cannotloadsuchfile--vendor/bundle/bundler/setup(LoadError)from/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/r