fossil 0.3.36 → 0.3.37

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.36
1
+ 0.3.37
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.3.36"
8
+ s.version = "0.3.37"
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-04-12}
12
+ s.date = %q{2010-04-14}
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 = [
@@ -749,7 +749,7 @@ class TripLeg < Sequel::Model(:'trip legs')
749
749
  "#{arrival_icao_val} #{arrival_airport__name} #{arrival_airport__city} ,#{arrival_airport__state_abbreviation}"
750
750
  end
751
751
 
752
- def trip_total_statute_miles
753
- trip__total_statute_miles.to_f/10.0
752
+ def total_trip_statute_miles
753
+ trip__total_statute_miles.to_f/10.0
754
754
  end
755
755
  end
@@ -74,7 +74,7 @@ describe TripLeg do
74
74
  it "when leg has some in range ( and put lead pax name first )" do
75
75
  stub(@t).passengers {[@p1, @p2, @p3]}
76
76
  tl = TripLeg.new(:trip_number=>100,:leg_number=>1, :trip=>@t)
77
- tl.passenger_list.should == "eric (lead pax) / rob"
77
+ tl.passenger_list.should == "eric (lead pax) : rob"
78
78
  end
79
79
 
80
80
  it "when leg has 1 in range" do
@@ -90,4 +90,10 @@ describe TripLeg do
90
90
  end
91
91
 
92
92
  end
93
+
94
+ it "method total_trip_statute_miles returns a value" do
95
+ @t = Trip.new(:total_statute_miles=>100)
96
+ tl = TripLeg.new(:trip_number=>100,:leg_number=>3, :trip=>@t)
97
+ p tl.total_trip_statute_miles
98
+ end
93
99
  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.3.36
4
+ version: 0.3.37
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-04-12 00:00:00 -07:00
12
+ date: 2010-04-14 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency