草庐IT

spreadsheet-gem

全部标签

ruby - 使用 bundler 仅更新一个 gem

我使用bundler来管理我的rails应用程序中的依赖项,并且我在git存储库中托管了一个gem,如下所示:gem'gem-name',:git=>'path/to/my/gem.git'为了更新这个gem,我执行了bundleupdate但它也更新了Gemfile中提到的所有gem。那么仅更新一个特定gem的命令是什么? 最佳答案 Here你可以找到关于两者之间区别的很好的解释同时更新gem和依赖项:bundleupdategem-name或专门更新gem:bundleupdate--sourcegem-name以及一些可能的副

ruby - 如何从代理后面更新 Ruby Gems (ISA-NTLM)

我背后的防火墙正在NTLM-only模式下运行MicrosoftISA服务器。是否有人成功通过RubySSPIgem或其他方法安装/更新他们的Rubygem?...还是我懒惰?注意:rubysspi-1.2.4不工作。这也适用于IronRuby项目的一部分“igem” 最佳答案 对于Windows操作系统,我使用Fiddler解决了这个问题。从www.fiddler2.com安装/运行Fiddler运行gem:$geminstall--http-proxyhttp://localhost:8888$gem_name

ruby - 如何找到gem文件的安装位置

我可以找到使用gemlist安装的gem,但它没有显示这些gem的安装位置。如何找到gem的位置,以及在安装gem之前我如何知道它将被安装到哪里? 最佳答案 使用gemenvironment了解您的gem环境:RubyGemsEnvironment:-RUBYGEMSVERSION:2.1.5-RUBYVERSION:2.0.0(2013-06-27patchlevel247)[x86_64-darwin12.4.0]-INSTALLATIONDIRECTORY:/Users/ttm/.rbenv/versions/2.0.0-p2

ruby - 无法构建 gem native 扩展(安装 Compass)

当我尝试安装最新版本的compass(https://rubygems.org/gems/compass/versions/1.0.0.alpha.17)时,出现以下错误。ERROR:Errorinstallingcompass:ERROR:Failedtobuildgemnativeextension.ERROR:Errorinstallingcompass:ERROR:Failedtobuildgemnativeextension./System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/rubyextconf.r

ruby - gem eventmachine fatal error : 'openssl/ssl.h' file not found

刚刚安装了ElCapitan,无法安装gemeventmachine1.0.7。openssl位于1.0.2a-1。尝试使用--with-ssl-dir但它似乎被忽略了。报告给他们的githubrepo非常感谢任何建议。谢谢。$ls/usr/local/Cellar/openssl/1.0.2a-1/include/openssl/ssl.h/usr/local/Cellar/openssl/1.0.2a-1/include/openssl/ssl.h$geminstalleventmachine-v'1.0.7'----with-ssl-dir=/usr/local/Cellar/o

ruby-on-rails - 安装 ruby​​gems 时出现 SSL 错误,无法从“https ://rubygems. org/”提取数据

我正在尝试完成MichaelHartl教程。当我尝试在我的gemset中安装rails3.2.14时,出现以下问题:$geminstallrails-v3.2.14ERROR:Couldnotfindavalidgem'rails'(=3.2.14),hereiswhy:Unabletodownloaddatafromhttps://rubygems.org/-SSL_connectreturned=1errno=0state=SSLv3readservercertificateB:certificateverifyfailed(https://s3.amazonaws.com/pro

ruby - 如何在 Ubuntu 上安装 PostgreSQL 的 pg gem?

我正在尝试为Ruby安装PostgreSQL的pggem。我发出了以下命令:geminstallpg我使用RVM安装了Ruby1.9.2。上面的命令显示了以下错误。错误是:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingpg:ERROR:Failedtobuildgemnativeextension./home/User/.rvm/rubies/ruby-1.9.2-preview3/bin/rubyextconf.rbcheckingforpg_config...yescheckingforlib

ruby - 如何安装本地 gem?

如果我将.gem文件下载到计算机中的文件夹中,我可以稍后使用geminstall安装它吗? 最佳答案 此外,您可以使用geminstall--localpath_to_gem/filename.gem这将跳过在您离开--local时发生的通常的gem存储库扫描。您可以使用geminstall--help找到其他魔法。 关于ruby-如何安装本地gem?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/

ruby-on-rails - 如何在我的 Gemfile 中指定本地 gem?

我希望Bundler加载本地gem。有选择吗?或者我是否必须将gem文件夹移动到.bundle目录中? 最佳答案 我相信你能做到:gem"foo",path:"/path/to/foo" 关于ruby-on-rails-如何在我的Gemfile中指定本地gem?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/4487948/

ruby - 卸载旧版本的 Ruby gems

我有多个版本的Rubygem:$gemlistrjb(1.3.4,1.3.3,1.1.9)如何删除旧版本但保留最新版本? 最佳答案 #removealloldversionsofthegemgemcleanuprjb#choosewhichonesyouwanttoremovegemuninstallrjb#removeversion1.1.9onlygemuninstallrjb--version1.1.9#removeallversionslessthan1.3.4gemuninstallrjb--version'