weatherizableAPI 0.1.0 → 0.1.1
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
- data/README.md +1 -1
- data/lib/open_weather_api/messageable.rb +3 -3
- data/lib/weatherizableAPI/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48b0840e06a59c4ff6e6edca91eecc08ffa6094fe45c3c1aa2cc197fc5274fa8
|
4
|
+
data.tar.gz: 9b36184672adfe0865d56864ce9eb6727115f3162200ad9031e90bbc6f803199
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c078ee46cb8167a9955667cdea02796f9b50aa953253e2a74e356ac408b7708bb0754402b20816d017c1a87b759b0d93cbedbcec5e2e8d12f17e8b2d8cd7e1ae
|
7
|
+
data.tar.gz: 04e69a97c5cfbae8098f1a17391368ce37aa0dc7025055325449d9b16d775eedc4c84612f7796c0c7fa23458ec23afb6466d17aabf775f2537bb4fdb7f524ccf
|
data/README.md
CHANGED
@@ -35,7 +35,7 @@ params = {
|
|
35
35
|
}
|
36
36
|
messageable = OpenWeatherApi::Messageable.new(@params)
|
37
37
|
messageable.prevision
|
38
|
-
=> "
|
38
|
+
=> "26.9ºC e nublado em 22/02. Média para os proximos dias: 66.3ºC em 23/02, 68.5ºC em 24/02, 62.2ºC em 25/02, 58.1ºC em 26/02, 35.9ºC em 27/02. "
|
39
39
|
|
40
40
|
```
|
41
41
|
|
@@ -42,7 +42,7 @@ module OpenWeatherApi
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def temp_now
|
45
|
-
"#{weather.main['temp'].round(1)}#{temp_type} e #{weather.weather.last['description']} em #{forecast.convert_date(weather.dt)}"
|
45
|
+
"#{weather.main['temp'].round(1)}#{temp_type} e #{weather.weather.last['description']} em #{forecast.convert_date(weather.dt).strftime("%d/%m")}"
|
46
46
|
end
|
47
47
|
|
48
48
|
#FIXME: workarround to be fixed
|
@@ -53,8 +53,8 @@ module OpenWeatherApi
|
|
53
53
|
message += forecast.average_temperature(date).to_s
|
54
54
|
message += temp_type
|
55
55
|
message += " em "
|
56
|
-
message += date.to_s
|
57
|
-
message += "#{t ==
|
56
|
+
message += date.strftime("%d/%m").to_s
|
57
|
+
message += "#{t == 4 ? '.' : ',' } "
|
58
58
|
end
|
59
59
|
message
|
60
60
|
end
|