fossil 0.4.10 → 0.4.12

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.10
1
+ 0.4.12
data/fossil.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fossil}
8
- s.version = "0.4.10"
8
+ s.version = "0.4.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Patrick Lardin, Daniel Sudol"]
@@ -734,11 +734,11 @@ class TripLeg < Sequel::Model(:'trip legs')
734
734
  ((verified? or flight_time_actual > 0) and cancel_code == 0)
735
735
  end
736
736
 
737
- # flight explorer is continually updating the land time for a flight, so
738
-
737
+ # Flight explorer is continually updating the land time for a flight, so its really
738
+ # not possible to tell if a flight is completed by checking that the arrival date
739
+ # or time is no longer 0/1440.
739
740
  def is_completed_leg?
740
-
741
- is_flown? and (land_time_act_gmt!=1440 and land_time_act_gmt!=0)
741
+ (verified? or Time.now.utc > actual_arrival_date_time_gmt) and cancel_code == 0
742
742
  end
743
743
 
744
744
  def departed?
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 10
9
- version: 0.4.10
8
+ - 12
9
+ version: 0.4.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Patrick Lardin, Daniel Sudol