linux_stat 0.7.0 → 0.9.0

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.
@@ -117,7 +117,7 @@ module LinuxStat
117
117
  val = IO.readlines('/proc/swaps').drop(1)
118
118
  return [[], []] if val.empty?
119
119
 
120
- val.map { |x|
120
+ val.map! { |x|
121
121
  x.strip.split.values_at(2, 3).map!(&:to_i)
122
122
  }.transpose
123
123
  end
@@ -1,3 +1,3 @@
1
1
  module LinuxStat
2
- VERSION ||= "0.7.0"
2
+ VERSION ||= "0.9.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linux_stat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sourav Goswami
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-16 00:00:00.000000000 Z
11
+ date: 2020-12-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Linux only, efficient linux system utilization reporting and system monitoring
14
14
  gem
@@ -20,6 +20,7 @@ extensions:
20
20
  - ext/fs_stat/extconf.rb
21
21
  - ext/sysconf/extconf.rb
22
22
  - ext/utsname/extconf.rb
23
+ - ext/nproc/extconf.rb
23
24
  extra_rdoc_files:
24
25
  - README.md
25
26
  files:
@@ -30,6 +31,8 @@ files:
30
31
  - exe/linuxstat.rb
31
32
  - ext/fs_stat/extconf.rb
32
33
  - ext/fs_stat/fs_stat.c
34
+ - ext/nproc/extconf.rb
35
+ - ext/nproc/nproc.c
33
36
  - ext/sysconf/extconf.rb
34
37
  - ext/sysconf/sysconf.c
35
38
  - ext/utsname/extconf.rb