s44_myweatherforecast 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/s44_myweatherforecast.rb +3 -8
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a42efde87b7fd6371a103de1e8e3998ce8dc8df
|
4
|
+
data.tar.gz: 625fd52f6e855b06f6f508c8fac5d9dabb1adf67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4995c00dfedaa9f6c54731d66c5e113ddfb792f92f85f99826edd8030d2ca716988b2fe891744f216435a75c2b70970632407eaaf67641c85b9fe2328d7b62da
|
7
|
+
data.tar.gz: 0c8b55306d90ca3c76e677550ae984d30ad2a5d7f9ab4ecc474c24c45294fb7f93d999deb346191317d47e7f68e1f290519107a6482a68c2d2128f9ad0dd7dca
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -36,9 +36,7 @@ class S44_MyWeatherForecast
|
|
36
36
|
def tomorrow()
|
37
37
|
|
38
38
|
s = @w.tomorrow.to_s
|
39
|
-
min, max, desc = s.match(
|
40
|
-
.captures
|
41
|
-
|
39
|
+
min, max, desc = s.match(/\w+:\s+([^ ]+) ([^,]+),\s+(.*)\.$/).captures
|
42
40
|
outlook('tomorrow', min, max, desc: desc)
|
43
41
|
|
44
42
|
end
|
@@ -84,10 +82,7 @@ class S44_MyWeatherForecast
|
|
84
82
|
|
85
83
|
def outlook(t, min, max, desc: '')
|
86
84
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
s1 = "The weather #{t},"
|
91
|
-
[s1, desc.downcase, s3].join(' ') + '.'
|
85
|
+
"The weather #{t}, #{desc.downcase} with a minimum temperature of #{min} " +
|
86
|
+
"celcius and a maximum temperature of #{max} celcius."
|
92
87
|
end
|
93
88
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s44_myweatherforecast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
wNU0aSGt6u5Oh3cJFs6Zfm4W33vT5usVkr6pvh0cTHy+lAA7bmI4yItqT3Pr3TOD
|
32
32
|
YImZerPvCoY8xQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-04-
|
34
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
35
35
|
dependencies: []
|
36
36
|
description:
|
37
37
|
email: james@jamesrobertson.eu
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,4 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
9�ߕe���]P$,�;��'5D�ҽ�}g(:
|
2
|
+
c��m8�h��7�@G9��;Q;��d��������3�9��(]��7�yi��F�Fx8?r�q%�w�ǫ��4�A��_���+^JǩU]]SWpQT
|
3
|
+
��x~E��{�pz�yX
|
4
|
+
�E��9�^��oe=� �].�t���P*�֡$W�Y���6�~�w�2H�]+���|l��7������������"Ꭰ��K�B�)��!&�#+�]�+<
|