scone 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -27
- data/Gemfile +1 -0
- data/Gemfile.lock +4 -1
- data/Rakefile +1 -1
- data/lib/scone/ubuntu/stat.rb +17 -17
- data/lib/scone/version.rb +1 -1
- data/scone.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d64f4f9ea56d29a7332f66027872d77346bbfdde74b2ee53127b202b7e76205
|
4
|
+
data.tar.gz: e2c4039fc5dc29bf34d6f54941a01d563e1e8a5b79a1bd5e5b74d005fe6d1682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96e3d1888d6f9c20aa5d1ab5d06736d6e9c113d20d45d0d36a24ef4c549a1a4705d0dddbb29b5b0101350bbcbc43dd3329a86c1f62e8f4a428ed844d4ed83496
|
7
|
+
data.tar.gz: 5d379fd75ce99aa29027b17137bda3df98ec3020c350d14e1f59ced7e5b88cce78a36ed8bc1bd73789b3c7c58dd279115a53c37ccdd80e1427bfdd6565973295
|
data/.rubocop.yml
CHANGED
@@ -1,30 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
TargetRubyVersion: 2.6
|
4
|
-
|
5
|
-
Style/StringLiterals:
|
6
|
-
Enabled: true
|
7
|
-
EnforcedStyle: double_quotes
|
8
|
-
|
9
|
-
Style/StringLiteralsInInterpolation:
|
10
|
-
Enabled: true
|
11
|
-
EnforcedStyle: double_quotes
|
12
|
-
|
13
|
-
Layout/LineLength:
|
14
|
-
Enabled: true
|
15
|
-
Max: 320
|
16
|
-
|
17
|
-
Metrics/BlockLength:
|
18
|
-
Enabled: true
|
19
|
-
Max: 50
|
20
|
-
|
21
|
-
Metrics/MethodLength:
|
22
|
-
Enabled: true
|
23
|
-
Max: 50
|
24
|
-
|
25
|
-
Metrics/AbcSize:
|
26
|
-
Enabled: true
|
27
|
-
Max: 50
|
1
|
+
inherit_gem:
|
2
|
+
rubocop-shopify: rubocop.yml
|
28
3
|
|
29
4
|
Style/SymbolProc:
|
30
5
|
Enabled: false
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
scone (0.1.
|
4
|
+
scone (0.1.8)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -39,6 +39,8 @@ GEM
|
|
39
39
|
unicode-display_width (>= 1.4.0, < 3.0)
|
40
40
|
rubocop-ast (1.12.0)
|
41
41
|
parser (>= 3.0.1.1)
|
42
|
+
rubocop-shopify (2.3.0)
|
43
|
+
rubocop (~> 1.22)
|
42
44
|
ruby-progressbar (1.11.0)
|
43
45
|
unicode-display_width (2.1.0)
|
44
46
|
|
@@ -49,6 +51,7 @@ DEPENDENCIES
|
|
49
51
|
rake (~> 13.0)
|
50
52
|
rspec (~> 3.0)
|
51
53
|
rubocop (~> 1.21)
|
54
|
+
rubocop-shopify (~> 2.3.0)
|
52
55
|
scone!
|
53
56
|
|
54
57
|
BUNDLED WITH
|
data/Rakefile
CHANGED
data/lib/scone/ubuntu/stat.rb
CHANGED
@@ -43,23 +43,23 @@ module Scone
|
|
43
43
|
next if info.empty?
|
44
44
|
|
45
45
|
hash[info.first.to_sym] = if info.first =~ /^cpu/i
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
46
|
+
{
|
47
|
+
user: info[1].to_i,
|
48
|
+
nice: info[2].to_i,
|
49
|
+
system: info[3].to_i,
|
50
|
+
idle: info[4].to_i,
|
51
|
+
iowait: info[5].to_i,
|
52
|
+
irq: info[6].to_i,
|
53
|
+
softirq: info[7].to_i,
|
54
|
+
steal: info[8].to_i,
|
55
|
+
guest: info[9].to_i,
|
56
|
+
guest_nice: info[10].to_i,
|
57
|
+
}
|
58
|
+
elsif info.size > 2
|
59
|
+
info[1..].map { |e| e.to_i }
|
60
|
+
else
|
61
|
+
info[1].to_i
|
62
|
+
end
|
63
63
|
end
|
64
64
|
hash
|
65
65
|
end
|
data/lib/scone/version.rb
CHANGED
data/scone.gemspec
CHANGED
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
|
|
37
37
|
# Specify which files should be added to the gem when it is released.
|
38
38
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
39
39
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
40
|
-
|
40
|
+
%x(git ls-files -z).split("\x0").reject do |f|
|
41
41
|
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
42
42
|
end
|
43
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- clivern
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Set of Modules to work with a different Linux Operating System Distributions
|
14
14
|
in Ruby.
|