apt-pkg 0.0.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,4 +3,4 @@ require 'minitest/autorun'
3
3
  require 'minitest/pride'
4
4
  require 'pp'
5
5
 
6
- require_relative '../lib/apt_pkg'
6
+ require_relative '../lib/debian/apt_pkg'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apt-pkg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Arnoud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-19 00:00:00.000000000 Z
11
+ date: 2020-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '10'
19
+ version: '13.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '10'
26
+ version: '13.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake-compiler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: '1.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.9'
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5'
47
+ version: '5.13'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '5'
54
+ version: '5.13'
55
55
  description: Ruby interface to apt-pkg
56
56
  email: laurent@spkdev.net
57
57
  executables: []
@@ -75,9 +75,14 @@ files:
75
75
  - ext/apt_pkg/extconf.rb
76
76
  - ext/apt_pkg/pkgcache.cpp
77
77
  - ext/apt_pkg/pkgcache.h
78
- - test/apt_pkg_cache_test.rb
78
+ - lib/debian/apt_pkg.rb
79
+ - lib/debian/apt_pkg/gem_version.rb
80
+ - lib/debian/apt_pkg/package.rb
81
+ - test/apt_pkg_cache_not_init_integration.rb
79
82
  - test/apt_pkg_configuration_test.rb
80
83
  - test/apt_pkg_test.rb
84
+ - test/debian/apt_pkg/package_test.rb
85
+ - test/debian/apt_pkg/pkg_cache_test.rb
81
86
  - test/test_helper.rb
82
87
  homepage: http://github.com/spk/ruby-apt-pkg
83
88
  licenses:
@@ -99,10 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
104
  - !ruby/object:Gem::Version
100
105
  version: '0'
101
106
  requirements: []
102
- rubyforge_project:
103
- rubygems_version: 2.4.5.1
107
+ rubygems_version: 3.1.2
104
108
  signing_key:
105
109
  specification_version: 4
106
110
  summary: Ruby interface to libapt-pkg
107
111
  test_files: []
108
- has_rdoc:
@@ -1,40 +0,0 @@
1
- require_relative 'test_helper'
2
-
3
- describe Debian::AptPkg::PkgCache do
4
- describe '.gen_caches' do
5
- it 'return boolean' do
6
- if Process.uid == 0
7
- Debian::AptPkg::PkgCache.gen_caches.must_equal true
8
- else
9
- Debian::AptPkg::PkgCache.gen_caches.must_equal false
10
- end
11
- end
12
- end
13
-
14
- describe '.pkg_names' do
15
- it 'argument' do
16
- lambda {
17
- Debian::AptPkg::PkgCache.pkg_names
18
- }.must_raise ArgumentError
19
-
20
- lambda {
21
- Debian::AptPkg::PkgCache.pkg_names(nil)
22
- }.must_raise ArgumentError
23
-
24
- lambda {
25
- Debian::AptPkg::PkgCache.pkg_names("")
26
- }.must_raise ArgumentError
27
- end
28
-
29
- it 'be filtered' do
30
- search = Debian::AptPkg::PkgCache.pkg_names("vim")
31
- # CI specific cache can not be present
32
- unless search.nil? || search.empty?
33
- search.must_include "vim"
34
- search.must_include "vim-nox"
35
- search.must_include "vim-gtk"
36
- search.wont_include "emacs"
37
- end
38
- end
39
- end
40
- end