RubyGems Navigation menu

debsfromrepos 0.1.2

Description

This is a small lib to get the names and descriptions for the availables packages at specific (or group of them) Debian/Ubuntu repository.

Usage

You have a example of how the library works at the examples/ directory:

examples/repo2json.rb

Basicaly you require the lib

require 'debsfromrepos'

and ask for the right Packages.gz url for a specific Debian/Ubuntu server

server = "http://us.archive.ubuntu.com/ubuntu"
suite = "oneiric"
component = "main"
repository = DebsFromRepos::ListUrl.new(server, suite, component)
repository.get_url
# => "http://us.archive.ubuntu.com/ubuntu/dists/oneiric/main/binary-i386/Packages.gz"

and then get all the packages’ names and descriptions on that component of that suite of that repository:

pkgs = DebsFromRepos::Packages.new(repositories)
pkgs.packages['2ping']
# => "Ping utility to determine directional packet loss"

Gemfile:
=

安装:
=

版本列表:

  1. 0.1.4 February 21, 2012 (9.0 KB)
  2. 0.1.3 January 07, 2012 (9.5 KB)
  3. 0.1.2 January 07, 2012 (9.5 KB)
  4. 0.1.0 January 06, 2012 (9.0 KB)
显示所有版本 (共 5 个)

Development 依赖 (4):

cucumber >= 0
json >= 0
rake >= 0
rdoc >= 0

所有者:

作者:

  • Juanje Ojeda

SHA 256 校验和:

=

下载总量 15,971

这个版本 3,741

版本发布:

许可:

需要的 Ruby 版本:

链接: