linux-kstat 0.1.1-universal-linux → 0.1.2-universal-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGES +3 -0
- data/README +1 -1
- data/Rakefile +7 -2
- data/lib/linux/kstat.rb +1 -1
- data/linux-kstat.gemspec +4 -5
- data/test/test_linux_kstat.rb +7 -5
- metadata +42 -62
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b7152bf2ad1918fbb6c0a2d777d978ae958ef5e5
|
4
|
+
data.tar.gz: 67b2b4a27a5973cbb1c091a8e01129f3ac4f477a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9d94b4d69430e3514656ea72a01501b1ef690cfcd32f55cb1a4fa495c70b94946b8b37a74ff16ed14e057592d0319657720e1fe0d82046ab95ffe04494e7f5ab
|
7
|
+
data.tar.gz: 3ec88008079bb815c4964ef695f7d194842950df5f770699da0b2a266d263f63e4badf7cadf280ce35301fd2c1ad48b1f86df3a63665b8ce4dccc3d13371f23f
|
data/CHANGES
CHANGED
data/README
CHANGED
data/Rakefile
CHANGED
@@ -8,13 +8,18 @@ namespace :gem do
|
|
8
8
|
desc 'Build the linux-kstat gem'
|
9
9
|
task :create => [:clean] do
|
10
10
|
spec = eval(IO.read('linux-kstat.gemspec'))
|
11
|
-
Gem::
|
11
|
+
if Gem::VERSION < "2.0"
|
12
|
+
Gem::Builder.new(spec).build
|
13
|
+
else
|
14
|
+
require 'rubygems/package'
|
15
|
+
Gem::Package.build(spec)
|
16
|
+
end
|
12
17
|
end
|
13
18
|
|
14
19
|
desc "Install the linux-kstat gem"
|
15
20
|
task :install => [:create] do
|
16
21
|
file = Dir["*.gem"].first
|
17
|
-
sh "gem install #{file}"
|
22
|
+
sh "gem install -l #{file}"
|
18
23
|
end
|
19
24
|
end
|
20
25
|
|
data/lib/linux/kstat.rb
CHANGED
data/linux-kstat.gemspec
CHANGED
@@ -3,23 +3,22 @@ require 'rbconfig'
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = 'linux-kstat'
|
6
|
-
gem.version = '0.1.
|
6
|
+
gem.version = '0.1.2'
|
7
7
|
gem.license = 'Artistic 2.0'
|
8
8
|
gem.author = 'Daniel J. Berger'
|
9
9
|
gem.email = 'djberg96@gmail.com'
|
10
10
|
gem.platform = Gem::Platform.new('universal-linux')
|
11
|
-
gem.homepage = '
|
11
|
+
gem.homepage = 'https://github.com/djberg96/linux-kstat'
|
12
12
|
gem.summary = 'Ruby interface for Linux kernel stats in /proc/stat'
|
13
13
|
gem.test_files = Dir['test/test*']
|
14
14
|
gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
15
15
|
|
16
|
-
gem.rubyforge_project = 'shards'
|
17
16
|
gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
|
18
17
|
|
18
|
+
gem.add_development_dependency('test-unit', '>= 2.5.0')
|
19
|
+
|
19
20
|
gem.description = <<-EOF
|
20
21
|
The linux-kstat library provides a hash style interface for reading
|
21
22
|
Linux kernel statistics read out of /proc/stat.
|
22
23
|
EOF
|
23
|
-
|
24
|
-
gem.add_development_dependency('test-unit', '>= 2.1.2')
|
25
24
|
end
|
data/test/test_linux_kstat.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
#######################################################################
|
2
|
+
# test_linux_kstat.rb
|
3
|
+
#
|
4
|
+
# Test suite for the linux-kstat library.
|
5
|
+
#######################################################################
|
6
|
+
require 'test-unit'
|
5
7
|
require 'linux/kstat'
|
6
8
|
|
7
9
|
class TC_Linux_Kstat < Test::Unit::TestCase
|
@@ -10,7 +12,7 @@ class TC_Linux_Kstat < Test::Unit::TestCase
|
|
10
12
|
end
|
11
13
|
|
12
14
|
test "version constant is set to the expected value" do
|
13
|
-
assert_equal('0.1.
|
15
|
+
assert_equal('0.1.2', Linux::Kstat::VERSION)
|
14
16
|
end
|
15
17
|
|
16
18
|
test "kstat object can be accessed like a hash" do
|
metadata
CHANGED
@@ -1,90 +1,70 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: linux-kstat
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 1
|
10
|
-
version: 0.1.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
11
5
|
platform: universal-linux
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Daniel J. Berger
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-11-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: test-unit
|
23
|
-
|
24
|
-
|
25
|
-
none: false
|
26
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
27
17
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 2
|
32
|
-
- 1
|
33
|
-
- 2
|
34
|
-
version: 2.1.2
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.5.0
|
35
20
|
type: :development
|
36
|
-
|
37
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.5.0
|
27
|
+
description: |2
|
28
|
+
The linux-kstat library provides a hash style interface for reading
|
29
|
+
Linux kernel statistics read out of /proc/stat.
|
38
30
|
email: djberg96@gmail.com
|
39
31
|
executables: []
|
40
|
-
|
41
32
|
extensions: []
|
42
|
-
|
43
|
-
extra_rdoc_files:
|
33
|
+
extra_rdoc_files:
|
44
34
|
- README
|
45
35
|
- CHANGES
|
46
36
|
- MANIFEST
|
47
|
-
files:
|
48
|
-
- Rakefile
|
49
|
-
- README
|
50
|
-
- lib/linux/kstat.rb
|
37
|
+
files:
|
51
38
|
- CHANGES
|
52
|
-
- test/test_linux_kstat.rb
|
53
39
|
- MANIFEST
|
40
|
+
- README
|
41
|
+
- Rakefile
|
42
|
+
- lib/linux/kstat.rb
|
54
43
|
- linux-kstat.gemspec
|
55
|
-
|
56
|
-
homepage:
|
57
|
-
licenses:
|
44
|
+
- test/test_linux_kstat.rb
|
45
|
+
homepage: https://github.com/djberg96/linux-kstat
|
46
|
+
licenses:
|
58
47
|
- Artistic 2.0
|
48
|
+
metadata: {}
|
59
49
|
post_install_message:
|
60
50
|
rdoc_options: []
|
61
|
-
|
62
|
-
require_paths:
|
51
|
+
require_paths:
|
63
52
|
- lib
|
64
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
-
|
66
|
-
requirements:
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
67
55
|
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
version: "0"
|
73
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
|
-
requirements:
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
76
60
|
- - ">="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
|
79
|
-
segments:
|
80
|
-
- 0
|
81
|
-
version: "0"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
82
63
|
requirements: []
|
83
|
-
|
84
|
-
|
85
|
-
rubygems_version: 1.6.2
|
64
|
+
rubyforge_project:
|
65
|
+
rubygems_version: 2.4.2
|
86
66
|
signing_key:
|
87
|
-
specification_version:
|
67
|
+
specification_version: 4
|
88
68
|
summary: Ruby interface for Linux kernel stats in /proc/stat
|
89
|
-
test_files:
|
69
|
+
test_files:
|
90
70
|
- test/test_linux_kstat.rb
|