invalid-bundle-structure
全部标签 我是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的踪迹再次编辑:好吧,它以某种方式工作。也
我正在尝试使用JRuby运行我的rspec:rakespec结果是:jruby-Sbundleexecrspec--colorspec/foo_spec.rb没有颜色出现,所以我从等式中删除了Jruby:bundleexecrspec--colorspec/foo_spec.rb没有颜色。如何将“--color”选项传递给rspec?我的项目的根目录中还有一个.rspec文件,在这些情况下似乎没有帮助。然而,.rspec文件在我刚刚运行时被拾取或使用:rspecspec/foo_spec.rb有什么想法吗? 最佳答案 将--tty添
我有一个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
我知道有很多关于此错误的类似问题,而且我已经尝试了很多,但都没有成功。我遇到的问题涉及字节\xA1并且正在抛出ArgumentError:invalidbytesequenceinUTF-8我尝试了以下但没有成功:"\xA1".encode('UTF-8',:undef=>:replace,:invalid=>:replace,:replace=>"").sub('','')"\xA1".encode('UTF-8',:undef=>:replace,:invalid=>:replace,:replace=>"").force_encoding('UTF-8').sub('','')"
刚刚升级到ruby2.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
在我的Rails4应用程序中执行命令bundleinstall时出现以下错误。>ruby-vruby2.1.8p440(2015-12-16revision53160)[i386-mingw32]>rails--versionCouldnotfindgem'capybara-webkitx86-mingw32'inanyofthegemsourceslistedinyourGemfileoravailableonthismachine.Run`bundleinstall`toinstallmissinggems.我的Gemfile........group:development,:l
我正在开发一个gem,它在github上。当我在应用程序中包含gem时,进行capistrano部署,然后(在服务器上)运行:bundleoutdated我明白了:*authengine(0.0.1d8baa49>0.0.1de43dfa)这告诉我有更新的提交可用。为什么bundle更新(capistrano部署的一部分)不提取更新的版本?宿主应用程序的Gemfile中没有版本限制,无论如何它们具有相同的版本号,只是不同的提交。即使我登录服务器并运行bundleupdateauthengine之后我得到了相同的“过时”结果。我在这里缺少什么? 最佳答案
我使用的是rails4.1.1和ruby2.1.1,我在设计方面遇到了问题,即我的路线。我以前用过很多次devise_for:usersget'pages/index'#RoutetoDeviseLoginPagedevise_scope:userdorootto:"devise/sessions#new"end#Directingtheuserafterloginauthenticated:userdoroot:to=>'pages#index'end但是我得到了错误`add_route':Invalidroutename,alreadyinuse:'root'(Argument
我目前正在尝试为我的一些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
我学习了1个月的linux。当我尝试从MigratingfromMySQLtoPostgresonHeroku开始执行所有步骤时我遇到无法处理的错误。当我尝试从源代码安装mysqltopostgresgem时:$gitclonehttps://github.com/maxlapshin/mysql2postgres.git$cdmysql2postgres$bundleinstall$gembuildmysqltopostgres.gemspec$sudogeminstallmysqltopostgres-0.2.20.gem我在$bundleinstall上有一个错误:/home/f