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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76f62520a708432f5a5b3c2c9304b5efedc2972e
4
- data.tar.gz: e760fc1785af1ad2649f94759413070d7ef5b8df
3
+ metadata.gz: 23dfdcaeb596c082c34a5a7271f7ec3beddf523f
4
+ data.tar.gz: 30be4fa1800560dd6283e3238bc3e8f459440c1d
5
5
  SHA512:
6
- metadata.gz: e48099ceacb8f5c1ea1dfd19183be6773813042cb2608d6b49a3d1ba166c09aa70cecda2406194d4e043bb8ab542ba34f3c90d473144b3222e5fe0b83c6053d0
7
- data.tar.gz: 86ce36fa0b4d34195eb00ea918d708b75d7a2210ecfdbd2e243e998839e885f1fef8b18f8736839c50f52df0c411667e68fd3129b5f6280a4c65a432bb7e864b
6
+ metadata.gz: ac0ff783144d990464f90aea7b4cd494318268b5a0e5b626ce79b220d4017f00898b82ca492c224768a6b9761bb886b84d2baaedb73c51917758317a6f2888d5
7
+ data.tar.gz: 9ab41deeecb1a178036907a61f8fd1b9cadc9ee1db19ea2df73731ce8924a48fdbbd52f6a14e43cf548ac3e11fc1f235c8c625529dbbcacaa477459ec264b95a
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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: %d%s max: %d%s, %s" % [@x.tempmin, @tlabel, \
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myweatherforecast
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file