debsfromrepos 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +71 -0
  2. data/lib/debsfromrepos_version.rb +1 -1
  3. metadata +34 -23
  4. data/README.md +0 -33
data/README.rdoc ADDED
@@ -0,0 +1,71 @@
1
+ = DebsFromRepos - Debian packages availables at a spcific repository
2
+
3
+ == Description
4
+
5
+ This is a small lib to get the names and descriptions for the availables
6
+ packages at specific (or group of them) Debian/Ubuntu repository.
7
+
8
+ == Installation
9
+
10
+
11
+ (sudo) gem install debsfromrepos
12
+
13
+
14
+ == Usage
15
+
16
+ You have a example of how the library works at the <tt>examples/</tt> directory:
17
+
18
+ examples/repo2json.rb
19
+
20
+ Basicaly you require the lib
21
+
22
+ require 'debsfromrepos'
23
+
24
+ and ask for the right <tt>Packages.gz</tt> url for a specific Debian/Ubuntu server
25
+
26
+ server = "http://us.archive.ubuntu.com/ubuntu"
27
+ suite = "oneiric"
28
+ component = "main"
29
+ repository = DebsFromRepos::ListUrl.new(server, suite, component)
30
+ repository.get_url
31
+ # => "http://us.archive.ubuntu.com/ubuntu/dists/oneiric/main/binary-i386/Packages.gz"
32
+
33
+ you also can change the <tt>suite</tt> or <tt>component</tt>
34
+
35
+ repository.component = 'universe'
36
+ # => "http://us.archive.ubuntu.com/ubuntu/dists/oneiric/universe/binary-i386/Packages.gz"
37
+
38
+ and then get all the packages' names and descriptions on that component of
39
+ that suite of that repository:
40
+
41
+ pkgs = DebsFromRepos::Packages.new(repositories)
42
+ pkgs.packages['2ping']
43
+ # => "Ping utility to determine directional packet loss"
44
+
45
+ == Tests
46
+
47
+ The features are documented and tested using <tt>Cucumber</tt> and it can be
48
+ cheched at the <tt>features</tt> directory.
49
+
50
+ To test the features just type:
51
+
52
+ rake
53
+
54
+
55
+ == License and Author
56
+
57
+ Author:: Juanje Ojeda (<jojeda@emergya.com>)
58
+
59
+ Copyright 2011 Junta de Andalucía
60
+
61
+ Licensed under the Apache License, Version 2.0 (the "License");
62
+ you may not use this file except in compliance with the License.
63
+ You may obtain a copy of the License at
64
+
65
+ http://www.apache.org/licenses/LICENSE-2.0
66
+
67
+ Unless required by applicable law or agreed to in writing, software
68
+ distributed under the License is distributed on an "AS IS" BASIS,
69
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
70
+ See the License for the specific language governing permissions and
71
+ limitations under the License.
@@ -1,3 +1,3 @@
1
1
  module DebsFromRepos
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.2'
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.0
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-06 00:00:00.000000000 Z
12
+ date: 2012-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &83428980 !ruby/object:Gem::Requirement
16
+ requirement: &82973890 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *83428980
24
+ version_requirements: *82973890
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: cucumber
27
- requirement: &83428770 !ruby/object:Gem::Requirement
27
+ requirement: &82973680 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *83428770
35
+ version_requirements: *82973680
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: json
38
- requirement: &83428560 !ruby/object:Gem::Requirement
38
+ requirement: &82973470 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,23 +43,34 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *83428560
47
- description: ! "Description\n===========\n\nThis is a small lib to get the names and
48
- descriptions for the availables\npackages at specific (or group of them) Debian/Ubuntu
49
- repository.\n\n#WIP\n\nUsage\n=====\n\n#WIP\n\nLicense and Author\n==================\n\nAuthor::\n\n*
50
- Juanje Ojeda (<jojeda@emergya.com>)\n\nCopyright 2011 Junta de Andalucía\n\nLicensed
51
- under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file
52
- except in compliance with the License.\nYou may obtain a copy of the License at\n\n
53
- \ http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable
54
- law or agreed to in writing, software\ndistributed under the License is distributed
55
- on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
56
- or implied.\nSee the License for the specific language governing permissions and\nlimitations
57
- under the License.\n"
46
+ version_requirements: *82973470
47
+ - !ruby/object:Gem::Dependency
48
+ name: rdoc
49
+ requirement: &82973260 !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: *82973260
58
+ description: ! "\n\n== Description\n\nThis is a small lib to get the names and descriptions
59
+ for the availables\npackages at specific (or group of them) Debian/Ubuntu repository.\n\n==
60
+ Usage\n\nYou have a example of how the library works at the <tt>examples/</tt> directory:\n\n
61
+ \ examples/repo2json.rb\n\nBasicaly you require the lib\n\n require 'debsfromrepos'\n\nand
62
+ ask for the right <tt>Packages.gz</tt> url for a specific Debian/Ubuntu server\n\n
63
+ \ server = \"http://us.archive.ubuntu.com/ubuntu\"\n suite = \"oneiric\"\n component
64
+ = \"main\"\n repository = DebsFromRepos::ListUrl.new(server, suite, component)\n
65
+ \ repository.get_url\n # => \"http://us.archive.ubuntu.com/ubuntu/dists/oneiric/main/binary-i386/Packages.gz\"\n\nand
66
+ then get all the packages' names and descriptions on that component of\nthat suite
67
+ of that repository:\n\n pkgs = DebsFromRepos::Packages.new(repositories)\n pkgs.packages['2ping']\n
68
+ \ # => \"Ping utility to determine directional packet loss\"\n "
58
69
  email: jojeda@emergya.com
59
70
  executables: []
60
71
  extensions: []
61
72
  extra_rdoc_files:
62
- - README.md
73
+ - README.rdoc
63
74
  - LICENSE
64
75
  files:
65
76
  - lib/debsfromrepos.rb
@@ -67,7 +78,7 @@ files:
67
78
  - lib/debsfromrepos/list_url.rb
68
79
  - lib/debsfromrepos/packages.rb
69
80
  - examples/repo2json.rb
70
- - README.md
81
+ - README.rdoc
71
82
  - LICENSE
72
83
  homepage: https://github.com/gecos-team/debsfromrepos
73
84
  licenses: []
@@ -76,8 +87,8 @@ rdoc_options:
76
87
  - --title
77
88
  - debsfromrepos
78
89
  - --main
79
- - README.md
80
- - -ri
90
+ - README.rdoc
91
+ - --ri
81
92
  require_paths:
82
93
  - lib
83
94
  - lib
data/README.md DELETED
@@ -1,33 +0,0 @@
1
- Description
2
- ===========
3
-
4
- This is a small lib to get the names and descriptions for the availables
5
- packages at specific (or group of them) Debian/Ubuntu repository.
6
-
7
- #WIP
8
-
9
- Usage
10
- =====
11
-
12
- #WIP
13
-
14
- License and Author
15
- ==================
16
-
17
- Author::
18
-
19
- * Juanje Ojeda (<jojeda@emergya.com>)
20
-
21
- Copyright 2011 Junta de Andalucía
22
-
23
- Licensed under the Apache License, Version 2.0 (the "License");
24
- you may not use this file except in compliance with the License.
25
- You may obtain a copy of the License at
26
-
27
- http://www.apache.org/licenses/LICENSE-2.0
28
-
29
- Unless required by applicable law or agreed to in writing, software
30
- distributed under the License is distributed on an "AS IS" BASIS,
31
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32
- See the License for the specific language governing permissions and
33
- limitations under the License.