草庐IT

specific-install

全部标签

ruby - 在 Rails 3 中创建新应用时运行 bundle install

我是RubyOnRails的新手。我在ubuntu11.04上安装了rails3.1.2。每次我跑railsnew最后它确实runbundleinstall.这需要相当长的时间才能完成。每次创建应用程序时都需要运行bundleinstall吗?如果不需要,有什么方法可以阻止它在每次创建新的Rails应用程序时运行,以便RailsNew快速完成? 最佳答案 尝试使用railsnew--skip-bundle. 关于ruby-在Rails3中创建新应用时运行bundleinstall,我们在

ruby-on-rails - 无效的 gem : package is corrupt -- while installing rails in osx yosemite 10. 10.1

我在osxyosemite10.10.1中安装rails时遇到此错误mezbah$geminstallrails--no-ri--no-rdocERROR:Errorinstallingrails:invalidgem:packageiscorrupt,exceptionwhileverifying:undefinedmethod`size'fornil:NilClass(NoMethodError)in/Users/mezbah/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/cache/nokogiri-1.6.6.2.gemmezbah$gem

ruby - 基本 ruby 数组代码 : Testing if an array has a specific integer

我正在尝试测试数组中是否包含特定整数。现在我正在使用这个测试;defadmin?current_user.role_ids==[1,2]||current_user.role_ids==[2]||current_user.role_ids==[1,2,5]end代码有效,但我更愿意只测试整数“2”,而不是明确写出包含“2”的所有可能的数字组合。如果您有任何ruby建议,我将不胜感激。这是我在飞行中所能想象到的最好的结果。谢谢! 最佳答案 您是否在寻找Array#include??current_user.role_ids.inclu

ruby - `bundle install` 失败(因为 git 协议(protocol))

有了这个简单的Gemfile,source'https://rubygems.org'gem'activerecord',"~>2.2.3"gem'activerecord-sqlserver-adapter',github:'arthrex/activerecord-sqlserver-adapter',:branch=>'2-3-stable'bundleinstall失败并显示Fetchinggit://github.com/arthrex/activerecord-sqlserver-adapter.gitfatal:unabletoconnecttogithub.com:gi

ruby - 狮子 : Problem with RVM installing rubies - problem related to openssl

我很绝望,现在已经两天(!!)天都没有解决方案来解决以下问题。更新Lion后,我想使用最新版本的rvm安装额外的rubies。这是我之后调用bundler时发生的情况:/Users/felix/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in`require':dlopen(/Users/janroesner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/x86_64-darwin11.1.0/digest/sha1.bund

ruby-on-rails - gem install debugger -v '1.5.0' 失败

我正在尝试在Mavericks上的大型项目中执行bundle,尽管这是rbenv的全新安装,但一些gems已损坏或我的环境出现问题。$geminstalldebugger-v'1.5.0'Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingdebugger:ERROR:Failedtobuildgemnativeextension./Users/samat/.rbenv/versions/1.9.3-p448/bin/rubyextconf.rbcheckingforrb_method_entry_t.

ruby-on-rails - gem install typhoeus - 未能构建 gem 扩展

我在尝试安装名为typhoeus的gem时收到错误消息(这在“ServiceOrientedDesignwithRails”一书之后使用)——我尝试了很多方法来修复此问题,但我碰壁了,我在这里发帖,希望有人能提供帮助。这是输出:$geminstalltyphoeusBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingtyphoeus:ERROR:Failedtobuildgemnativeextension./Users/my.name/.rvm/rubies/ruby-1.8.7-p302/bin/r

ruby - 错误 : "fatal: I don' t handle protocol `` git` when using bundle install

我的GemFile中有以下行:gem'rails',:git=>'git://github.com/rails/rails.git'我收到以下错误:Fetchinggit://github.com/rails/rails.gitfatal:Idon'thandleprotocol''git'Giterror:command`gitclone'git://github.com/rails/rails.git'...但是当我运行geminstall'rails'时它工作正常。基本上在运行克隆命令时,bundle程序会在引发错误的git://地址周围添加单引号。我在Windows上工作。我为

ruby-on-rails - bundle install 未完成执行。它卡在中间

当我运行bundleinstall时,它卡在了最后。这是我的包控制台输出!~/r/mangowebmasterbundleinstallSunJul2712:45:28IST2014Updatinggit://github.com/mongoid/mongoid.gitUpdatinggit://github.com/Rameshv/mongoid-paranoia.gitUpdatinggit://github.com/resque/resque.gitUpdatinggit://github.com/zapnap/resque_mailer.gitUpdatinggit:/

ruby - Github API : Get pull request for specific release tag

是否可以获得与发布标签相关的拉取请求列表(或只是数字)?我一整天都在查看GithubAPI文档并尝试了不同的方法,但我看不出如何才能完成这项工作。当我通过API获得提交时,我看不到拉取请求信息可用,即使拉取请求ID和链接在这里可用,例如:https://github.com/octokit/octokit.rb/commit/1d82792d7d16457206418850a3ed0a0230defc81(请参阅左上角“master”旁边的#962链接) 最佳答案 您可以提取您的标签与前一个标签之间的提交,并使用这些提交中的每一个搜