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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f68d9e125f87b545848c4f5b397c396636246ca
4
- data.tar.gz: 5b224687a063e7dbc08fb7ab40b2a8b540ab8ce1
3
+ metadata.gz: 370faef2b8def5fe5edc406e9cb06fceda8e01e9
4
+ data.tar.gz: 32d283d852ca792f83bc8b5d79d49682b55a217a
5
5
  SHA512:
6
- metadata.gz: 3cedfef4fe36306a824d385bce478a873e26cca1a5bfbc0d5b2262c9978a555ada8ce69b7a6941c68a5d8f6cb9196b908e1c015848bb36ce1966b3491c556599
7
- data.tar.gz: a4ca2e631f26619a1431d6f14fb8637fb5ced576d7f970d6c2586218bf1be3d96c85c28489b8030589fca6646accfdf6b2327f40fd1ade00e642006435ec9479
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
- MacBook Pro 2011
79
- OS X: 10.11.6
80
- Ruby: 2.0.0
81
-
82
- MacBook Pro 2012
83
- OS X: 10.9.3
84
- Ruby: 1.9.3, 2.0.0, 2.1.1
85
-
86
- MacBook Pro 2014
87
- OS X: 10.10.3, 10.10.4
88
- Ruby: 2.1.3
89
-
90
- Mac Pro 2013
91
- OS X: 10.12.6
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
 
@@ -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 OS X.}
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"
@@ -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
@@ -24,6 +24,10 @@ module IStats
24
24
  @display_scale = false
25
25
  end
26
26
 
27
+ def get_temperature_scale
28
+ @temperature_scale
29
+ end
30
+
27
31
  def set_temperature_scale(scale)
28
32
  @temperature_scale = scale
29
33
  end
@@ -1,3 +1,3 @@
1
1
  module IStats
2
- VERSION = '1.5.0'
2
+ VERSION = '1.5.1'
3
3
  end
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.0
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-08-31 00:00:00.000000000 Z
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 OS X.
84
+ temperature, fan speeds and battery information on macOS.
85
85
  email:
86
86
  - christophe.naud.dulude@gmail.com
87
87
  executables: