fossil 0.5.21 → 0.5.22

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.5.21
1
+ 0.5.22
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fossil}
8
- s.version = "0.5.21"
8
+ s.version = "0.5.22"
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-12-20}
12
+ s.date = %q{2010-12-21}
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.extra_rdoc_files = [
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  "VERSION",
22
22
  "fossil.gemspec",
23
23
  "lib/dbr_models/group_cost.rb",
24
+ "lib/dbr_models/personnel.rb",
24
25
  "lib/dbr_models/quote.rb",
25
26
  "lib/dbr_models/trip.rb",
26
27
  "lib/dbr_models/trip_leg.rb",
@@ -0,0 +1,3 @@
1
+ class Personnel
2
+ one_to_many :ac_qualifications, :class=>:ACQualification, :key=>:personnel_id, :primary_key=>:id
3
+ end
@@ -88,4 +88,5 @@ class ACQualification < Sequel::Model(:'a/c qualification')
88
88
  column_alias :key2, :'key2'
89
89
  #### END GENERATED SECTION ####
90
90
 
91
+ code_association :pilot_rating, :specialqual3, :special_qualification
91
92
  end
@@ -189,4 +189,5 @@ class Personnel < Sequel::Model(:'personnel')
189
189
  column_alias :key9, :'key9'
190
190
  #### END GENERATED SECTION ####
191
191
 
192
+ o_to_n :ac_qualifications, :class=>:ACQualification, :prefix=>'personnel'
192
193
  end
@@ -7,10 +7,18 @@ require 'pp'
7
7
 
8
8
  DB = Sequel.fos('fosprod', :loggers=>[Logger.new($stdout)])
9
9
  #DB = Sequel.fos('flyos', :loggers=>[Logger.new($stdout)])
10
- CrewDuty.db = DB
10
+ #CrewDuty.db = DB
11
11
 
12
- date = Date.today - 1
13
- pp CrewDuty.find_crew_duty_in_time_range(date, date).collect{|v| [v.duty_start_time.to_s, v.duty_end_time.to_s, v.amended, v.amended_date, v.verified_date] }
12
+ #date = Date.today - 1
13
+ #pp CrewDuty.find_crew_duty_in_time_range(date, date).collect{|v| [v.duty_start_time.to_s, v.duty_end_time.to_s, v.amended, v.amended_date, v.verified_date] }
14
+
15
+ [Personnel,ACQualification,Code].each{|m| m.db=DB}
16
+ p ACQualification.first
17
+ p Personnel.first(:employee_id=>'COXD').ac_qualifications.find{|ac| ac.aircraft_type_id='C750'}
18
+
19
+ #ACQualification.filter(:aircraft_type_id=>'C750')
20
+ #p per.ac_qualifications.first.aircraft_type_id
21
+ # collect{|v| [v.aircraft_type_id, v.pilot_rating__code]}
14
22
 
15
23
  #[Personnel,Airport,TripLeg,AirportFbo].each{|m| m.db=DB}
16
24
  #p Personnel.first(:employee_name.like('%chmo%'))
@@ -27,7 +35,7 @@ pp CrewDuty.find_crew_duty_in_time_range(date, date).collect{|v| [v.duty_start_t
27
35
 
28
36
  #p AirportFbo.filter(:icao=>'KSFO').count
29
37
  #DB.execute('Update "trip legs" set "lunch comment" = \'hi\' where "trip number" = 83100 and "leg number" = 3')
30
- #DB.execute('Update "trip legs" set "pax count" = 6 where "trip number" = 62 and "leg number" = 1 ')
38
+ #DB.execute('Update "trip legs" set "pax count" = 4 where "trip number" = 62 and "leg number" = 1 ')
31
39
  #tl = TripLeg.filter(:trip_number=>62,:leg_number=>1).first#eager_graph(:arrival_fbo).all.first
32
40
  #p tl.fos_id
33
41
  #p tl.pax_count
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 21
9
- version: 0.5.21
8
+ - 22
9
+ version: 0.5.22
10
10
  platform: ruby
11
11
  authors:
12
12
  - Patrick Lardin, Daniel Sudol
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-20 00:00:00 -08:00
17
+ date: 2010-12-21 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -72,6 +72,7 @@ files:
72
72
  - VERSION
73
73
  - fossil.gemspec
74
74
  - lib/dbr_models/group_cost.rb
75
+ - lib/dbr_models/personnel.rb
75
76
  - lib/dbr_models/quote.rb
76
77
  - lib/dbr_models/trip.rb
77
78
  - lib/dbr_models/trip_leg.rb