vmstat 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Guardfile +8 -0
- data/README.md +12 -2
- data/ext/vmstat/extconf.rb +57 -0
- data/ext/vmstat/hw/bsd.h +88 -0
- data/ext/vmstat/hw/mach.h +107 -0
- data/ext/vmstat/hw/posix.h +29 -0
- data/ext/vmstat/hw/statfs.h +41 -0
- data/ext/vmstat/hw/sysctl.h +72 -0
- data/ext/vmstat/vmstat.c +40 -260
- data/ext/vmstat/vmstat.h +6 -4
- data/lib/vmstat.rb +35 -35
- data/lib/vmstat/linux_disk.rb +33 -0
- data/lib/vmstat/procfs.rb +126 -0
- data/lib/vmstat/snapshot.rb +1 -1
- data/lib/vmstat/stub.rb +69 -0
- data/lib/vmstat/version.rb +1 -1
- data/spec/procfs/loadavg +1 -0
- data/spec/procfs/meminfo +46 -0
- data/spec/procfs/net/dev +5 -0
- data/spec/procfs/stat +12 -0
- data/spec/procfs/uptime +1 -0
- data/spec/procfs/vmstat +89 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/vmstat/procfs_spec.rb +62 -0
- data/vmstat.gemspec +2 -0
- metadata +59 -4
data/vmstat.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmstat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -43,6 +43,38 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: guard-rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: timecop
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
46
78
|
description: ! "\n A focused and fast library t gather memory, \n cpu, network,
|
47
79
|
load avg and disk information\n "
|
48
80
|
email:
|
@@ -56,27 +88,43 @@ files:
|
|
56
88
|
- .rspec
|
57
89
|
- .rvmrc
|
58
90
|
- Gemfile
|
91
|
+
- Guardfile
|
59
92
|
- LICENSE.txt
|
60
93
|
- README.md
|
61
94
|
- Rakefile
|
62
95
|
- ext/vmstat/extconf.rb
|
96
|
+
- ext/vmstat/hw/bsd.h
|
97
|
+
- ext/vmstat/hw/mach.h
|
98
|
+
- ext/vmstat/hw/posix.h
|
99
|
+
- ext/vmstat/hw/statfs.h
|
100
|
+
- ext/vmstat/hw/sysctl.h
|
63
101
|
- ext/vmstat/vmstat.c
|
64
102
|
- ext/vmstat/vmstat.h
|
65
103
|
- lib/vmstat.rb
|
66
104
|
- lib/vmstat/cpu.rb
|
67
105
|
- lib/vmstat/disk.rb
|
106
|
+
- lib/vmstat/linux_disk.rb
|
68
107
|
- lib/vmstat/load_average.rb
|
69
108
|
- lib/vmstat/memory.rb
|
70
109
|
- lib/vmstat/network_interface.rb
|
110
|
+
- lib/vmstat/procfs.rb
|
71
111
|
- lib/vmstat/snapshot.rb
|
112
|
+
- lib/vmstat/stub.rb
|
72
113
|
- lib/vmstat/task.rb
|
73
114
|
- lib/vmstat/version.rb
|
115
|
+
- spec/procfs/loadavg
|
116
|
+
- spec/procfs/meminfo
|
117
|
+
- spec/procfs/net/dev
|
118
|
+
- spec/procfs/stat
|
119
|
+
- spec/procfs/uptime
|
120
|
+
- spec/procfs/vmstat
|
74
121
|
- spec/spec_helper.rb
|
75
122
|
- spec/vmstat/cpu_spec.rb
|
76
123
|
- spec/vmstat/disk_spec.rb
|
77
124
|
- spec/vmstat/load_average_spec.rb
|
78
125
|
- spec/vmstat/memory_spec.rb
|
79
126
|
- spec/vmstat/network_spec.rb
|
127
|
+
- spec/vmstat/procfs_spec.rb
|
80
128
|
- spec/vmstat/snapshot_spec.rb
|
81
129
|
- spec/vmstat/task_spec.rb
|
82
130
|
- spec/vmstat_spec.rb
|
@@ -95,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
95
143
|
version: '0'
|
96
144
|
segments:
|
97
145
|
- 0
|
98
|
-
hash: -
|
146
|
+
hash: -3233054199977223520
|
99
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
148
|
none: false
|
101
149
|
requirements:
|
@@ -104,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
152
|
version: '0'
|
105
153
|
segments:
|
106
154
|
- 0
|
107
|
-
hash: -
|
155
|
+
hash: -3233054199977223520
|
108
156
|
requirements: []
|
109
157
|
rubyforge_project:
|
110
158
|
rubygems_version: 1.8.24
|
@@ -112,12 +160,19 @@ signing_key:
|
|
112
160
|
specification_version: 3
|
113
161
|
summary: A focused and fast library t gather system information
|
114
162
|
test_files:
|
163
|
+
- spec/procfs/loadavg
|
164
|
+
- spec/procfs/meminfo
|
165
|
+
- spec/procfs/net/dev
|
166
|
+
- spec/procfs/stat
|
167
|
+
- spec/procfs/uptime
|
168
|
+
- spec/procfs/vmstat
|
115
169
|
- spec/spec_helper.rb
|
116
170
|
- spec/vmstat/cpu_spec.rb
|
117
171
|
- spec/vmstat/disk_spec.rb
|
118
172
|
- spec/vmstat/load_average_spec.rb
|
119
173
|
- spec/vmstat/memory_spec.rb
|
120
174
|
- spec/vmstat/network_spec.rb
|
175
|
+
- spec/vmstat/procfs_spec.rb
|
121
176
|
- spec/vmstat/snapshot_spec.rb
|
122
177
|
- spec/vmstat/task_spec.rb
|
123
178
|
- spec/vmstat_spec.rb
|