jjzjj

ruby - better_errors 要求 Ruby 版本 >= 2.0.0

Bundle无法安装better_errors。Gem::InstallError:better_errorsrequiresRubyversion>=2.0.0.Anerroroccurredwhileinstallingbetter_errors(2.0.0),andBundlercannotcontinue.Makesurethat`geminstallbetter_errors-v'2.0.0'`succeedsbeforebundling.但是geminstallbetter_errors工作正常。ruby--version表示ruby2.0.0p353(2013-11-22

ruby-on-rails - 用于开发的本地 Gem 路径和用于生产的远程 Git repo

我有一个正在本地开发的gem,它被一个项目使用。如果我在中使用path指定gem的位置,我可以进行更改并且项目会选择新代码:gem'example',:path=>"~/path/to/gems/example"但是,当我推送到Heroku时,bundle失败,因为Heroku无法访问我本地计算机上的gem源。所以我可以将gem源推送到远程仓库并将gem源指向那里:gem'example',:github=>'example/example',:branch=>'example_feature'但是我现在需要将更改推送到这个repo,然后更新gem以在我的项目中获取新的更改:$cd~/

ruby-on-rails - 更改 bundle 安装 Ruby 版本

我是Ruby/Rails的新手,如果这是一个微不足道的问题,请原谅我。每当我运行bundleinstall时,它都会在vendor/bundle/ruby/1.8中安装所有内容,而不是vendor/bundle/ruby/1.9.1,这是我正在使用的Ruby版本。当我运行ruby-v时,我得到了正确的1.9.1版本,但是bundleinstall出于某种原因坚持使用1.8,这导致了基本Rails功能的许多错误。如何指示bundle与1.9.1一起工作(最好删除任何Ruby1.8的踪迹)?谢谢!编辑:我已经做了一切this回答说,我没有得到1.8的踪迹再次编辑:好吧,它以某种方式工作。也

ruby - 使用 JRuby 或 bundle exec 时如何使用 rspec 启用颜色?

我正在尝试使用JRuby运行我的rspec:rakespec结果是:jruby-Sbundleexecrspec--colorspec/foo_spec.rb没有颜色出现,所以我从等式中删除了Jruby:bundleexecrspec--colorspec/foo_spec.rb没有颜色。如何将“--color”选项传递给rspec?我的项目的根目录中还有一个.rspec文件,在这些情况下似乎没有帮助。然而,.rspec文件在我刚刚运行时被拾取或使用:rspecspec/foo_spec.rb有什么想法吗? 最佳答案 将--tty添

ruby - Errno::EACCES:通过 gitlab 安装 gems 时权限被拒绝

我正在尝试设置gitlab并因此使用sudo从另一个用户帐户安装一些gem,但我经常收到Permissiondenied错误。sudo-ugitlab-Hbundleinstall--deployment--withoutdevelopmenttestpostgres>Using...(alotofsuccessfulgemsthere)>Usingpygments.rb(0.3.2)fromhttps://github.com/gitlabhq/pygments.rb.git(atmaster)>Errno::EACCES:Permissiondenied-pygments.rb-0

ruby - Rvm:无法卸载 bundle 程序 1.1.0

我有一个rails3.0.2项目我想安装,尽管我的大多数新项目都是3.2+我去运行bundleinstall并收到以下消息:Bundlercouldnotfindcompatibleversionsforgem"bundler":InGemfile:rails(=3.0.2)rubydependsonbundler(~>1.0.0)rubyCurrentBundlerversion:bundler(1.1.0)ThisGemfilerequiresadifferentversionofBundler.PerhapsyouneedtoupdateBundlerbyrunning`gemi

ruby - Bundle 安装在 ruby​​ 2.0 升级时损坏

刚刚升级到ruby​​2.0/rails4.0并尝试在新的rails项目上运行bundleinstall。每当它遇到尚未安装的东西时,它就会吐出:Installingcoffee-rails(4.0.0.beta1)Errno::ENOENT:Nosuchfileordirectory-/usr/lib/ruby/gems/2.0.0/build_info/coffee-rails-4.0.0.beta1.infoAnerroroccurredwhileinstallingcoffee-rails(4.0.0.beta1),andBundlercannotcontinue.Makesu

ruby-on-rails - 无法在 Rails 4 中使用 bundle install 命令安装 capybara-webkit

在我的Rails4应用程序中执行命令bundleinstall时出现以下错误。>ruby-vruby2.1.8p440(2015-12-16revision53160)[i386-mingw32]>rails--versionCouldnotfindgem'capybara-webkitx86-mingw32'inanyofthegemsourceslistedinyourGemfileoravailableonthismachine.Run`bundleinstall`toinstallmissinggems.我的Gemfile........group:development,:l

ruby - 为什么 bundle 更新后 gem 仍然过时

我正在开发一个gem,它在github上。当我在应用程序中包含gem时,进行capistrano部署,然后(在服务器上)运行:bundleoutdated我明白了:*authengine(0.0.1d8baa49>0.0.1de43dfa)这告诉我有更新的提交可用。为什么bundle更新(capistrano部署的一部分)不提取更新的版本?宿主应用程序的Gemfile中没有版本限制,无论如何它们具有相同的版本号,只是不同的提交。即使我登录服务器并运行bundleupdateauthengine之后我得到了相同的“过时”结果。我在这里缺少什么? 最佳答案

ruby - 无法运行 Jenkins Build - bundle : "command not found"

我目前正在尝试为我的一些cucumber任务运行jenkins构建。我所有的gem都是使用Bundler安装的。Gem存储在vendor文件夹中。但是,当我尝试在执行shell构建步骤中运行bundleinstall--deployment时,出现以下错误:StartedbyuseranonymousBuildinginworkspace/Users/Shared/Jenkins/Home/jobs/cukes/workspace[workspace]$/bin/sh-xe/var/folders/zz/zyxvpxvq6csfxvn_n0000004000001/T/hudson44