attack-barometer 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 0
4
4
  :minor: 6
@@ -1,9 +1,282 @@
1
1
  # first term - icao code
2
2
  # second term - standard country_code
3
3
  #
4
+ # http://en.wikipedia.org/wiki/International_Civil_Aviation_Organization_airport_code
5
+ # http://www.theodora.com/country_digraphs.html
6
+ # http://www.unc.edu/~rowlett/units/codes/country.htm
7
+ #
4
8
  one_letter:
5
9
  C : CA
6
10
  K : US
11
+ U : RU
12
+ Y : AU
13
+ Z : CN
7
14
 
8
15
  two_letter:
9
- ET : DE
16
+ # A - Western South Pacific
17
+ AG : SB
18
+ AN : NR
19
+ AY : PG
20
+
21
+ # B - Iceland/Greenland and Kosovo
22
+ BG : GL
23
+ BI : IS
24
+ #BK : Kosovo (also LY Serbia (RS) because of disputes)
25
+
26
+ # D - West Africa
27
+ DA : DZ
28
+ DB : BJ
29
+ DF : BF
30
+ DG : GH
31
+ DI : CI
32
+ DN : NG
33
+ DR : NE
34
+ DT : TN
35
+ # DX : Togolese Republic
36
+
37
+ # E - Northern Europe
38
+ EB : BE
39
+ ED : DE
40
+ EE : EE
41
+ EF : FI
42
+ EG : GB
43
+ EH : NL
44
+ EI : IE
45
+ EK : DK
46
+ EL : LU
47
+ EN : NO
48
+ EP : PL
49
+ ES : SE
50
+ ET : DE
51
+ EV : LV
52
+ EY : LT
53
+
54
+ # F - Southern Africa
55
+ FA : ZA
56
+ FB : BW
57
+ FC : CG
58
+ FD : SZ
59
+ FE : CF
60
+ FG : GQ
61
+ # FH : Ascension Island (none)
62
+ FI : MU
63
+ FJ : IO
64
+ FK : CM
65
+ FL : ZM
66
+ # FM : Comoros (none), Madagascar (MG), Mayotte (YT), Réunion (RE)
67
+ FN : AO
68
+ FO : GA
69
+ FP : ST
70
+ FQ : MZ
71
+ FS : SC
72
+ FT : TD
73
+ FV : ZW
74
+ FW : MW
75
+ FX : LS
76
+ FY : NA
77
+ FZ : CD
78
+
79
+ # G - Northwestern Africa
80
+ GA : ML
81
+ GB : GM
82
+ GC : ES
83
+ GE : ES
84
+ GF : SL
85
+ GG : GW
86
+ GL : LR
87
+ GM : MA
88
+ GO : SN
89
+ GQ : MR
90
+ GS : EH
91
+ GU : GN
92
+ GV : CV
93
+
94
+ # H - Northeastern Africa
95
+ HA : ET
96
+ HB : BI
97
+ HC : SO
98
+ HD : DJ
99
+ HE : EG
100
+ HF : DJ
101
+ HH : ER
102
+ HK : KE
103
+ HL : LY
104
+ HR : RW
105
+ HS : SD
106
+ HT : TZ
107
+ HU : UG
108
+
109
+ # L - Southern Europe,Israel and Turkey
110
+ LA : AL
111
+ LB : BG
112
+ LC : CY
113
+ LD : HR
114
+ LE : ES
115
+ LF : FR
116
+ LG : GR
117
+ LH : HU
118
+ LI : IT
119
+ LJ : SI
120
+ LK : CZ
121
+ LL : IL
122
+ LM : MT
123
+ LN : MC
124
+ LO : AT
125
+ LP : PT
126
+ LQ : BA
127
+ LR : RO
128
+ LS : CH
129
+ LT : TR
130
+ LU : MD
131
+ LV : PS
132
+ LW : MK
133
+ LX : GI
134
+ #LY : Serbia (RS) and Montenegro (ME)
135
+ LZ : SK
136
+
137
+ # M - Central America and Mexico
138
+ MB : TC
139
+ MD : DO
140
+ MG : GT
141
+ MH : HN
142
+ MK : JM
143
+ MM : MX
144
+ MN : NI
145
+ MP : PA
146
+ MR : CR
147
+ MS : SV
148
+ MT : HT
149
+ MU : CU
150
+ MW : KY
151
+ MY : BS
152
+ MZ : BZ
153
+
154
+ # N - South Pacific
155
+ NC : CK
156
+ # NF : Fiji (FJ), Tonga (TO)
157
+ # NG : Kiribati (KI) (Gilbert Islands), Tuvalu (TV)
158
+ NI : NU
159
+ NL : WF
160
+ # NS : Samoa (WS), American Samoa (AS)
161
+ NT : PF
162
+ NV : VU
163
+ NW : NC
164
+ # NZ : New Zealand (NZ), Antarctica (AQ)
165
+
166
+ # O - Southwest Asia (excluding Israel and Turkey), Afghanistan and Pakistan
167
+ OA : AF
168
+ OB : BH
169
+ OE : SA
170
+ OI : IR
171
+ OJ : JO
172
+ OK : KW
173
+ OL : LB
174
+ OM : AE
175
+ OO : OM
176
+ OP : PK
177
+ OR : IQ
178
+ OS : SY
179
+ OT : QA
180
+ OY : YE
181
+
182
+ # P - Eastern North Pacific
183
+ PA : US
184
+ # PB : Baker Island
185
+ PC : KI
186
+ PF : US
187
+ PG : GU
188
+ PH : US
189
+ # PJ : Johnston Atoll
190
+ PK : MH
191
+ PL : KI
192
+ # PM : Midway Island
193
+ PO : US
194
+ PP : US
195
+ # PT : Federated States of Micronesia (FM), Palau (PW)
196
+ # PW : Wake Island
197
+
198
+ # R - Western North Pacific
199
+ RC : TW
200
+ RJ : JP
201
+ RK : KR
202
+ RO : JP
203
+ RP : PH
204
+
205
+ # S - South America
206
+ SA : AR
207
+ SB : BR
208
+ SC : CL
209
+ SD : BR
210
+ SE : EC
211
+ SF : FK
212
+ SG : PY
213
+ SK : CO
214
+ SL : BO
215
+ SM : SR
216
+ SN : BR
217
+ SO : GF
218
+ SP : PE
219
+ SS : BR
220
+ SU : UY
221
+ SV : VE
222
+ SW : BR
223
+ SY : GY
224
+
225
+ # T - Caribbean
226
+ TA : AG
227
+ TB : BB
228
+ TD : DM
229
+ TF : GP
230
+ TG : GD
231
+ TI : VI
232
+ TJ : PR
233
+ TK : KN
234
+ TL : LC
235
+ # TN : Netherlands Antilles (AN), Aruba (AW)
236
+ TQ : AI
237
+ TR : MS
238
+ TT : TT
239
+ TU : VG
240
+ TV : VC
241
+ TX : BM
242
+
243
+ # U - Russia and former Soviet States
244
+ UA : KZ
245
+ UB : AZ
246
+ UD : AM
247
+ UG : GE
248
+ UK : UA
249
+ UM : BY
250
+ #UT Tajikistan (TJ), Turkmenistan (TM), Uzbekistan (UZ)
251
+
252
+ # V - South Asia (except Afghanistan and Pakistan) and mainland Southeast Asia
253
+ VA : IN
254
+ VC : LK
255
+ VD : KH
256
+ VE : IN
257
+ VG : BD
258
+ VH : HK
259
+ VI : IN
260
+ VL : LA
261
+ VM : MO
262
+ VN : NP
263
+ VO : IN
264
+ VQ : BT
265
+ VR : MV
266
+ VT : TH
267
+ VV : VN
268
+ VY : MM
269
+
270
+ # W - Maritime Southeast Asia (except the Philippines)
271
+ WA : ID
272
+ # WB : Malaysia (MY), Brunei (BN)
273
+ WI : ID
274
+ WM : MY
275
+ WP : TL
276
+ WQ : ID
277
+ WR : ID
278
+ WS : SG
279
+
280
+ # Z - China, Mongolia and North Korea
281
+ ZK : KP
282
+ ZM : MN
@@ -1,17 +1,200 @@
1
- # first term - weather.com non-standard country_code
2
- # second term - standard country_code
1
+ # first term : weather.com non:standard country_code
2
+ # second term : standard country_code
3
3
  #
4
+ # http://ca.weather.yahoo.com/regional/INTL1.html?More%20World%20Cities
5
+ # http://www.theodora.com/country_digraphs.html
6
+ # http://www.unc.edu/~rowlett/units/codes/country.htm
7
+ #
8
+
9
+ AG : DZ
10
+ AN : AD
11
+ AV : AI
12
+ AY : AQ
13
+ AC : AG
14
+ AA : AW
15
+ ### Ascension Island SH : AC (iana code, not iso code)
4
16
  AS : AU
17
+ AU : AT
18
+ AJ : AZ
19
+
5
20
  BF : BS
6
- CS : CR
7
- CH : CN
21
+ BA : BH
22
+ BG : BD
23
+ BO : BY
24
+ BH : BZ
25
+ BN : BJ
26
+ BD : BM
27
+ BC : BW
28
+ BL : BO
29
+ BK : BA
30
+ BX : BN
31
+ BU : BG
32
+ UV : BF
33
+ BY : BI
34
+ VI : VG
35
+
36
+ CB : KH
37
+ CJ : KY
38
+ CT : CF
39
+ CD : TD
8
40
  CI : CL
9
- EI : IE
41
+ CH : CN
42
+ KT : CX
43
+ CN : KM
44
+ CF : CG
45
+ CG : CD
46
+ CW : CK
47
+ CS : CR
48
+ IV : CI
49
+ EZ : CZ
50
+
51
+ DA : DK
52
+ DJ : DJ
53
+ DO : DM
54
+ DR : DO
55
+
56
+ ES : SV
57
+ EK : GQ
58
+ EN : EE
59
+
60
+ FP : PF
61
+
62
+ GB : GA
63
+ GA : GM
64
+ GG : GE
10
65
  GM : DE
66
+ GJ : GD
67
+ GV : GN
68
+ PU : GW
69
+
70
+ HA : HT
11
71
  HO : HN
72
+
73
+ IC : IS
74
+ IZ : IQ
75
+ EI : IE
12
76
  IS : IL
77
+
13
78
  JA : JP
79
+
80
+ KR : KI
81
+ KN : KP
82
+ KS : KR
83
+ KU : KW
84
+
85
+ LG : LV
86
+ LE : LB
87
+ LS : LI
88
+ LI : LR
89
+ LT : LS
90
+ LH : LT
91
+
92
+ MA : MG
93
+ MI : MW
94
+ MB : MQ
95
+ MP : MU
96
+ MF : YT
97
+ MN : MC
98
+ # Montenegro (YI) : ME
99
+ MO : MA
100
+ BM : MM
101
+ MG : MN
102
+
103
+ WA : NA
104
+ NT : AN
105
+ NU: NI
106
+ NG : NE
107
+ NI : NG
108
+
109
+ WE : PS
110
+ PM : PA
111
+ PP : PG
112
+ PA : PY
113
+ RP : PH
14
114
  PO : PT
15
- SP : ES
115
+
116
+ RS : RU
117
+
118
+ SX : GS
119
+ SC : KN
120
+ ST : LC
121
+ TP : ST
122
+ SG : SN
123
+ # Serbia (YI) : RS
124
+ SE : SC
16
125
  SN : SG
126
+ LO : SK
127
+ BP : SB
128
+ SF : ZA
129
+ SP : ES
130
+ CE: LK
131
+ SU : SD
132
+ NS : SR
133
+ WZ : SZ
134
+ SW : SE
135
+ SZ : CH
136
+
137
+ TI : TJ
138
+ TO : TG
139
+ TN : TO
140
+ TD : TT
141
+ TS : TN
142
+ TU : TR
143
+ TX : TM
144
+ TK : TC
145
+
146
+ UP : UA
147
+ UK : GB
148
+
149
+ NH : VU
150
+ VM: VN
151
+
152
+ WI : EH
153
+
154
+ YM : YE
155
+
156
+ ZA : ZM
157
+ ZI : ZW
158
+
159
+ # Aland Islands : AX
160
+ # Bouvet Island : BV
161
+ # British Indian Ocean Territory : IO
162
+ # Cocos (Keeling) Islands : CC
163
+ # East Timor : TL
164
+ # Faroe Islands : FO
165
+ # France, Metropolitan : FX
166
+ # French Southern Territories : TF
167
+ # Great Britain (UK) : GB
168
+ # Heard and McDonald Islands : HM
169
+ # Hong Kong : HK
170
+ # Jersey : JE
171
+ # Macau : MO
172
+ # Montserrat : MS
173
+ # Neutral Zone : NT
174
+ # Niue : NU
175
+ # Norfolk Island : NF
176
+ # Oman : OM
177
+ # Pitcairn : PN
178
+ # Saint Vincent & the Grenadines : VC
179
+ # Samoa : WS
180
+ # St. Helena : SH
181
+ # St. Pierre and Miquelon : PM
182
+ # Svalbard & Jan Mayen Islands : SJ
183
+ # Tokelau : TK
184
+ # US Minor Outlying Islands : UM
185
+ # USSR (former) : SU
186
+ # Vatican City State (Holy See) : VA
187
+ # Wallis and Futuna Islands : WF
188
+ # Yugoslavia (former) : YU
189
+ # (ZR : Zaire) : See CD Congo, Democratic Republic
17
190
 
191
+ # four letter codes
192
+ ### USWQ : ??? Wake Island
193
+ ### Virgin Islands (U.S.) USVI : VI
194
+ ### Puerto Rico USPR : PR
195
+ ### Northern Mariana Islands USMP : MP
196
+ ### Micronesia USFM : FM
197
+ ### Marshall Islands USMH : MH
198
+ ### American Samoa USAS : AS
199
+ ### Palau USPW : PW
200
+ ### Guam USGU : GU
@@ -0,0 +1,94 @@
1
+ /*
2
+ Copyright: Blake Mizerany, www.sinatrarb.com
3
+ Permission Pending
4
+ */
5
+ body
6
+ { color: #000;
7
+ background: #fff;
8
+ font-size: 85%;
9
+ font-family: Helvetica, sans-serif;
10
+ line-height: 130%;
11
+ margin: 0.5cm; }
12
+
13
+ a
14
+ { color: #000;
15
+ text-decoration: underline; }
16
+
17
+ a img
18
+ { border: none; }
19
+
20
+ /* HEADER */
21
+ #head {
22
+ text-align: center;
23
+ }
24
+ #head img {
25
+ vertical-align:middle;
26
+ margin:-10px 0 0 -82px;
27
+ padding:0 15px 0 0;
28
+ border:0;
29
+ }
30
+ #head h1 {
31
+ color: #172533;
32
+ font-family: Georgia, "Times New Roman", 'bitstream vera serif', serif;
33
+ font-size: 500%;
34
+ font-weight: normal;
35
+ letter-spacing: -0.1em;
36
+ line-height: 1;
37
+ margin: 0;
38
+ padding: 20px 0 16px 0;
39
+ }
40
+ #head h1 a, #head h1 a:link, #head h1 a:visited, #head h1 a:hover {
41
+ color: #172533;
42
+ text-decoration: none;
43
+ }
44
+ #head ul {
45
+ font-size:1.1em;
46
+ font-family: 'Lucida Grande', 'lucida sans unicade', Verdana, sans-serif;
47
+ font-weight: normal;
48
+ text-transform: uppercase;
49
+ text-align: center;
50
+ margin: 0;
51
+ padding: 0 40px 10px 40px;
52
+ }
53
+ #head ul li {
54
+ display: inline;
55
+ list-style-type: none;
56
+ padding: 0 1.5em 0 0;
57
+ }
58
+ #head ul a, #head ul a:link, #head ul a:visited {
59
+ color: #1d2e40;
60
+ text-decoration: none;
61
+ }
62
+ #head ul a:hover {
63
+ color: #0e1c29;
64
+ text-decoration:underline
65
+ }
66
+
67
+
68
+
69
+ h2 {
70
+ font-size: 1.5em;
71
+ letter-spacing: -0.05em;
72
+ padding: 1.15em 0 0 0;
73
+ margin: 1.25em 0 0.25em 0;
74
+ border-top: 1mm solid #999;
75
+ }
76
+
77
+ h3 {
78
+ font-size: 1.1em;
79
+ font-weight:bold;
80
+ margin: 1.8em 0 0.25em 0;
81
+ letter-spacing: -0.05em;
82
+ }
83
+
84
+ h3 a {
85
+ text-decoration:underline;
86
+ }
87
+
88
+
89
+
90
+ pre {
91
+ border: 1pt solid #ccc;
92
+ padding: 0.5em;
93
+ white-space: pre-wrap; white-space: -moz-pre-wrap !important;
94
+ }
@@ -0,0 +1,64 @@
1
+ /*
2
+ Copyright: Blake Mizerany, www.sinatrarb.com
3
+ Permission Pending
4
+ */
5
+ .highlight { background: #ffffff; }
6
+ .highlight .c { color: #999988; font-style: italic } /* Comment */
7
+ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
8
+ .highlight .k { font-weight: bold; } /* Keyword */
9
+ .highlight .o { font-weight: bold } /* Operator */
10
+ .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
11
+ .highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
12
+ .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
13
+ .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
14
+ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
15
+ .highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
16
+ .highlight .ge { font-style: italic } /* Generic.Emph */
17
+ .highlight .gr { color: #aa0000 } /* Generic.Error */
18
+ .highlight .gh { color: #999999 } /* Generic.Heading */
19
+ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
20
+ .highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
21
+ .highlight .go { color: #888888 } /* Generic.Output */
22
+ .highlight .gp { color: #555555 } /* Generic.Prompt */
23
+ .highlight .gs { font-weight: bold } /* Generic.Strong */
24
+ .highlight .gu { color: #aaaaaa } /* Generic.Subheading */
25
+ .highlight .gt { color: #aa0000 } /* Generic.Traceback */
26
+ .highlight .kc { font-weight: bold } /* Keyword.Constant */
27
+ .highlight .kd { font-weight: bold } /* Keyword.Declaration */
28
+ .highlight .kp { font-weight: bold } /* Keyword.Pseudo */
29
+ .highlight .kr { font-weight: bold } /* Keyword.Reserved */
30
+ .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
31
+ .highlight .m { color: #009999 } /* Literal.Number */
32
+ .highlight .s { color: #444 } /* Literal.String */
33
+ .highlight .na { color: #008080 } /* Name.Attribute */
34
+ .highlight .nb { color: #0086B3 } /* Name.Builtin */
35
+ .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
36
+ .highlight .no { color: #008080 } /* Name.Constant */
37
+ .highlight .ni { color: #800080 } /* Name.Entity */
38
+ .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
39
+ .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
40
+ .highlight .nn { color: #555555 } /* Name.Namespace */
41
+ .highlight .nt { color: #000080 } /* Name.Tag */
42
+ .highlight .nv { color: #008080 } /* Name.Variable */
43
+ .highlight .ow { font-weight: bold } /* Operator.Word */
44
+ .highlight .w { color: #bbbbbb } /* Text.Whitespace */
45
+ .highlight .mf { color: #009999 } /* Literal.Number.Float */
46
+ .highlight .mh { color: #009999 } /* Literal.Number.Hex */
47
+ .highlight .mi { color: #009999 } /* Literal.Number.Integer */
48
+ .highlight .mo { color: #009999 } /* Literal.Number.Oct */
49
+ .highlight .sb { color: #444 } /* Literal.String.Backtick */
50
+ .highlight .sc { color: #444 } /* Literal.String.Char */
51
+ .highlight .sd { color: #444 } /* Literal.String.Doc */
52
+ .highlight .s2 { color: #444 } /* Literal.String.Double */
53
+ .highlight .se { color: #444 } /* Literal.String.Escape */
54
+ .highlight .sh { color: #444 } /* Literal.String.Heredoc */
55
+ .highlight .si { color: #444 } /* Literal.String.Interpol */
56
+ .highlight .sx { color: #444 } /* Literal.String.Other */
57
+ .highlight .sr { color: #009926 } /* Literal.String.Regex */
58
+ .highlight .s1 { color: #444 } /* Literal.String.Single */
59
+ .highlight .ss { color: #990073 } /* Literal.String.Symbol */
60
+ .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
61
+ .highlight .vc { color: #008080 } /* Name.Variable.Class */
62
+ .highlight .vg { color: #008080 } /* Name.Variable.Global */
63
+ .highlight .vi { color: #008080 } /* Name.Variable.Instance */
64
+ .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
@@ -0,0 +1,10 @@
1
+ <h1 id='about'>About</h1>
2
+
3
+ <p>Barometer was designed and developed by <strong>Mark G</strong> (attack).</p>
4
+
5
+ <p>Special thanks to the following individuals:</p>
6
+
7
+ <ul>
8
+ <li><a href='http://sinatra.github.com/'>Blake Mizerany</a> (bmizerany) for Sinatra and
9
+ the layout for this demo app (permission pending).</li>
10
+ </ul>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attack-barometer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark G
@@ -86,9 +86,13 @@ files:
86
86
  - lib/demometer/public
87
87
  - lib/demometer/public/css
88
88
  - lib/demometer/public/css/master.css
89
+ - lib/demometer/public/css/print.css
90
+ - lib/demometer/public/css/syntax.css
89
91
  - lib/demometer/public/images
90
92
  - lib/demometer/public/images/go.png
93
+ - lib/demometer/public/images/link-out.gif
91
94
  - lib/demometer/views
95
+ - lib/demometer/views/about.erb
92
96
  - lib/demometer/views/contributing.erb
93
97
  - lib/demometer/views/forecast.erb
94
98
  - lib/demometer/views/index.erb