solaris-kstat 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/ext/solaris/rkstat.c +2 -1
- data/ext/solaris/rkstat.h +1 -1
- data/solaris-kstat.gemspec +3 -1
- data/test/test_solaris_kstat.rb +1 -1
- metadata +19 -6
data/CHANGES
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 1.0.3 - 30-Jul-2011
|
2
|
+
* Added test-unit as a development dependency.
|
3
|
+
* Fixed a switch statement bug (missing break).
|
4
|
+
|
1
5
|
== 1.0.2 - 29-Jul-2011
|
2
6
|
* Fixed a bug where the name hash keys could potentially be overwritten if there
|
3
7
|
were multiple statistics for the same name. Thanks go to Jens Deppe for the
|
data/ext/solaris/rkstat.c
CHANGED
@@ -173,6 +173,7 @@ VALUE ks_record(VALUE self){
|
|
173
173
|
case KSTAT_TYPE_TIMER:
|
174
174
|
kstat_read(ptr->kc, ptr->ksp, &kt);
|
175
175
|
v_s_hash = map_timer_data_type(&kt);
|
176
|
+
break;
|
176
177
|
case KSTAT_TYPE_INTR:
|
177
178
|
kstat_read(ptr->kc, ptr->ksp, NULL);
|
178
179
|
v_s_hash = map_intr_data_type(ptr->ksp);
|
@@ -230,7 +231,7 @@ void Init_kstat(){
|
|
230
231
|
// Unique name within module
|
231
232
|
rb_define_attr(cKstat, "name", 1, 1);
|
232
233
|
|
233
|
-
/* 1.0.
|
234
|
+
/* 1.0.3: The version of the solaris-kstat library */
|
234
235
|
rb_define_const(cKstat, "VERSION", rb_str_new2(SOLARIS_KSTAT_VERSION));
|
235
236
|
}
|
236
237
|
|
data/ext/solaris/rkstat.h
CHANGED
data/solaris-kstat.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'solaris-kstat'
|
5
|
-
spec.version = '1.0.
|
5
|
+
spec.version = '1.0.3'
|
6
6
|
spec.author = 'Daniel J. Berger'
|
7
7
|
spec.license = 'Artistic 2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
@@ -14,6 +14,8 @@ Gem::Specification.new do |spec|
|
|
14
14
|
|
15
15
|
spec.rubyforge_project = 'solarisutils'
|
16
16
|
|
17
|
+
spec.add_development_dependency('test-unit')
|
18
|
+
|
17
19
|
spec.extra_rdoc_files = [
|
18
20
|
'README',
|
19
21
|
'CHANGES',
|
data/test/test_solaris_kstat.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solaris-kstat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel J. Berger
|
@@ -15,9 +15,22 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-07-
|
19
|
-
dependencies:
|
20
|
-
|
18
|
+
date: 2011-07-30 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: test-unit
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
32
|
+
type: :development
|
33
|
+
version_requirements: *id001
|
21
34
|
description: " The solaris-kstat library provides a Ruby interface for gathering kernel\n statistics from the Solaris operating system. Each matching statistic is\n provided with its module, instance, and name fields, as well as its actual\n value.\n"
|
22
35
|
email: djberg96@gmail.com
|
23
36
|
executables: []
|