fossil 0.4.14 → 0.4.15

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@
9
9
  gemspec.description = "Access FOS/betrieve db with this Sequel based orm wrapper"
10
10
  gemspec.email = "plardin@xojet.com"
11
11
  gemspec.homepage = ""
12
- gemspec.add_dependency('sequel', '= 3.12.0')
12
+ gemspec.add_dependency('sequel', '= 3.13.0')
13
13
  gemspec.add_dependency('activesupport', '= 2.3.5')
14
14
  gemspec.add_development_dependency('rspec')
15
15
  gemspec.authors = ["Patrick Lardin, Daniel Sudol"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.14
1
+ 0.4.15
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.4.14"
8
+ s.version = "0.4.15"
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-08-02}
12
+ s.date = %q{2010-08-03}
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 = [
@@ -178,16 +178,16 @@ Gem::Specification.new do |s|
178
178
  s.specification_version = 3
179
179
 
180
180
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
181
- s.add_runtime_dependency(%q<sequel>, ["= 3.12.0"])
181
+ s.add_runtime_dependency(%q<sequel>, ["= 3.13.0"])
182
182
  s.add_runtime_dependency(%q<activesupport>, ["= 2.3.5"])
183
183
  s.add_development_dependency(%q<rspec>, [">= 0"])
184
184
  else
185
- s.add_dependency(%q<sequel>, ["= 3.12.0"])
185
+ s.add_dependency(%q<sequel>, ["= 3.13.0"])
186
186
  s.add_dependency(%q<activesupport>, ["= 2.3.5"])
187
187
  s.add_dependency(%q<rspec>, [">= 0"])
188
188
  end
189
189
  else
190
- s.add_dependency(%q<sequel>, ["= 3.12.0"])
190
+ s.add_dependency(%q<sequel>, ["= 3.13.0"])
191
191
  s.add_dependency(%q<activesupport>, ["= 2.3.5"])
192
192
  s.add_dependency(%q<rspec>, [">= 0"])
193
193
  end
@@ -861,7 +861,7 @@ class TripLeg < Sequel::Model(:'trip legs')
861
861
  AND (TL."TRIP NUMBER" = ? AND TL."LEG NUMBER" = ?)
862
862
  ORDER BY AF."EFFECTIVE DATE" DESC
863
863
  SQL
864
- return DB.fetch(sql, trip_number, leg_number).first
864
+ return db.fetch(sql, trip_number, leg_number).first
865
865
  end
866
866
 
867
867
  def build_fuel_tier_hash airport_fuel # creates a hash table of the qty and fuel prices for each tier
@@ -140,6 +140,23 @@ describe TripLeg do
140
140
  end
141
141
 
142
142
  describe "fuel passdown data columns" do
143
+
144
+ it "query fuel info from real trip leg actually works" do
145
+ set_fos_db([TripLeg,AirportFuel,FlightLogExpense])
146
+ # trip_leg = TripLeg.first(:trip_number=>67579,:leg_number=>3)
147
+ trip_leg = TripLeg.select(:'trip legs__trip_number').
148
+ filter(:trip_number=>67579,:leg_number=>3).
149
+ inner_join(:flight_log_expense,)
150
+ first
151
+ p trip_leg.trip_number
152
+ # p trip_leg.dept_fuel_quantity
153
+ # p trip_leg.dept_fuel_cost
154
+ # p trip_leg.dept_fuel_rate
155
+ # p trip_leg.arr_fuel_quantity
156
+ # p trip_leg.arr_fuel_cost
157
+ # p trip_leg.arr_fuel_rate
158
+ end
159
+
143
160
  describe "with airport fuel data" do
144
161
  before :each do
145
162
  #expect the method airport_fuel_lookup to be called and return a prepopulated hash
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 14
9
- version: 0.4.14
8
+ - 15
9
+ version: 0.4.15
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-08-02 00:00:00 -07:00
17
+ date: 2010-08-03 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -26,9 +26,9 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  segments:
28
28
  - 3
29
- - 12
29
+ - 13
30
30
  - 0
31
- version: 3.12.0
31
+ version: 3.13.0
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency