iStats 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -17
- data/iStats.gemspec +1 -1
- data/lib/iStats/cpu.rb +3 -0
- data/lib/iStats/printer.rb +4 -0
- data/lib/iStats/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 370faef2b8def5fe5edc406e9cb06fceda8e01e9
|
4
|
+
data.tar.gz: 32d283d852ca792f83bc8b5d79d49682b55a217a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e23063d30b1416766478bf709d12784189dceb495771892cf0821d7a7b9e48f9d3496d7841befec45c96b29927f293e059071c1db9d5e94ea0007bc499c3f7d2
|
7
|
+
data.tar.gz: f7e0f44f1c0cba7d0f67d03b87d380618e7ea297e55ceb1eaa67d92af837ae56a3daec342961ee97b3b6e6d3d1596d5593246439a9b4ad6ea779d271ba739c60
|
data/README.md
CHANGED
@@ -59,10 +59,10 @@ If you are running an older version of OS X and the install fails you might want
|
|
59
59
|
|
60
60
|
## Advanced usage
|
61
61
|
|
62
|
-
iStats now supports extra sensors for advanced users. Here's how to enable that functionality:
|
62
|
+
iStats now supports extra sensors for advanced users. Here's how to enable that functionality:
|
63
63
|
|
64
64
|
1. Run `istats scan` to scan your computer for SMC sensors
|
65
|
-
2. Enable extra sensors by running `istats enable key` or `istats enable all`
|
65
|
+
2. Enable extra sensors by running `istats enable key` or `istats enable all`
|
66
66
|
3. Run `istats` or `istats extra` to see the extra sensors information.
|
67
67
|
|
68
68
|
## Contributing
|
@@ -75,21 +75,31 @@ iStats now supports extra sensors for advanced users. Here's how to enable that
|
|
75
75
|
|
76
76
|
#### Tested on
|
77
77
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
MacBook Pro
|
83
|
-
|
84
|
-
Ruby:
|
85
|
-
|
86
|
-
MacBook Pro
|
87
|
-
OS X: 10.
|
88
|
-
Ruby: 2.
|
89
|
-
|
90
|
-
|
91
|
-
OS X: 10.
|
92
|
-
Ruby: 2.0.0
|
78
|
+
<details>
|
79
|
+
<summary>Click to expand</summary>
|
80
|
+
<p>
|
81
|
+
<br>
|
82
|
+
MacBook Pro 2016
|
83
|
+
macOS: 10.12.6
|
84
|
+
Ruby: 2.4.1
|
85
|
+
<br>
|
86
|
+
MacBook Pro 2011
|
87
|
+
OS X: 10.11.6
|
88
|
+
Ruby: 2.0.0
|
89
|
+
<br>
|
90
|
+
MacBook Pro 2012
|
91
|
+
OS X: 10.9.3
|
92
|
+
Ruby: 1.9.3, 2.0.0, 2.1.1
|
93
|
+
<br>
|
94
|
+
MacBook Pro 2014
|
95
|
+
OS X: 10.10.3, 10.10.4
|
96
|
+
Ruby: 2.1.3
|
97
|
+
<br>
|
98
|
+
Mac Pro 2013
|
99
|
+
OS X: 10.12.6
|
100
|
+
Ruby: 2.0.0
|
101
|
+
</p>
|
102
|
+
</details>
|
93
103
|
|
94
104
|
#### Zabbix Integration
|
95
105
|
|
data/iStats.gemspec
CHANGED
@@ -10,7 +10,7 @@ spec = Gem::Specification.new do |s|
|
|
10
10
|
s.version = IStats::VERSION
|
11
11
|
s.authors = ["Chris911"]
|
12
12
|
s.email = ["christophe.naud.dulude@gmail.com"]
|
13
|
-
s.description = %q{iStats is a command-line tool that allows you to easily grab the CPU temperature, fan speeds and battery information on
|
13
|
+
s.description = %q{iStats is a command-line tool that allows you to easily grab the CPU temperature, fan speeds and battery information on macOS.}
|
14
14
|
s.summary = "Stats for your mac"
|
15
15
|
s.homepage = "https://github.com/Chris911/iStats"
|
16
16
|
s.license = "MIT"
|
data/lib/iStats/cpu.rb
CHANGED
@@ -31,6 +31,9 @@ module IStats
|
|
31
31
|
t = get_cpu_temp
|
32
32
|
thresholds = [50, 68, 80, 90]
|
33
33
|
value, scale = Printer.parse_temperature(t)
|
34
|
+
if Printer.get_temperature_scale == 'fahrenheit'
|
35
|
+
thresholds.map! { |t| Utils.to_fahrenheit(t) }
|
36
|
+
end
|
34
37
|
Printer.print_item_line("CPU temp", value, scale, thresholds)
|
35
38
|
end
|
36
39
|
end
|
data/lib/iStats/printer.rb
CHANGED
data/lib/iStats/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iStats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris911
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sparkr
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.8'
|
83
83
|
description: iStats is a command-line tool that allows you to easily grab the CPU
|
84
|
-
temperature, fan speeds and battery information on
|
84
|
+
temperature, fan speeds and battery information on macOS.
|
85
85
|
email:
|
86
86
|
- christophe.naud.dulude@gmail.com
|
87
87
|
executables:
|