fossil 0.2.7 → 0.2.8

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/fossil.gemspec +2 -2
  3. data/lib/models/trip_leg.rb +60 -0
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.2.8
data/fossil.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fossil}
8
- s.version = "0.2.7"
8
+ s.version = "0.2.8"
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"]
12
- s.date = %q{2010-01-25}
12
+ s.date = %q{2010-01-26}
13
13
  s.description = %q{Access FOS/betrieve db with this Sequel based orm wrapper}
14
14
  s.email = %q{plardin@xojet.com}
15
15
  s.files = [
@@ -624,4 +624,64 @@ class TripLeg < Sequel::Model(:'trip legs')
624
624
  column_alias :key8, :'key8'
625
625
  #### END GENERATED SECTION ####
626
626
 
627
+ # Column views
628
+ column_view :dept_date_act_gmt, :date, :actual_departure_date_gmt
629
+ column_view :dept_time_act_gmt, :time, :actual_departure_time_gmt
630
+ column_def_datetime :actual_departure_date_time_gmt, :'dept date act gmt', :'dept time act gmt'
631
+
632
+ column_view :arrival_date_gmt, :date, :actual_arrival_date_gmt
633
+ column_view :arriv_time_act_gmt, :time, :actual_arrival_time_gmt
634
+ column_def_datetime :actual_arrival_date_time_gmt, :'arr date act gmt', :'arriv time act gmt'
635
+
636
+ column_view :dept_date_act_local, :date, :actual_departure_date_local
637
+ column_view :dept_time_act_local, :time, :actual_departure_time_local
638
+ column_def_datetime :actual_departure_date_time_local, :'dept date act local', :'dept time act local'
639
+
640
+ column_view :arrival_date_local, :date, :actual_arrival_date_local
641
+ column_view :arriv_time_act_local, :time, :actual_arrival_time_local
642
+ column_def_datetime :actual_arrival_date_time_local, :'arr date act local', :'arriv time act local'
643
+
644
+ column_view :dept_date_gmt, :date, :planned_departure_date_gmt
645
+ column_view :etd_gmt, :time, :planned_departure_time_gmt
646
+ column_def_datetime :planned_departure_date_time_gmt, :'dept date gmt', :'etd - gmt'
647
+
648
+ column_view :depart_date_local, :date, :planned_departure_date_local
649
+ column_view :etd_local, :time, :planned_departure_time_local
650
+ column_def_datetime :planned_departure_date_time_local, :'depart date - local', :'etd - local'
651
+
652
+ column_view :arrival_date_gmt, :date, :planned_arrival_date_gmt
653
+ column_view :eta_gmt, :time, :planned_arrival_time_gmt
654
+ column_def_datetime :planned_arrival_date_time_gmt, :'arrival date gmt', :'eta - gmt'
655
+
656
+ column_view :arrival_date_local, :date, :planned_arrival_date_local
657
+ column_view :eta_local, :time, :planned_arrival_time_local
658
+ column_def_datetime :planned_arrival_date_time_local, :'arrival date - local', :'eta - local'
659
+
660
+ column_view :dept_date_act_home, :date, :actual_departure_date_base
661
+ column_view :depart_time_act_home, :time, :actual_departure_time_base
662
+ column_def_datetime :actual_departure_date_time_base_old, :'dept date act home', :'depart time act home'
663
+ def actual_departure_date_time_base() actual_departure_date_time_gmt + (home_tz_gmt_offset*360); end
664
+
665
+ column_view :arr_date_act_home, :date, :actual_arrival_date_base
666
+ column_view :arrival_time_act_hom, :time, :actual_arrival_time_base
667
+ column_def_datetime :actual_arrival_date_time_base_old, :'arr date act home', :'arrival time act hom'
668
+ def actual_arrival_date_time_base() actual_arrival_date_time_gmt + (home_tz_gmt_offset*360); end
669
+
670
+ column_view :ete, :time
671
+ column_view :eft, :time
672
+ column_view :flight_time_actual, :time, :aft_time
673
+ column_view :block_time_actual, :time, :abt_time
674
+ column_view :t_o_time_act_gmt, :time, :actual_takeoff_time_gmt
675
+ column_view :land_time_act_gmt, :time, :actual_land_time_gmt
676
+ column_view :delay_1_time, :time, :delay_1_duration
677
+ column_view :delay_2_time, :time, :delay_2_duration
678
+
679
+
680
+ def pilot_code(type)
681
+ return '' unless type
682
+ cl = crew_legs.find{|cl| cl.position_code_code == type.to_s.upcase }
683
+ return cl ? cl.crew : ''
684
+ end
685
+ def pic; pilot_code(:pic); end
686
+ def sic; pilot_code(:sic); end
627
687
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fossil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Lardin, Daniel Sudol
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-25 00:00:00 -06:00
12
+ date: 2010-01-26 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency