s44_myweatherforecast 0.1.8 → 0.1.9
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.tar.gz.sig +0 -0
- data/lib/s44_myweatherforecast.rb +7 -7
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9685358194d7245025470a9bc94ada90b3d20fcc
|
4
|
+
data.tar.gz: 136d3b5a90f9e14225fee8ebf169bcdc87a60ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8311b680237394d3151aedeeb179bbfb3187114a9167188601d5c9aea5d2367e03538d764a5675d25495a3ac8744c31f882d888855560730d86c4b8007cb68bd
|
7
|
+
data.tar.gz: 8c46babfdde7ec97e9954ded342d041951bd1bcb99458ff62226d29f77a07e1744e29576529809d3c5e73fa792e07a6c17eacb8c632f4ecbce833f660b0be5d1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -64,18 +64,17 @@ class S44_MyWeatherForecast
|
|
64
64
|
|
65
65
|
end
|
66
66
|
|
67
|
-
def query_period(day=:tomorrow, period=:afternoon, desc='rain',
|
67
|
+
def query_period(day=:tomorrow, period=:afternoon, desc='rain',
|
68
|
+
single_result: true)
|
68
69
|
|
69
|
-
desc = 'drizzle|rain' if desc =~ /rain/i
|
70
|
+
desc = 'drizzle|rain|snow|sleet' if desc =~ /rain/i
|
70
71
|
obj_period = @w.method(day.to_sym).call.method(period.to_sym).call
|
71
72
|
|
72
73
|
return if obj_period.nil?
|
73
74
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
obj_period.select {|x| x.to_s =~ /#{desc}/i }
|
78
|
-
end
|
75
|
+
name = single_result ? :detect : :select
|
76
|
+
|
77
|
+
obj_period.method(name).call {|x| x.to_s =~ /#{desc}/i }
|
79
78
|
|
80
79
|
end
|
81
80
|
|
@@ -134,3 +133,4 @@ class S44_MyWeatherForecast
|
|
134
133
|
"celcius and a maximum temperature of #{max} celcius."
|
135
134
|
end
|
136
135
|
end
|
136
|
+
|
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.9
|
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:
|
34
|
+
date: 2018-02-28 00:00:00.000000000 Z
|
35
35
|
dependencies: []
|
36
36
|
description:
|
37
37
|
email: james@jamesrobertson.eu
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.6.
|
63
|
+
rubygems_version: 2.6.13
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: Uses the myweatherforecast gem to generate a summary of the weather forecast
|
metadata.gz.sig
CHANGED
Binary file
|