geonames_api 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module GeoNamesAPI
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -26,11 +26,11 @@ module GeoNamesAPI
26
26
  end
27
27
 
28
28
  def elevation_feet
29
- elevation * 3.28084
29
+ elevation * 3.28084 if elevation
30
30
  end
31
31
 
32
32
  def elevation_meters
33
- elevation
33
+ elevation if elevation
34
34
  end
35
35
 
36
36
  def convert_c_to_f(temp)
@@ -38,19 +38,19 @@ module GeoNamesAPI
38
38
  end
39
39
 
40
40
  def temperature_f
41
- convert_c_to_f(temperature)
41
+ convert_c_to_f(temperature) if temperature
42
42
  end
43
43
 
44
44
  def temperature_c
45
- temperature
45
+ temperature if temperature
46
46
  end
47
47
 
48
48
  def dew_point_f
49
- convert_c_to_f(dew_point)
49
+ convert_c_to_f(dew_point) if temperature
50
50
  end
51
51
 
52
52
  def dew_point_c
53
- dew_point
53
+ dew_point if temperature
54
54
  end
55
55
 
56
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geonames_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: