草庐IT

bundler-issues

全部标签

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 - 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

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 - 轨道 3/ ruby : ActiveRecord Find method IN condition Array to Parameters single quote issue

我在微博模型上创建了一个方法,它接受一个user_id数组。在此方法中,我使用以下“查找”方法来提取数组中所有用户的所有帖子。find(:all,:conditions=>["user_idIN(?)",args.join(',')])但是当ActiveRecord为这个查询生成SQL时,它用单引号将逗号分隔的ID列表括起来。这会导致查询只提取单引号内第一个数字的帖子,而不是所有数字。SELECT`microposts`.*FROM`microposts`WHERE(user_idIN('3,4,5'))ORDERBYmicroposts.created_atDESC查询应该看起来像这

ruby - bundler 和错误的 binstubs?

我运行railss或bundleexecrailss并收到此警告:Bundlerisusingabinstubthatwascreatedforadifferentgem.Thisisdeprecated,infutureversionsyoumayneedto`bundlebinstubrails`toworkaroundasystem/bundleconflict.这是什么意思?通过查看bundler站点,我对binstubs的理解是您可以为它们设置可执行文件,因此您可以执行bin/blabla而不是运行bundleexecblabla。所以这个错误是说我的bundler没有设置到

ruby - 使用 Ansible 安装 Bundler gem

我正在尝试使用Ansible在我的VPS上安装Bundler。我已经设置了rbenv,全局ruby​​是2.1.0。如果我以root身份通过SSH连接到服务器并运行geminstallbundler,安装完美。我尝试了以下三种使用Ansible安装Bundlergem的方法,这三种方法都没有产生错误,但是当我SSH进入并运行gemlist时,Bundler无处可见。尝试1:----name:InstallBundlershell:geminstallbundler尝试2:----name:InstallBundlershell:geminstallbundler尝试3:----name

ruby - 错误 : Gem bundler is not installed, 首先运行 `gem install bundler`

您好,我一直在尝试安装Rubygem包。收到此消息后,我按照geminstallbundle的说明进行操作,但是当我键入bundle-v时它仍然不起作用。我也打字捆绑并接收/Users/edmundmai/.rvm/bin/bundle所以它存在!!那么为什么它不起作用!我没有得到的神秘$PATH有什么问题吗?(我是菜鸟)。这是我的.bash_profile:PATH=$PATH:~/binexportPATH[[-s"$HOME/.rvm/scripts/rvm"]]&&source"$HOME/.rvm/scripts/rvm"#LoadRVMintoashellsession*a

ruby-on-rails - 如何将 Bundler 与离线 .gem 文件一起使用?

对于我的应用程序,我需要处理加密的ZIP文件。尽管他们的网站看起来很可怕,但似乎奇尔卡特的commercialZipgem可能是实现这一目标的最佳方式。因为这是商业gem,所以在Bundler查看的任何典型gem源中都没有它。我能够在MacOSX下安装Linux64位版本的gem(虽然我还没有尝试运行它,所以还没有关于它是否真的有效的消息)。但是,我首先尝试让Bundler从我下载的.gem文件中识别并加载gem。Bundler有一个pathattribute我尝试以多种方式使用它,但我还没有让它工作:我尝试使用路径指向.gem文件本身,但路径需要一个目录。我尝试将.gz添加到.gem