flightstats 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ class FlightStats::DataFeed::File::SaxParser
11
11
  def to_time(string)
12
12
  return nil if string.nil?
13
13
  Time.utc(string[0..3],string[5..6],string[8..9],
14
- string[11..12],string[14..15],string[17..18],string[20..22])
14
+ string[11..12],string[14..15],string[17..18],string[20..22]+'000')
15
15
  end
16
16
 
17
17
  def on_start_element_ns(name, attributes, prefix, uri, namespaces)
@@ -44,7 +44,7 @@ class FlightStats::DataFeed::FileTest < Test::Unit::TestCase
44
44
  end
45
45
  end
46
46
  update = changes[0]
47
- assert_equal(Time.utc(2009,6,8,20,30,0,43), update.timestamp)
47
+ assert_equal(Time.utc(2009,6,8,20,30,0,43000), update.timestamp) # Make sure time is still in milliseconds
48
48
  assert_equal('ASDI', update.source)
49
49
  assert_equal('STATUS-Active', update.event)
50
50
  assert_equal('ARD- New=06/08/09 16:24, ERD- Old=06/08/09 16:26 New=06/08/09 16:24, ERA- Old=06/08/09 17:45 New=06/08/09 17:42, STATUS- Old=S New=A', update.data_updated)
@@ -85,7 +85,7 @@ class FlightStats::DataFeed::FileTest < Test::Unit::TestCase
85
85
  assert_equal([], update.flight.codeshares)
86
86
 
87
87
  update = changes[6]
88
- assert_equal(Time.utc(2009,6,8,20,27,1,110), update.timestamp)
88
+ assert_equal(Time.utc(2009,6,8,20,27,1,110000), update.timestamp)
89
89
  assert_equal('Airline (CO)', update.source)
90
90
  assert_equal('Time Adjustment', update.event)
91
91
  assert_equal('EGD- New=06/08/09 19:35, EGA- New=06/08/09 23:35, DGATE- New=C-30', update.data_updated)
@@ -160,7 +160,7 @@ class FlightStats::DataFeed::FileTest < Test::Unit::TestCase
160
160
  end
161
161
 
162
162
  update = changes[0]
163
- assert_equal(Time.utc(2009,11,1,8,37,0,43), update.timestamp)
163
+ assert_equal(Time.utc(2009,11,1,8,37,0,43000), update.timestamp)
164
164
  assert_equal('ASDI', update.source)
165
165
  assert_equal('STATUS-Active', update.event)
166
166
  assert_equal('ARD- New=06/08/09 16:24, ERD- Old=06/08/09 16:26 New=06/08/09 16:24, ERA- Old=06/08/09 17:45 New=06/08/09 17:42, STATUS- Old=S New=A', update.data_updated)
@@ -201,7 +201,7 @@ class FlightStats::DataFeed::FileTest < Test::Unit::TestCase
201
201
  assert_equal([], update.flight.codeshares)
202
202
 
203
203
  update = changes[6]
204
- assert_equal(Time.utc(2009,11,1,9,37,1,110), update.timestamp)
204
+ assert_equal(Time.utc(2009,11,1,9,37,1,110000), update.timestamp)
205
205
  assert_equal('Airline (CO)', update.source)
206
206
  assert_equal('Time Adjustment', update.event)
207
207
  assert_equal('EGD- New=06/08/09 19:35, EGA- New=06/08/09 23:35, DGATE- New=C-30', update.data_updated)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - FlightCaster