debsfromrepos 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,4 +1,8 @@
1
- = DebsFromRepos - Debian packages availables at a spcific repository
1
+ = DebsFromRepos
2
+
3
+ == Debian packages availables at a spcific repository
4
+
5
+ {<img src="https://secure.travis-ci.org/juanje/debsfromrepos.png" />}[http://travis-ci.org/juanje/debsfromrepos]
2
6
 
3
7
  == Description
4
8
 
@@ -26,16 +26,16 @@ module DebsFromRepos
26
26
  end
27
27
 
28
28
  def get_translations_url(lang=nil)
29
- @lang = lang ? lang : @lang
30
- unless @lang
29
+ lang = lang ? lang : @lang
30
+ unless lang
31
31
  $stderr.puts "ERROR: no language has been selected"
32
32
  return nil
33
33
  end
34
- unless @lang.match(/^[a-z][a-z]$/)
34
+ unless lang.match(/^[a-z][a-z]$/)
35
35
  $stderr.puts "ERROR: the language is wrong"
36
36
  return nil
37
37
  end
38
- "#{@url}/dists/#{@suite}/#{@component}/i18n/Translation-#{@lang}.gz"
38
+ "#{@url}/dists/#{@suite}/#{@component}/i18n/Translation-#{lang}.gz"
39
39
  end
40
40
  end
41
41
  end
@@ -1,3 +1,3 @@
1
1
  module DebsFromRepos
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debsfromrepos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,26 +9,55 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-07 00:00:00.000000000 Z
13
- dependencies: []
14
- description: ! "\n\n== Description\n\nThis is a small lib to get the names and descriptions
15
- for the availables\npackages at specific (or group of them) Debian/Ubuntu repository.\n\n==
16
- Usage\n\nYou have a example of how the library works at the <tt>examples/</tt> directory:\n\n
17
- \ examples/repo2json.rb\n\nBasicaly you require the lib\n\n require 'debsfromrepos'\n\nand
18
- ask for the right <tt>Packages.gz</tt> url for a specific Debian/Ubuntu server\n\n
19
- \ server = \"http://us.archive.ubuntu.com/ubuntu\"\n suite = \"oneiric\"\n component
20
- = \"main\"\n language = \"es\"\n repository = DebsFromRepos::ListUrl.new(server,
21
- suite, component, language)\n packages_url = repository.get_packages_url\n # =>
22
- \"http://us.archive.ubuntu.com/ubuntu/dists/oneiric/main/binary-i386/Packages.gz\"\n
23
- \ translations_url = repository.get_translations_url\n # => \"http://us.archive.ubuntu.com/ubuntu/dists/oneiric/main/i18n/Translation-es.gz\"\n\nyou
24
- also can change the <tt>suite</tt> or <tt>component</tt>\n\n repository.component
25
- = \"universe\"\n # => \"http://us.archive.ubuntu.com/ubuntu/dists/oneiric/universe/binary-i386/Packages.gz\"\n\nor
26
- ask for another <tt>language</tt>\n\n repository.get_translations_url(\"it\")\n
27
- \ # => \"http://us.archive.ubuntu.com/ubuntu/dists/oneiric/main/i18n/Translation-it.gz\"\n\n\nand
28
- then get all the packages' names and descriptions on that component of\nthat suite
29
- of that repository:\n\n pkgs = DebsFromRepos::Packages.new(packages_url, translations_url)\n
30
- \ pkgs.packages[\"zlib1g\"]\n # => \"Biblioteca de compresión, ejecutables\"\n
31
- \ "
12
+ date: 2012-02-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: &69085280 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *69085280
25
+ - !ruby/object:Gem::Dependency
26
+ name: rdoc
27
+ requirement: &69085060 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *69085060
36
+ - !ruby/object:Gem::Dependency
37
+ name: cucumber
38
+ requirement: &69084830 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *69084830
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: &69084590 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *69084590
58
+ description: ! "\nThis is a small lib to get the names and descriptions for the availables\npackages
59
+ at specific (or group of them) Debian/Ubuntu repository.\n\nThe description can
60
+ be obtained in a specific language.\n "
32
61
  email: jojeda@emergya.com
33
62
  executables: []
34
63
  extensions: []
@@ -68,10 +97,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
97
  version: '0'
69
98
  requirements: []
70
99
  rubyforge_project:
71
- rubygems_version: 1.8.14
100
+ rubygems_version: 1.8.15
72
101
  signing_key:
73
102
  specification_version: 3
74
103
  summary: Lib to get the names and descriptions for the availables packages at specific
75
104
  (or group of them) Debian/Ubuntu repository.
76
105
  test_files: []
77
- has_rdoc: true