metar-parser 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -6,12 +6,13 @@ The information comes from the National Oceanic and Atmospheric Association's ra
6
6
 
7
7
  * Parses METAR strings using a state machine.
8
8
 
9
- = Data format descrition
9
+ = Data format description
10
10
 
11
11
  * WMO
12
12
  * http://www.wmo.int/pages/prog/www/WMOCodes/Manual/Volume-I-selection/Sel2.pdf (pages 27-38)
13
13
  * http://dcaa.slv.dk:8000/icaodocs/Annex%203%20-%20Meteorological%20Service%20for%20International%20Air%20Navigation/Cover%20sheet%20to%20AMDT%2074.pdf (Table A3-2. Template for METAR and SPECI)
14
14
  * http://booty.org.uk/booty.weather/metinfo/codes/METAR_decode.htm
15
+ * http://www.flyingineurope.be/metar_taf_decode.htm
15
16
 
16
17
  * United states:
17
18
  * http://www.nws.noaa.gov/oso/oso1/oso12/fmh1/fmh1ch12.htm
data/Rakefile CHANGED
@@ -14,8 +14,8 @@ task :default => :test
14
14
 
15
15
  spec = Gem::Specification.new do |s|
16
16
  s.name = 'metar-parser'
17
- s.summary = 'Downloads and parses weather reports'
18
- s.description = 'Downloads, parses and presents METAR weather reports'
17
+ s.summary = 'A Ruby library for METAR weather reports'
18
+ s.description = 'A Ruby library which handle METAR weather reports. Provides weather station listings and info. Downloads and parses reports. Presents localized full text reports'
19
19
  s.version = Metar::VERSION::STRING
20
20
 
21
21
  s.homepage = 'http://github.com/joeyates/metar-parser'
@@ -26,7 +26,7 @@ spec = Gem::Specification.new do |s|
26
26
  s.require_paths = ['lib']
27
27
  s.add_dependency('aasm', '>= 2.1.5')
28
28
  s.add_dependency('i18n', '>= 0.3.5')
29
- s.add_dependency('m9t', '>= 0.1.11')
29
+ s.add_dependency('m9t', '>= 0.1.12')
30
30
 
31
31
  s.has_rdoc = true
32
32
  s.rdoc_options += RDOC_OPTS
data/lib/metar/parser.rb CHANGED
@@ -88,7 +88,6 @@ module Metar
88
88
  station = Metar::Station.new(cccc)
89
89
  raw = Metar::Raw.new(station)
90
90
  parser = new(raw)
91
- parser.analyze
92
91
  parser
93
92
  end
94
93
 
@@ -181,8 +180,7 @@ module Metar
181
180
  if @chunks[0] == 'CAVOK'
182
181
  @chunks.shift
183
182
  @visibility = Visibility.new(M9t::Distance.kilometers(10), nil, :more_than)
184
- @present_weather << Metar::WeatherPhenomenon.new('No significant weather')
185
- @sky_conditions << SkyCondition.new # = 'clear skies'
183
+ @sky_conditions << SkyCondition.new
186
184
  cavok!
187
185
  return
188
186
  end
data/lib/metar/report.rb CHANGED
@@ -39,6 +39,11 @@ module Metar
39
39
  def attributes=(attributes)
40
40
  @attributes = attributes.clone
41
41
  end
42
+
43
+ def for_cccc(cccc)
44
+ parser = Parser.for_cccc(cccc)
45
+ new(parser)
46
+ end
42
47
 
43
48
  reset_options!
44
49
  end
data/lib/metar.rb CHANGED
@@ -8,7 +8,7 @@ module Metar
8
8
  module VERSION #:nodoc:
9
9
  MAJOR = 0
10
10
  MINOR = 1
11
- TINY = 4
11
+ TINY = 5
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY].join('.')
14
14
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joe Yates
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-15 00:00:00 +01:00
17
+ date: 2010-03-17 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -55,11 +55,11 @@ dependencies:
55
55
  segments:
56
56
  - 0
57
57
  - 1
58
- - 11
59
- version: 0.1.11
58
+ - 12
59
+ version: 0.1.12
60
60
  type: :runtime
61
61
  version_requirements: *id003
62
- description: Downloads, parses and presents METAR weather reports
62
+ description: A Ruby library which handle METAR weather reports. Provides weather station listings and info. Downloads and parses reports. Presents localized full text reports
63
63
  email: joe.g.yates@gmail.com
64
64
  executables: []
65
65
 
@@ -123,6 +123,6 @@ rubyforge_project:
123
123
  rubygems_version: 1.3.6
124
124
  signing_key:
125
125
  specification_version: 3
126
- summary: Downloads and parses weather reports
126
+ summary: A Ruby library for METAR weather reports
127
127
  test_files:
128
128
  - test/all_tests.rb