weather_guy 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/temp +12 -0
- data/lib/weather_guy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f7f8df51997dfc03b986a735ef073fe2b3af812
|
4
|
+
data.tar.gz: 176da9bcf8adeee8753ae06c1cb0bb7e791e471e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a27281a897d1036beef8088b75194410a27c4fb08f6aa738bc7191bbfda2c305b60dde174b2dc3b2af2163ff06a65b1101ffde88aa296f241b8ed5a8e8276581
|
7
|
+
data.tar.gz: 1d0e645fff50598042ddc3cd9cc9ac9a9cfaed04b6d79c8866b498ccf61a05b6b1d908a9c1ed204c5c55d4441e27939a2759fff71ba8758d68a52e18ff09c6f5
|
data/bin/temp
CHANGED
@@ -3,5 +3,17 @@
|
|
3
3
|
temp = ARGV[0]
|
4
4
|
|
5
5
|
cels = (temp.to_i - 32) * 5 / 9
|
6
|
+
kelv = (temp.to_i + 459.67) * 5 / 9
|
6
7
|
|
7
8
|
puts "The temperature in Celsius is #{cels}."
|
9
|
+
puts "The temperature in Kelvin is #{kelv}."
|
10
|
+
|
11
|
+
if temp >= 65 and temp <= 100
|
12
|
+
puts "T-shirt weather!"
|
13
|
+
elsif temp < 65 and temp >= 35
|
14
|
+
puts "Throw on a sweatshirt before going out."
|
15
|
+
elsif temp < 35 and temp > 0
|
16
|
+
puts "Bundle up!"
|
17
|
+
else
|
18
|
+
puts "Don't go outside."
|
19
|
+
|
data/lib/weather_guy/version.rb
CHANGED