最新的红宝石宝石在哪里:Ruby gems相当于search.cpan.org/recent

时间:2016-05-06 14:55:21

标签: ruby rubygems cpan

Perl有一个名为" http://search.cpan.org/recent" 人们可以看到CPAN中添加的最新模块。

红宝石程序员在哪里可以找到"什么是最新的宝石添加到红宝石宝石索引" ?

1 个答案:

答案 0 :(得分:5)

CPAN非常好。我能找到最好的RubyGems:

require 'open-uri'
require 'json'

JSON.load(open('https://rubygems.org/api/v1/activity/latest.json')).each { |g|
  printf("%s (%s)\n  %s\n", g['name'], g['version'], g['info']) 
}; nil

输出:

flagsToggle (0.1.0)
  flagsToggle provides a declarative, layered way of enabling and disabling application functionality at run-time
threadable_comments (0.1.0)
  Create comments along with their threads on any commentable object. Use Ancestry gem.
puree (0.6.0)
  Consumes the Pure Research Information System API and facilitates post-processing of metadata into simple data structures.
inputs (0.1.0)
  Stupid pointless gem for lazy Ruby developer to implement console interfaces for input fields like y/n questions, names, ...
...      

RubuGems API文档:
http://guides.rubygems.org/rubygems-org-api/