weather_fetcher 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
@@ -96,13 +96,18 @@ module WeatherFetcher
96
96
 
97
97
  # Process json node to Hash for AR
98
98
  def process_node(node)
99
+ # http://www.worldweatheronline.com/marine-weather-api.aspx
99
100
  return {
100
101
  :temperature => node["temp_C"].to_i,
101
102
  :wind => node["windspeedKmph"].to_f / 3.6,
102
- :pressure => node["pressure"].to_f / 3.6,
103
- :rain => node["precipMM"].to_f / 3.6,
103
+ :pressure => node["pressure"].to_f,
104
+ :rain => node["precipMM"].to_f,
104
105
  :snow => nil,
105
- :provider => self.class.provider_name
106
+ :provider => self.class.provider_name,
107
+
108
+ :cloud_cover => node["cloudcover"].to_f,
109
+ :humidity => node["humidity"].to_f,
110
+ :visibility => node["visibility"].to_f,
106
111
  }
107
112
  end
108
113
 
@@ -40,6 +40,7 @@ module WeatherFetcher
40
40
  attr_reader :time_created, :time_from, :time_to, :fetch_time, :next_fetch_time,
41
41
  :temperature, :wind, :pressure, :wind_kmh, :snow, :rain,
42
42
  :rain_metar, :snow_metar,
43
+ :cloud_cover, :humidity, :visibility, # available in WorldWeatherOnline
43
44
  :provider,
44
45
  :metar_string
45
46
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weather_fetcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-09-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: simple_metar_parser
16
- requirement: &19861460 !ruby/object:Gem::Requirement
16
+ requirement: &18084900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.0.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19861460
24
+ version_requirements: *18084900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &19852600 !ruby/object:Gem::Requirement
27
+ requirement: &18070260 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.3.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *19852600
35
+ version_requirements: *18070260
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &19852120 !ruby/object:Gem::Requirement
38
+ requirement: &18069780 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *19852120
46
+ version_requirements: *18069780
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &19851620 !ruby/object:Gem::Requirement
49
+ requirement: &18069280 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.6.4
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *19851620
57
+ version_requirements: *18069280
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: simplecov
60
- requirement: &19851120 !ruby/object:Gem::Requirement
60
+ requirement: &18068740 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *19851120
68
+ version_requirements: *18068740
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rdoc
71
- requirement: &19850600 !ruby/object:Gem::Requirement
71
+ requirement: &18068240 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *19850600
79
+ version_requirements: *18068240
80
80
  description: Fetch weather from various Polish websites and via other gems. At the
81
81
  moment it is only polish portal Onet.pl but more providers will come soon.
82
82
  email: bobikx@poczta.fm
@@ -126,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  segments:
128
128
  - 0
129
- hash: 2565260415669073433
129
+ hash: 3802347963225655031
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  none: false
132
132
  requirements: