问题标签 [rubygems]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
16447 浏览

ruby-on-rails - 如何强制 gem 升级到 gem 1.3.1

我正在尝试安装这样的 gem:

返回此消息:

但是当我尝试使用更新时:

它说:

这是在窗户上。如何强制将系统升级到特定版本?

0 投票
2 回答
307 浏览

ruby - 如何在 Solaris 上编译 RDiscount?

我有几个 Solaris 10 盒子,我想在那里运行 RDiscount。(它们是 Joyent 加速器,有一些定制的 BSD 风格的用户空间,以防万一。)

我知道 Maruku、rpeg-markdown 和 BlueCloth 的其他红宝石替代品,但最初我想使用 RDiscount。

这是我尝试安装它时得到的:

显然安装失败,因为它既找不到funopen也找不到fopencookie

说实话,我不知道这些是什么。那么,关于我需要做什么来编译它的任何指针?

0 投票
5 回答
4434 浏览

ruby - 使用 Ruby 企业版,gem 没有安装在我期望的位置

我刚刚安装了 Ruby Enterprise Edition 并正在为它安装一些 gem。Stock Ruby 1.8.6 也安装在服务器上。

我已经/opt/ruby-enterprise-1.8.6-20090201/bin在我PATH的头上添加了/usr/bin哪里rubygem住的地方。

which gem证实了这一点:

/opt/ruby-enterprise-1.8.6-20090201/bin/gem

但是,当我像这样安装 gem 时:

gem install some_gem

他们最终在/usr/lib/ruby/gems/1.8/gems/而不是/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/.

但如果我使用/opt/ruby-enterprise-1.8.6-20090201/bin/gem install some_gem确实会进入 REE 的 gem 目录。

我不明白。我必须更改一些配置选项吗?我这里使用 sudo。也许这与它有关?

0 投票
2 回答
3217 浏览

ruby-on-rails - Vanishing Ruby Gems

I'm using Ubuntu 8.10 and I installed Ruby and Ruby on Rails following the directions on this site. The exact directions I followed are no longer there as it appears the rubyonrails.org wiki has changed recently. But I installed it the long way. Installed Ruby, then Gems, then installed Rails using "gem install rails". I haven't really messed with Rails for a while, and I tried to use the Gem command today and...

That's just weird to me because I installed rails using the gem command. I have been seaching my computer for the gems binary so I could create a link to it in the bin directory but I can't find it. I know it's installed becaues when I run 'script/server' and go to localhost:3000 in a browser I get the following version information:

Anyone know how I can get my gem command working again? Thanks for any help.

Note: I am new to Rails and fairly new to Ubuntu and Linux in general.

0 投票
2 回答
226 浏览

ruby-on-rails - 机车缓慢爬行

我最近一直在使用 Locomotive 2.0.8 构建非常小而简单的应用程序。到目前为止,它一直是理想的解决方案,但最近该应用程序已经放缓到绝对爬行。从字面上看,启动需要 10 分钟,添加现有或新项目需要 5 分钟 - 而且这些创作通常甚至无法正常工作。我无法想象我做了什么。我曾尝试卸载 Locomotive,并清除我的目录。这可能是什么原因造成的?与RubyGems有关吗?除了机车还有其他解决方案吗?或者我怎样才能完全卸载 Loco、gems 和我的所有项目并从根本上格式化我的开发环境以重新开始?

0 投票
1 回答
561 浏览

ruby-on-rails - 使用 Warbler,我如何从捆绑的 gem 中排除 Active Record?

使用 Warbler 时,我需要添加哪些行config/warble.rb以防止它在捆绑的 gem 中包含 Active Record。我已经排除了 Active Record,config/environment.rb如下所示。

我只使用config.gemsin尝试了同样的事情config/warble.rb,但无济于事。

0 投票
2 回答
223 浏览

ruby - 如何从我创建的 NetBeans 安装 RubyGem?

是否可以通过 NetBeans 安装我在 NetBeans 中创建的 RubyGem 而无需将其上传到 RubyForge?

0 投票
1 回答
6049 浏览

ruby-on-rails - rake gems:refresh_specs 解压 gems 错误

听从 Chris Wanstrath 的建议,我决定卖掉一切

但是,现在每当我运行 rake 任务时,我都会收到每个未打包的 gem 的错误说明

config.gem:vendor/gems 中未打包的 gem gemname 没有规范文件。运行 'rake gems:refresh_specs' 来解决这个问题。

我已经这样做了,但没有骰子。有人有同样的问题吗?如果是这样,我该如何解决?

TIA

0 投票
4 回答
169 浏览

ruby - 我在哪里可以找到红宝石宝石系列?

我在哪里可以找到免费的 Ruby gem 集合?如果已经有可以重复使用的宝石,为什么还要重新发明轮子?

0 投票
2 回答
1601 浏览

ruby-on-rails - 如何放一组

在一个里面

我想通过使用以下 Ruby 代码和Nokogiri找出一种获取 HTML 结果的方法(下面将进一步提到) :

生成的 HTML 应如下所示(请注意插入的<div id='XYZ'>):