myweatherforecast 0.3.2 → 0.3.3
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/myweatherforecast.rb +6 -5
- metadata +1 -1
- 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: 23dfdcaeb596c082c34a5a7271f7ec3beddf523f
|
|
4
|
+
data.tar.gz: 30be4fa1800560dd6283e3238bc3e8f459440c1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac0ff783144d990464f90aea7b4cd494318268b5a0e5b626ce79b220d4017f00898b82ca492c224768a6b9761bb886b84d2baaedb73c51917758317a6f2888d5
|
|
7
|
+
data.tar.gz: 9ab41deeecb1a178036907a61f8fd1b9cadc9ee1db19ea2df73731ce8924a48fdbbd52f6a14e43cf548ac3e11fc1f235c8c625529dbbcacaa477459ec264b95a
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/myweatherforecast.rb
CHANGED
|
@@ -132,23 +132,24 @@ class MyWeatherForecast
|
|
|
132
132
|
@tlabel = tlabel
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
def at()
|
|
135
|
+
def at(*a)
|
|
136
|
+
"%s outlook: %s - %s, %s" % [Date::DAYNAMES[self.time.wday], \
|
|
137
|
+
tempmin, tempmax, @x.summary]
|
|
136
138
|
end
|
|
137
139
|
|
|
138
140
|
def to_s
|
|
139
|
-
"min: %
|
|
140
|
-
@x.tempmax, @tlabel, @x.summary]
|
|
141
|
+
"min: %s max: %s, %s" % [tempmin, tempmax, @x.summary]
|
|
141
142
|
end
|
|
142
143
|
|
|
143
144
|
def temperature()
|
|
144
145
|
end
|
|
145
146
|
|
|
146
147
|
def tempmin
|
|
147
|
-
"%s°" % @x.temperatureMin.round
|
|
148
|
+
"%s°" % [@x.temperatureMin.round]
|
|
148
149
|
end
|
|
149
150
|
|
|
150
151
|
def tempmax
|
|
151
|
-
"%s°" % @x.temperatureMax.round
|
|
152
|
+
"%s°" % [@x.temperatureMax.round]
|
|
152
153
|
end
|
|
153
154
|
|
|
154
155
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|