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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddc735bceb076b06fc4fea68ebb8095527bfed77
4
- data.tar.gz: 5083da6a250ce349c30b1b78a2374c5e491e1839
3
+ metadata.gz: 3a42efde87b7fd6371a103de1e8e3998ce8dc8df
4
+ data.tar.gz: 625fd52f6e855b06f6f508c8fac5d9dabb1adf67
5
5
  SHA512:
6
- metadata.gz: 91b4d8a56da3260a27939e9aecfb6acd8d4e3a57f98f7f6d73c09133a8122dd8e068f34bde53ef60dd1fdfa7cf8fed50baf0a12ef3eb7ab37b88b94b93dc2bff
7
- data.tar.gz: cc60cb62e24f2fd938be1d567f4a5e40732c98e41489d1ef504a8e428a3f9935c12b35ec29aa547a5cf3723197ce64a55a0680c596362a45c2b1a3c5ccecfd9c
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(/^\w+: (-?\d{1,2}.) (-?\d{1,2}.), ([^\.]+)\./)\
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
- s3 = "with a minimum temperature of #{min} celcius " +
88
- "and a maximum temperature of #{max} celcius"
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.5
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-25 00:00:00.000000000 Z
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
- J��_�����qq\��{A���-u��0��ο�7�Űey�!��-�"`����]OX1C�J��)��i��1�S�b����(@�JV7�?w����4!*7.���ʦ����{��Öv�g7��1������0�p�\�(�>f��z,��iV׎��v{7/QB&����hϜ�#��1����?&�\��R������
2
- �܂H����x�+�]��ύ_�� ټ�����8ap`����'E7
1
+ 9�ߕe���]P$,�;��'5D�ҽ�}g(:
2
+ c��m8�h��7�@G9��;Q;��d��������3�9��(]��7yi��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�)��!&�#+�]�+<