weather_guy 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/temp +3 -3
- 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: 891fea5f3ab755cd54a48cbab0ff8d24c8b84970
|
4
|
+
data.tar.gz: 7d4b6eea3ad374294b00ae27ece1321267a28bd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aafeb12da294527b4dcbd095e2d5f0c4b8ce2e8e27b8643722bf22bdf0f91a345d60b0781808f8bebb170cf7f4bf477f33b478846edc8575ef3351c6a8277ef
|
7
|
+
data.tar.gz: e6fb04da1870d73a6e18fe4536cabfdd94f67ea9c8b0990e6dddd8f71264219e70e1d88b801de5affe12d9380739eaa12cb1bb7d3add4eb16c739440c1c88403
|
data/bin/temp
CHANGED
@@ -8,11 +8,11 @@ kelv = (temp.to_i + 459.67) * 5 / 9
|
|
8
8
|
puts "The temperature in Celsius is #{cels}."
|
9
9
|
puts "The temperature in Kelvin is #{kelv}."
|
10
10
|
|
11
|
-
if temp >= 65 and temp <= 100
|
11
|
+
if temp.to_i >= 65 and temp.to_i <= 100
|
12
12
|
puts "T-shirt weather!"
|
13
|
-
elsif temp < 65 and temp >= 35
|
13
|
+
elsif temp.to_i < 65 and temp.to_i >= 35
|
14
14
|
puts "Throw on a sweatshirt before going out."
|
15
|
-
elsif temp < 35 and temp > 0
|
15
|
+
elsif temp.to_i < 35 and temp.to_i > 0
|
16
16
|
puts "Bundle up!"
|
17
17
|
else
|
18
18
|
puts "Don't go outside."
|
data/lib/weather_guy/version.rb
CHANGED