English 中文(简体)
我该如何检查古老的宝石的依附关系?
原标题:How do I check the dependencies of an older version of a gem?

我该如何检查旧版宝石的依赖性? 宝石依赖性指令似乎只与最新版本有效,尽管宝石帮助依赖性页面上有一个 - v 选项(版本 ) 。

在此列出所有可用版本的列表 :

gem list -all -r activesupport

*** REMOTE GEMS ***

activesupport (3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1.0, 3.0.12, 3.0.11, 3.0.10, 3.0.9, 3.0.8, 3.0.7, 3.0.6, 3.0.5, 3.0.4, 3.0.3, 3.0.2, 3.0.1, 3.0.0, 2.3.14, 2.3.12, 2.3.11, 2.3.10, 2.3.9, 2.3.8, 2.3.7, 2.3.6, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.2.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.4, 2.0.2, 2.0.1, 2.0.0, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4.0, 1.3.1, 1.3.0, 1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0)
activesupport-cascadestore (0.0.2, 0.0.1)

然而,我似乎无法理解 古老的宝石的依附关系。

gem dependency activesupport -r -v 3.2.3
Gem activesupport-3.2.3
  i18n (~> 0.6, runtime)
  multi_json (~> 1.0, runtime)

gem dependency activesupport -r -v 1.4.2
No gems found matching activesupport (= 1.4.2)

gem dependency activesupport -r -v 1.4.1
No gems found matching activesupport (= 1.4.1)

..and here s a post circa 2009 that encounters the same problem: http://www.ruby-forum.com/topic/194703

相关:http://xkcd.com/979/

有没有人有别的办法 来检查古老的宝石的依附关系?

EDIT: 仍在寻找一种方法, 找到旧版宝石的 all 依赖关系 。

问题回答

使用RubyGems通过命令线并不方便, 但是您可以在 < a href=> http:// rubygems. org/\\" rel="nofollow">RubyGems. org 浏览宝石时找到这些信息 。

例如,主动支持3.1.0.beta1 引入了对多json的依赖。





相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

热门标签