草庐IT

bundle-id

全部标签

ruby-on-rails - Rails - bundle : command not found

当我尝试在Mac上运行/检查包时遇到问题当我执行gemlist--local时,Bundler/bundler在本地gem列表中Gemenv返回以下内容RubyGemsEnvironment:-RUBYGEMSVERSION:2.0.14-RUBYVERSION:2.0.0(2014-05-08patchlevel481)[universal.x86_64-darwin14]-INSTALLATIONDIRECTORY:/Library/Ruby/Gems/2.0.0-RUBYEXECUTABLE:/System/Library/Frameworks/Ruby.framework/Ve

ruby-on-rails - Bundle Install 无法从 https ://rubygems. org/获取规范

我正在尝试遵循HartlRails教程,但在使用bundlergem时遇到了问题。当使用命令“bundleinstall”或“bundleupdate”时,我得到以下输出:Fetchingsourceindexfromhttps://rubygems.org/Couldnotfetchspecsfromhttps://rubygems.org/我搜索过这个输出,但没有在网上找到很多相关问题。也许我有另一个干扰bundler的gem?在这一点上,我对Rails没有什么经验。source'https://rubygems.org'gem'rails','3.2.12'group:devel

ruby-on-rails - 如何添加特定于 Mac 的 gem 以在 Mac 上 bundle 而不在 Linux 上 bundle ?

我正在Mac上开发Rails应用程序,我是测试新手,所以我刚刚将这些gem添加到我的Gemfile:group:test,:developmentdogem'rspec-rails'gem'rb-fsevent'gem'growl'end但我的生产服务器运行Linux,所以即使它们没有分组在:production中,bundle程序(v1.0.21)仍会尝试安装它们。...显然失败了!extconf.rb:19:in'':OnlyDarwin(MacOSX)systemsaresupported(RuntimeError)设置RAILS_ENV运行前到生产环境bundleinstall

ruby - 我可以或应该通过 ruby​​ 中的 object_id 属性找到一个对象吗?

当我创建一个新对象时,假设o=Object.new这个对象有一个id,o.object_id#=>########我还使用Object类制作了其他几个对象。使用object_id属性让ruby​​找到对象“o”的最佳方法是什么?我在想类似的事情search_id=o.object_idsearch_result=Object.find(search_id)其中“search_results”是对应于“search_id”的对象。此外,我肯定会欣赏一种完全不同的方法来索引对象并通过guid或其他方式检索它们。非常感谢!哈,好吧,我想我真的只需要在数据库的上下文中考虑这个问题,只需使用My

ruby - 在 Ruby 中,为什么 inspect() 会打印出某种与 object_id() 给出的不同的对象 ID?

p函数在打印出对象时,可能会给出一个ID,与object_id()给出的不同。不同数字的原因是什么?更新:0x4684abc不同于36971870,即0x234255E>>a=Point.new=>#>>a.object_id=>36971870>>a.__id__=>36971870>>"%X"%a.object_id=>"234255E" 最佳答案 inspect的默认实现调用了to_s的默认实现,它只是直接显示对象的十六进制值,如Object#to_s中所见docs(单击方法描述以显示来源)。同时,object_id实现的C源

ruby - 恢复 Rails 3's Bundle Install Path... It' s 现在安装在我的根目录中

我在尝试安装vestal_versions插件时做了一些事情,最终在我的应用程序的根目录中创建了一个vestal_versions目录,内容如下:-Application-APP-DB-vestal_versions-ruby-1.8-bin-cache-doc-gems-specifications如果删除哪个会阻止应用程序运行...我如何更新bundle以将所有这些东西安装在正确的位置,我认为这是在应用程序之外? 最佳答案 bundleinstall使bundler将gem安装在相应的目录中。正在运行bundleinstall-

ruby-on-rails - bundle 安装不适用于 capistrano

我想通过capistrano3.0部署我的简单rails4.0应用程序。我使用bundler1.3.5所以我添加了capistrano-bundlergem将bundler与capistrano集成。我有非常简单的配置(几乎是默认配置):set:bundle_gemfile,->{release_path.join('Gemfile')}set:bundle_dir,->{shared_path.join('bundle')}set:bundle_flags,''set:bundle_without,%w{testdevelopment}.join('')set:bundle_bins

ruby - bundle 失败 - 找不到 PostgreSQL 客户端库 (libpq)

这个问题在这里已经有了答案:Can'tfindthePostgreSQLclientlibrary(libpq)(23个回答)关闭7年前。我想我已经尝试了我能找到的关于这个问题的所有建议。仍然不适合我。当我尝试bundle...$bundle...Gem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension./System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/rubyextconf.rbcheckingforpg_config.

ruby-on-rails - 在 bundle install 上安装 Nokogiri 时出错但已经安装

我在bundle我的Gemfile时遇到问题。当我运行bundleinstall时,我已经安装了Nokogiri,它无法加载Nokogiri。安装Nokogiri:geminstallnokogiriBuildingnativeextensions.Thiscouldtakeawhile...Successfullyinstallednokogiri-1.6.6.2Parsingdocumentationfornokogiri-1.6.6.2Doneinstallingdocumentationfornokogiriafter2seconds1geminstalledbundle安装:

ruby - bundle 不适用于 rbenv

我正在尝试将bundler与rbenv一起使用。我一直工作到今天。我唯一可能破坏它的是gempristine--all或gemcleanup?尝试安装bundler时出现以下错误。Antarrs-MacBook-Pro:some-appantarrbyrd$sudogeminstallbundlerPassword:Bundlergavetheerror"Couldnotfindmail-2.5.4inanyofthesources"whileprocessing"/Users/antarrbyrd/dev/some-app/Gemfile".Perhapsyouforgottorun