s44_myweatherforecast 0.1.0 → 0.1.1

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: 2ae4c2c3173a6fa454e167bbb53c93794ee08647
4
- data.tar.gz: 47df4444d827e5511e265977036432097b414b73
3
+ metadata.gz: f79e82209f61052fd450eda061ce71094da849f9
4
+ data.tar.gz: 7443836247a263159747bd787edaff778bda39d9
5
5
  SHA512:
6
- metadata.gz: 4418a0fead188e9a5274c2ba06ec63301c63a6ff304345dcb66b95d413fac3c369015dd3eb5e5cda51ef603ffcb8a5e05891f4536c2c54f5783adec558a56d47
7
- data.tar.gz: eeecbeca09b1e62471ae7073966f5b68e1877a790fef9c1be333713f6622665382a2d61417b7983ea3a688e1672fa8637a3176245ae0b3700f6162e73069f3d6
6
+ metadata.gz: b9b3ba43d15c55d57c6a6e8a0de8e38c8cd42b092f7d698d0158b21714e02ab49d6ff0a4ecafb7fc5c6037fce06ce98fad3d3b14e6eaec7425cc6bec4e914a0b
7
+ data.tar.gz: 03089a245af5b4a25c7426f9ebed968c21a263b5c2b57c706cc1f886ed4d0cde95e23fe7d3375daadf83ece42ab465c7d335c1eb27de0ab9adf2c9a6e808351a
checksums.yaml.gz.sig CHANGED
@@ -1 +1,3 @@
1
- EϨw.ɴ\Ȭ�{����]m!~��ᄾ�G ),X]f�A�c:�٘ݍ�Oh=e���qI��׳*�����ɞ�3)Γ1��{�yQ����9�ξ^rY�����L�����:X�V��P;2�D��>�zuC��h($h��+4bE
1
+ @Ẽ�8L)����{�>� Y�bve* *#�H���%EE�
2
+ w�RP�Z_��Zi_�Ɩ�� �4�u����������͖�{5��� *�eSSE$¤3w�2@��֞9[��+
3
+ �V�=�H��6hrݕ'*sp���ā
data.tar.gz.sig CHANGED
Binary file
@@ -10,10 +10,31 @@ class S44_MyWeatherForecast
10
10
  end
11
11
 
12
12
  def afternoon()
13
- summary(:afternoon)
13
+ summary :afternoon
14
14
  end
15
+
16
+ def ahead()
17
+ self.method(@w.today.ahead).call
18
+ end
19
+
20
+ alias this_afternoon afternoon
21
+
22
+ def early_hours()
23
+ summary :early_hours
24
+ end
25
+
26
+ def evening()
27
+ summary :evening
28
+ end
15
29
 
16
- alias this_afternoon afternoon
30
+ alias this_evening evening
31
+
32
+ def tonight()
33
+ summary :night
34
+ end
35
+
36
+ alias night tonight
37
+
17
38
 
18
39
  private
19
40
 
@@ -36,8 +57,16 @@ class S44_MyWeatherForecast
36
57
  s3 = "with a minimum temperature of #{min} celcius " +
37
58
  "and a maximum temperature of #{max} celcius"
38
59
 
39
- s1 = "The weather this #{period.to_s} is to be"
60
+ t = case period
61
+ when :night
62
+ 'tonight'
63
+ when :early_hours
64
+ 'in the early hours'
65
+ else
66
+ 'this ' + period.to_s
67
+ end
40
68
 
69
+ s1 = "The weather #{t} is to be"
41
70
  [s1, s2.downcase, s3].join(' ') + '.'
42
71
 
43
72
  end
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -63,6 +63,6 @@ rubyforge_project:
63
63
  rubygems_version: 2.4.8
64
64
  signing_key:
65
65
  specification_version: 4
66
- summary: 'Under development: Uses the myweatherforecast gem to generates a summary
66
+ summary: 'Under development: Uses the myweatherforecast gem to generate a summary
67
67
  of the weather forecast in plain English.'
68
68
  test_files: []
metadata.gz.sig CHANGED
Binary file