metar-parser 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -67,6 +67,23 @@ raw = Metar::Raw::Data.new(metar_string)
67
67
  parser = Metar::Parser.new(raw)
68
68
  ```
69
69
 
70
+ Translations
71
+ ------------
72
+ Translations are available for the following languages (and region):
73
+ * :de
74
+ * :en
75
+ * :'en-US'
76
+ * :it
77
+ * :'pt-BR'
78
+ *
79
+ Thanks to the I18n gem's fallback mechanism, under regional locales, language generic
80
+ translations will be used if a region-specific translation is not available.
81
+ I.e.
82
+ ```
83
+ I18n.locale = :'en-US'
84
+ I18n.t('metar.station_code.title') # station code
85
+ ```
86
+
70
87
  Compliance
71
88
  ==========
72
89
 
data/lib/metar/version.rb CHANGED
@@ -2,7 +2,7 @@ module Metar
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/locales/en.yml CHANGED
@@ -164,7 +164,6 @@ en:
164
164
  en-US:
165
165
  metar:
166
166
  sky_conditions:
167
- clear skies: clear skies
168
167
  broken: broken clouds
169
168
  broken cumulonimbus: broken cumulonimbus clouds
170
169
  broken towering cumulus: broken towering cumulus clouds
data/locales/pt-BR.yml ADDED
@@ -0,0 +1,182 @@
1
+ # encoding: utf8
2
+ pt-BR:
3
+ date:
4
+ formats:
5
+ default: '%d/%m/%Y'
6
+ comparison:
7
+ more_than: mais que
8
+ less_than: menos que
9
+ tendency:
10
+ no_change: sem mudanças
11
+ improving: melhorando
12
+ worsening: piorando
13
+ units:
14
+ pressure:
15
+ bar:
16
+ full: bar
17
+ speed:
18
+ kilometers_per_hour:
19
+ full: kilômetros por hora
20
+ abbreviated: km/h
21
+ temperature:
22
+ degrees:
23
+ full: graus celsius
24
+ abbreviated: °C
25
+ distance:
26
+ kilometers:
27
+ full: kilômetros
28
+ abbreviated: km
29
+ meters:
30
+ full: metros
31
+ abbreviated: m
32
+ direction:
33
+ degrees:
34
+ full: graus
35
+ abbreviated: °
36
+ metar:
37
+ station_code:
38
+ title: código da estação
39
+ station_name:
40
+ title: nome
41
+ station_country:
42
+ title: país
43
+ time:
44
+ title: hora
45
+ observer:
46
+ title: observador
47
+ real: real
48
+ auto: automático
49
+ corrected: corrigido
50
+ altitude:
51
+ at: a
52
+ distance:
53
+ title: distância
54
+ unknown: desconhecido
55
+ wind:
56
+ title: vento
57
+ variable_direction: direção variável
58
+ unknown_direction: direção desconhecida
59
+ unknown_speed: velocidade desconhecida
60
+ gusts: rajadas
61
+ variable_wind:
62
+ title: variação do vento
63
+ visibility:
64
+ title: visibilidade
65
+ minimum_visibility:
66
+ title: visibilidade minima
67
+ sky_summary:
68
+ title: céu
69
+ sky_conditions:
70
+ title: condições do céus
71
+ clear skies: céus limpos
72
+ broken: nublado
73
+ broken cumulonimbus: nublado cumulonimbus
74
+ broken towering cumulus: nublado com towering cumulus
75
+ few: poucas nuvens
76
+ few cumulonimbus: poucos cumulonimbus
77
+ few towering cumulus: poucos towering cumulus
78
+ scattered: nuvens esparsas
79
+ scattered cumulonimbus: cumulonimbus esparsos
80
+ scattered towering cumulus: tower cumulus esparsos
81
+ overcast: encoberto
82
+ overcast cumulonimbus: encoberto por cumulonimbus
83
+ overcast towering cumulus: encoberto por towering cumulus
84
+ runway_visible_range:
85
+ title: alcance de visibilidade da pista
86
+ runway: pista
87
+ from: de
88
+ to: para
89
+ present_weather:
90
+ title: clima
91
+ not observed: não observado
92
+ mist: misto
93
+ dust: poeira
94
+ blowing dust: sopro com poeira
95
+ low drifting dust: poeira baixa a deriva
96
+ nearby blowing dust: poeira baixa a deriva na vizinhança
97
+ drizzle: chuvisco
98
+ heavy drizzle: chuvisco severo
99
+ light drizzle: chuvisco leve
100
+ heavy freezing drizzle: chuvisco congelante severo
101
+ light freezing drizzle: chuvisco congelante leve
102
+ fog: neblina
103
+ patches of fog: trilhas de neblina
104
+ freezing fog: neblina congelante
105
+ shallow fog: neblina superficial
106
+ partial fog: neblina parcial
107
+ nearby fog: neblina na vizinhança
108
+ smoke: fumaça
109
+ hail: granizo
110
+ heavy shower of hail: precipitação severa de granizo
111
+ light shower of hail: precipitação leve de granizo
112
+ heavy shower of small hail: precipitação severa de pequenos granizos
113
+ light shower of small hail: precipitação leve de pequenos granizos
114
+ haze: névoa
115
+ ice crystals: cristais de gelo
116
+ heavy ice pellets: esferas de gelo severas
117
+ light ice pellets: esferas de gelo leves
118
+ dust whirls: redemoinhos de poeira
119
+ nearby dust whirls: redemoinhos de poeira na vizinhança
120
+ spray: spray
121
+ rain: chuva
122
+ heavy rain: chuva forte
123
+ light rain: chuva leve
124
+ heavy shower of rain: heavy shower of rain
125
+ light shower of rain: light shower of rain
126
+ heavy freezing rain: chuva congelante severa
127
+ light freezing rain: chuva congelante leve
128
+ sand: areia
129
+ blowing sand: blowing sand
130
+ low drifting sand: areia rasa a deriva
131
+ nearby blowing sand: areia rasa a deriva na vizinhança
132
+ nearby shower: precipitação na vizinhança
133
+ snow: neve
134
+ heavy snow: neve severa
135
+ light snow: neve leve
136
+ heavy shower of snow: precipitação de neve severa
137
+ light shower of snow: precipitação de neve leve
138
+ blowing snow: sopro com neve
139
+ low drifting snow: neve rasa a deriva
140
+ nearby blowing snow: neve rasa a deriva na vizinhança
141
+ heavy snow grains: flocos de neve severos
142
+ light snow grains: flocos de neve leves
143
+ snow and rain: chuva e neve
144
+ squall: ventania
145
+ unknown phenomenon: fenômeno desconhecido
146
+ heavy freezing unknown phenomenon: fenômeno desconhecido fortemente congelante
147
+ light freezing unknown phenomenon: fenômeno desconhecido levemente congelante
148
+ heavy shower of freezing unknown phenomenon: precipitação congelante severa de fenômeno desconhecido
149
+ light shower of freezing unknown phenomenon: precipitação congelante leve de fenômeno desconhecido
150
+ volcanic ash: cinza vulcânica
151
+ nearby volcanic ash: cinza vulcânica na vizinhança
152
+ funnel cloud: nuvem funil
153
+ nearby funnel cloud: nuvem funil na vizinhança
154
+ sand storm: tempestade de areia
155
+ heavy sand storm: tempestade de areia severa
156
+ light sand storm: tempestade de areia leve
157
+ nearby sand storm: tempestade de areia na vizinhança
158
+ dust storm: tempestade de poeira
159
+ heavy dust storm: tempestade de poeira severa
160
+ light dust storm: tempestade de poeira leve
161
+ nearby dust storm: tempestade de poeira na vizinhança
162
+ thunderstorm: tempestade
163
+ thunderstorm and rain: tempestade e chuva
164
+ nearby thunderstorm: tempestade na vizinhança
165
+ heavy thunderstorm and hail: tempestade e granizo severo
166
+ light thunderstorm and hail: tempestade e granizo leve
167
+ heavy thunderstorm and small hail: tempestade severa com pequenos granizos
168
+ light thunderstorm and small hail: tempestade leve com pequenos granizos
169
+ heavy thunderstorm and rain: tempestade e chuva severa
170
+ light thunderstorm and rain: tempestade e chuva leve
171
+ heavy thunderstorm and snow: tempestade severa com neve
172
+ light thunderstorm and snow: tempestade leve com neve
173
+ heavy thunderstorm and unknown phenomenon: tempestade severa e fenômeno desconhecido
174
+ light thunderstorm and unknown phenomenon: tempestade leve e fenômeno desconhecido
175
+ heavy unknown phenomenon: fenômeno desconhecido severo
176
+ light unknown phenomenon: fenômeno desconhecido leve
177
+ temperature:
178
+ title: temperatura
179
+ dew_point:
180
+ title: ponto de orvalho
181
+ remarks:
182
+ title: observações
@@ -12,7 +12,7 @@ describe I18n do
12
12
  expect(I18n.load_path).to include(german_path)
13
13
  end
14
14
 
15
- it 'falls back do the language translation when a region-specific translation is not available' do
15
+ it 'falls back to the language translation when a region-specific translation is not available' do
16
16
  old_locale = I18n.locale
17
17
  I18n.locale = :'en-FOO'
18
18
  expect(I18n.t('metar.altitude.at')).to eq('at')
metadata CHANGED
@@ -1,153 +1,150 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: metar-parser
3
- version: !ruby/object:Gem::Version
4
- version: 1.1.6
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 1
9
+ - 7
10
+ version: 1.1.7
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Joe Yates
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-05-27 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-09-03 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ hash: 3
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ version_requirements: *id001
15
32
  name: rake
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
33
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: rdoc
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
34
  type: :runtime
35
+ - !ruby/object:Gem::Dependency
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ hash: 3
42
+ segments:
43
+ - 0
44
+ version: "0"
45
+ version_requirements: *id002
46
+ name: rdoc
39
47
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: i18n
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: 0.3.5
54
48
  type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
49
+ - !ruby/object:Gem::Dependency
50
+ requirement: &id003 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ hash: 25
56
+ segments:
57
+ - 0
58
+ - 3
59
+ - 5
61
60
  version: 0.3.5
62
- - !ruby/object:Gem::Dependency
63
- name: m9t
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: 0.3.1
70
- type: :runtime
61
+ version_requirements: *id003
62
+ name: i18n
71
63
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
64
+ type: :runtime
65
+ - !ruby/object:Gem::Dependency
66
+ requirement: &id004 !ruby/object:Gem::Requirement
73
67
  none: false
74
- requirements:
68
+ requirements:
75
69
  - - ~>
76
- - !ruby/object:Gem::Version
70
+ - !ruby/object:Gem::Version
71
+ hash: 17
72
+ segments:
73
+ - 0
74
+ - 3
75
+ - 1
77
76
  version: 0.3.1
78
- - !ruby/object:Gem::Dependency
79
- name: rspec
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: 2.11.0
86
- type: :development
77
+ version_requirements: *id004
78
+ name: m9t
87
79
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
80
+ type: :runtime
81
+ - !ruby/object:Gem::Dependency
82
+ requirement: &id005 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ hash: 35
88
+ segments:
89
+ - 2
90
+ - 11
91
+ - 0
93
92
  version: 2.11.0
94
- - !ruby/object:Gem::Dependency
95
- name: simplecov
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
93
+ version_requirements: *id005
94
+ name: rspec
95
+ prerelease: false
102
96
  type: :development
97
+ - !ruby/object:Gem::Dependency
98
+ requirement: &id006 !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ hash: 3
104
+ segments:
105
+ - 0
106
+ version: "0"
107
+ version_requirements: *id006
108
+ name: rcov
103
109
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
111
- name: pry
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
110
  type: :development
111
+ - !ruby/object:Gem::Dependency
112
+ requirement: &id007 !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ hash: 3
118
+ segments:
119
+ - 0
120
+ version: "0"
121
+ version_requirements: *id007
122
+ name: pry
119
123
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: pry-doc
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
124
  type: :development
125
+ - !ruby/object:Gem::Dependency
126
+ requirement: &id008 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ hash: 3
132
+ segments:
133
+ - 0
134
+ version: "0"
135
+ version_requirements: *id008
136
+ name: pry-doc
135
137
  prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
- description: ! " metar-parser is a ruby gem that downloads weather reports, parses
143
- them and formats reports.\n\n It also provides weather station listings and info
144
- (e.g. country, latitude and longitude).\n\n Reports can be fully localized (currently
145
- English and Italian are available).\n"
138
+ type: :development
139
+ description: " metar-parser is a ruby gem that downloads weather reports, parses them and formats reports.\n\n It also provides weather station listings and info (e.g. country, latitude and longitude).\n\n Reports can be fully localized (currently English and Italian are available).\n"
146
140
  email: joe.g.yates@gmail.com
147
141
  executables: []
142
+
148
143
  extensions: []
144
+
149
145
  extra_rdoc_files: []
150
- files:
146
+
147
+ files:
151
148
  - README.md
152
149
  - COPYING
153
150
  - Rakefile
@@ -179,38 +176,43 @@ files:
179
176
  - spec/unit/variable_wind_spec.rb
180
177
  - locales/en.yml
181
178
  - locales/it.yml
179
+ - locales/pt-BR.yml
182
180
  - locales/de.yml
181
+ has_rdoc: true
183
182
  homepage: http://github.com/joeyates/metar-parser
184
183
  licenses: []
184
+
185
185
  post_install_message:
186
186
  rdoc_options: []
187
- require_paths:
187
+
188
+ require_paths:
188
189
  - lib
189
- required_ruby_version: !ruby/object:Gem::Requirement
190
+ required_ruby_version: !ruby/object:Gem::Requirement
190
191
  none: false
191
- requirements:
192
- - - ! '>='
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
- segments:
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ hash: 3
196
+ segments:
196
197
  - 0
197
- hash: 4569733942927237109
198
- required_rubygems_version: !ruby/object:Gem::Requirement
198
+ version: "0"
199
+ required_rubygems_version: !ruby/object:Gem::Requirement
199
200
  none: false
200
- requirements:
201
- - - ! '>='
202
- - !ruby/object:Gem::Version
203
- version: '0'
204
- segments:
201
+ requirements:
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ hash: 3
205
+ segments:
205
206
  - 0
206
- hash: 4569733942927237109
207
+ version: "0"
207
208
  requirements: []
209
+
208
210
  rubyforge_project: nowarning
209
- rubygems_version: 1.8.23
211
+ rubygems_version: 1.6.2
210
212
  signing_key:
211
213
  specification_version: 3
212
214
  summary: A Ruby gem for worldwide weather reports
213
- test_files:
215
+ test_files:
214
216
  - spec/unit/report_spec.rb
215
217
  - spec/unit/pressure_spec.rb
216
218
  - spec/unit/station_spec.rb
@@ -228,4 +230,3 @@ test_files:
228
230
  - spec/unit/raw_spec.rb
229
231
  - spec/unit/parser_spec.rb
230
232
  - spec/unit/variable_wind_spec.rb
231
- has_rdoc: