weather_fetcher 0.0.8 → 0.0.9

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.8
1
+ 0.0.9
@@ -83,7 +83,8 @@ module WeatherFetcher
83
83
  # longer
84
84
  dates = body.scan(/<time datetime=\"(\d{4})-(\d{1,2})-(\d{1,2})\">/i)
85
85
 
86
- (0..10).each do |i|
86
+ # sometimes 10, sometimes 9
87
+ (0..9).each do |i|
87
88
  unix_time = Time.mktime(
88
89
  dates[i][0].to_i,
89
90
  dates[i][1].to_i,
@@ -39,7 +39,9 @@ module WeatherFetcher
39
39
 
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
- :provider
42
+ :rain_metar, :snow_metar,
43
+ :provider,
44
+ :metar_string
43
45
 
44
46
  end
45
47
  end
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.8
4
+ version: 0.0.9
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: &23748920 !ruby/object:Gem::Requirement
16
+ requirement: &15465720 !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: *23748920
24
+ version_requirements: *15465720
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &23739920 !ruby/object:Gem::Requirement
27
+ requirement: &15461820 !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: *23739920
35
+ version_requirements: *15461820
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &23739440 !ruby/object:Gem::Requirement
38
+ requirement: &15461340 !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: *23739440
46
+ version_requirements: *15461340
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &23738940 !ruby/object:Gem::Requirement
49
+ requirement: &15460860 !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: *23738940
57
+ version_requirements: *15460860
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: simplecov
60
- requirement: &23738400 !ruby/object:Gem::Requirement
60
+ requirement: &15460380 !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: *23738400
68
+ version_requirements: *15460380
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rdoc
71
- requirement: &23737920 !ruby/object:Gem::Requirement
71
+ requirement: &15459880 !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: *23737920
79
+ version_requirements: *15459880
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: 2563830482036869006
129
+ hash: 3145860432449150265
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  none: false
132
132
  requirements: