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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13a944eb96de16c0a854f02db6bf2bf168cc250eddd8c63bc51ed351b56a17e4
4
- data.tar.gz: 742b0229c57d877249f0c3f996bea565c57d419d332b0c57e5fd7fd0ec833cde
3
+ metadata.gz: 1d64f4f9ea56d29a7332f66027872d77346bbfdde74b2ee53127b202b7e76205
4
+ data.tar.gz: e2c4039fc5dc29bf34d6f54941a01d563e1e8a5b79a1bd5e5b74d005fe6d1682
5
5
  SHA512:
6
- metadata.gz: 7fd7fcc1a6606fe266c6a1f225ac3d557e5186e0a77584d9f14b32b260927c2750e3aceb8c5601f6fe83eb41132c00fb45174cfa1c4496f3f14c3e30f79c9c6e
7
- data.tar.gz: e3aeb2de01bb6c1bc1b15efed951ea3ba1b7a0306cf545bf6d89a04519b1835880087dc448a60d59e9c1f49e67323430127bd97cd42b0a6a59f8a207b762ac08
6
+ metadata.gz: 96e3d1888d6f9c20aa5d1ab5d06736d6e9c113d20d45d0d36a24ef4c549a1a4705d0dddbb29b5b0101350bbcbc43dd3329a86c1f62e8f4a428ed844d4ed83496
7
+ data.tar.gz: 5d379fd75ce99aa29027b17137bda3df98ec3020c350d14e1f59ced7e5b88cce78a36ed8bc1bd73789b3c7c58dd279115a53c37ccdd80e1427bfdd6565973295
data/.rubocop.yml CHANGED
@@ -1,30 +1,5 @@
1
- AllCops:
2
- NewCops: enable
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
@@ -8,3 +8,4 @@ gemspec
8
8
  gem "rake", "~> 13.0"
9
9
  gem "rspec", "~> 3.0"
10
10
  gem "rubocop", "~> 1.21"
11
+ gem "rubocop-shopify", "~> 2.3.0"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- scone (0.1.0)
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
@@ -9,4 +9,4 @@ require "rubocop/rake_task"
9
9
 
10
10
  RuboCop::RakeTask.new
11
11
 
12
- task default: %i[spec rubocop]
12
+ task default: [:spec, :rubocop]
@@ -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
- 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
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
@@ -18,5 +18,5 @@
18
18
 
19
19
  # Scone Module
20
20
  module Scone
21
- VERSION = "0.1.7"
21
+ VERSION = "0.1.8"
22
22
  end
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
- `git ls-files -z`.split("\x0").reject do |f|
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.7
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-24 00:00:00.000000000 Z
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.