vatsim_online 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ ### v. 0.5.3 - 30 September 2012
6
+
7
+ * fixed bug with exceptions on missing ATC remark
8
+
9
+ ### v. 0.5.2 - 29 September 2012
10
+
11
+ * fixed permissions bug on UNIX systems
12
+
5
13
  ### v. 0.5.1 - 23 September 2012
6
14
 
7
15
  * bugfixes
data/README.md CHANGED
@@ -292,6 +292,10 @@ current algorithm does not evaluate enroute flights.
292
292
 
293
293
  ## Changelog
294
294
 
295
+ ### v. 0.5.3 - 30 September 2012
296
+
297
+ * fixed bug with exceptions on missing ATC remark
298
+
295
299
  ### v. 0.5.2 - 29 September 2012
296
300
 
297
301
  * fixed permissions bug on UNIX systems
@@ -92,7 +92,7 @@ module VatsimTools
92
92
 
93
93
  def construct_atis_message(raw_atis)
94
94
  message = raw_atis.gsub(/[\^]/, '<br />')
95
- message = message[message.index('>')+1...message.length]
95
+ message.index('>') ? message = message[message.index('>')+1...message.length] : message = "No published remark"
96
96
  end
97
97
 
98
98
  end
@@ -1,3 +1,3 @@
1
1
  module VatsimOnline
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
@@ -315,9 +315,9 @@ NAX748:1085731:Inge Andreas Sivertsen EKRK:PILOT::63.45518:10.91544:63:0:B738/Q:
315
315
  NTL3AN:1094567:Soner Dogruer:PILOT::38.34147:31.68269:31539:372:T/B738/F:0:LTAI:FL350:UNNT:EUROPE-C2:100:1:2000:::2:I:0:1005:0:0:0:0:://V/ CALLSIGN ANATOLIA// AIRAC 1207:DAMLA UW77 BAG UT61 SIN UW96 ODIRA G487 ROKMO R710 ZG G487 DAKIN B944 GOLIM R201 NULSI:0:0:0:0:::20120722095953:24:29.79:1008:
316
316
  NWS49:1201917:Iskanderov Vahid UUEE:PILOT::-1.45491:37.35020:17868:418:T/B763/F:490:HKJK:FL390:WIII:EUROPE-C2:100:1:2000:::2:I:0:1018:0:0:0:0:::KAPAL UG658 PRA N628 ODIRU M766 PAGAI G461 BIDAK:0:0:0:0:::20120722100220:98:30.206:1022:
317
317
  NY_CAM_APP:1028051:Antoine Saccone:ATC:127.400:40.63975:-73.77893:0:::0::::USA-E:100:4::5:150::::::::::::::::$ voice.nyartcc.org/ZNY_2G^New York Approach^Radar services for KJFK, KFRG, KISP areas:20120722101228:20120722092621::::
318
+ NZAA_TWR:899884:Ray Lang /O:ATC:118.700:-37.00463:174.81363:0:::0::::OCEANIA:100:11::4:50::::::::::::::::$ rw1.vatpac.org/nzaa_twr:20120722101523:20120722081340::::
318
319
  NZAA_ATIS:899884:Ray Lang /O:ATC:127.800:-37.00567:174.79031:0:::0::::OCEANIA:100:11::4:0::::::::::::::::$ rw1.vatpac.org/nzaa_atis^AUCKLAND INFORMATION VICTOR issued at 0925Z^expect ILS approach RWY 05R WND 050 at 10 VIS 15 KM moderate^rain CLD few 800 FT BKN 1200 FT TMP 15 DP 14 QNH 1013^on first contact with ground or tower notify receipt of VICTOR:20120722101958:20120722081732::::
319
320
  NZAA_OBS:998627:David Downs:ATC:199.998:-37.00567:174.79031:0:::0::::EUROPE-CW2:100:5::0:40::::::::::::::::Auckland Control:20120722102127:20120722100551::::
320
- NZAA_TWR:899884:Ray Lang /O:ATC:118.700:-37.00463:174.81363:0:::0::::OCEANIA:100:11::4:50::::::::::::::::$ rw1.vatpac.org/nzaa_twr:20120722101523:20120722081340::::
321
321
  NZCH-R_CTR:1141056:Alex Burrow:ATC:126.000:-37.00463:174.81363:0:::0::::OCEANIA:100:5::6:600::::::::::::::::$ rw1.vatpac.org/nzch-r_ctr^Christchurch Control^Extended services available:20120722101228:20120722072505::::
322
322
  NZZO_FSS:811451:Mark Richards:ATC:128.900:-26.83917:-179.05733:0:::0::::OCEANIA:100:12::1:600::::::::::::::::$ rw1.vatpac.org/nzzo_fss^NZZO_FSS^Callsign Auckland Radio:20120722101656:20120722100116::::
323
323
  OAK_CTR:815543:Matt Chicoine:ATC:132.200:37.61900:-122.37483:0:::0::::USA-W:100:7::6:400::::::::::::::::$ rw.liveatc.net/OAK_CTR:20120722101321:20120722071012::::
@@ -124,6 +124,14 @@ describe VatsimTools::Station do
124
124
  station.atis.should eq("$ voice2.vacc-sag.org/lfmn_app. Nice Approach. Charts at www.tinyurl.com/chartsfr. Visit www.vatfrance.org")
125
125
  station.atis_message.should eq("Nice Approach<br />Charts at www.tinyurl.com/chartsfr<br />Visit www.vatfrance.org")
126
126
  end
127
+
128
+ it "should handle no ATC remark" do
129
+ gem_data_file
130
+ icao = "NZAA"
131
+ station = VatsimTools::StationParser.new(icao).sorted_station_objects[:atc].first
132
+ station.atis.should eq("$ rw1.vatpac.org/nzaa_twr")
133
+ station.atis_message.should eq("No published remark")
134
+ end
127
135
  end
128
136
 
129
137
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vatsim_online
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-29 00:00:00.000000000 Z
12
+ date: 2012-09-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec