weatherizableAPI 0.1.3 → 0.1.4

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: 955ee62888df41116675a8e79db39b75c23d204d1ede0e9b97ada70b5f28cdb2
4
- data.tar.gz: 0bc144f6ab33db7fd47b46883842b3d6afdff92869a21de0ceff08e200b9cc09
3
+ metadata.gz: 7d3d5a41597c4ccd90f32f1f29f44beb43435219e52808c9f550abe720ed8a06
4
+ data.tar.gz: bef156ec6f9b9446eda9d9d75f0e3f8cb7f120b3706ef6175b4d9f20ba5f4691
5
5
  SHA512:
6
- metadata.gz: 694250f2f0886beac9eff24e947523fad21421a0db9c8d10b76e052ba9b4545c90b5558d5ec803df8116e71872f358ec77b889cc1c98e39ccd549966d49e62aa
7
- data.tar.gz: 65d59ba960c498db2b3275aa633d570a2b1b1a1c3d3ff484bea954c4c280b436f46da75805c739b50158352abe6de440c33c7825eff33761e1af75b60c479edf
6
+ metadata.gz: dfa3192f45b233380dbfdcd55ffcd81c8ad66e8f936a769890e801936fa9a41872b55e2a3284a944f524c468b36e6878b0916314c72efbf0df1db652a869ef4d
7
+ data.tar.gz: 71bccc93b5efd9caaf8fff6ce19549dfc83a5882b6ac39630c5fd881207041ed68a8ad8115f79b0bfd7a7a225a513ced819fb814c1fbc89cebe41471646c2425
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- weatherizableAPI (0.1.2)
4
+ weatherizableAPI (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -41,7 +41,7 @@ module OpenWeatherApi
41
41
  split_day(date).each do |item|
42
42
  temp += item['main']['temp']
43
43
  end
44
- (temp / split_day(Date.today).count).round(1)
44
+ (temp / split_day(date).count).round(1)
45
45
  end
46
46
 
47
47
  def convert_date(timestamp)
@@ -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).strftime("%d/%m")}"
45
+ "#{weather.main['temp'].round(1)}#{temp_type} e #{weather.weather.last['description']} em #{weather.name} em #{forecast.convert_date(weather.dt).strftime("%d/%m")}"
46
46
  end
47
47
 
48
48
  #FIXME: workarround to be fixed
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WeatherizableAPI
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugo Silva