weatherizableAPI 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
  SHA256:
3
- metadata.gz: cc9813780b621ab04fe68a7aedfb1e5c652a6bc809d8ba740d34e86a32791341
4
- data.tar.gz: 6b92b8ee68e397b1d331e9c74706ab2125d195ed837c27314415838a751ec3ed
3
+ metadata.gz: 48b0840e06a59c4ff6e6edca91eecc08ffa6094fe45c3c1aa2cc197fc5274fa8
4
+ data.tar.gz: 9b36184672adfe0865d56864ce9eb6727115f3162200ad9031e90bbc6f803199
5
5
  SHA512:
6
- metadata.gz: 78a3a7731c5deff1f6ee3d4874bb7881bc64e8612f45a42a6a6f299af6894109dd0eceee3a90a3e50476c7d80cd3870cf8fac2b592927910d323a2e12d0aa898
7
- data.tar.gz: 5424f25a4f15d6696f32f72bdeb815b50f1a1ba3fd5191778452ffbe9ebfa11c154064cd8675843f9272e780701ae7d32d62b84557f7773da6689489b13a1db2
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
- => "20.5ºC e nublado em 2021-02-22. Média para os proximos dias: 33.1ºC em 2021-02-23, 33.4ºC em 2021-02-24, 30.9ºC em 2021-02-25, 29.6ºC em 2021-02-26, 6.6ºC em 2021-02-27, "
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 == 5 ? '.' : ',' } "
56
+ message += date.strftime("%d/%m").to_s
57
+ message += "#{t == 4 ? '.' : ',' } "
58
58
  end
59
59
  message
60
60
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WeatherizableAPI
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weatherizableAPI
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
  - Hugo Silva