RubyGems
npm
Organizations
Log in
Sign up
RubyGems
gibil
Versions diffs
0.0.2 → 0.1.0
gibil 0.0.2 → 0.1.0
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/gibil.rb
+1
-1
metadata
+1
-1
data/lib/gibil.rb
CHANGED
@@ -8,7 +8,7 @@ module Gibil
8
8
# == Returns:
9
9
# A float value of the system's temperature
10
10
def self.temperature
11
-
`cat
/sys/class/hwmon/hwmon0/temp1_input
`.
to_f / 1000
11
+
File.read('
/sys/class/hwmon/hwmon0/temp1_input
').
to_f / 1000
12
12
end
13
13
end
14
14
metadata
CHANGED
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: gibil
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.0
.2
4
+
version: 0.
1.
0
5
5
prerelease:
6
6
platform: ruby
7
7
authors: