fossil 0.4.7 → 0.4.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.
- data/VERSION +1 -1
- data/fossil.gemspec +6 -7
- data/lib/models/trip_leg.rb +14 -1
- metadata +9 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.8
|
data/fossil.gemspec
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
|
-
# DO NOT EDIT THIS FILE
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
2
|
+
# DO NOT EDIT THIS FILE
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{fossil}
|
|
8
|
-
s.version = "0.4.
|
|
8
|
+
s.version = "0.4.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-
|
|
12
|
+
s.date = %q{2010-07-08}
|
|
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 = [
|
|
@@ -149,7 +149,7 @@ Gem::Specification.new do |s|
|
|
|
149
149
|
s.homepage = %q{}
|
|
150
150
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
151
151
|
s.require_paths = ["lib"]
|
|
152
|
-
s.rubygems_version = %q{1.3.
|
|
152
|
+
s.rubygems_version = %q{1.3.7}
|
|
153
153
|
s.summary = %q{Sequel orm wrapper to FOS}
|
|
154
154
|
s.test_files = [
|
|
155
155
|
"spec/hash_extentions_spec.rb",
|
|
@@ -175,7 +175,7 @@ Gem::Specification.new do |s|
|
|
|
175
175
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
176
176
|
s.specification_version = 3
|
|
177
177
|
|
|
178
|
-
if Gem::Version.new(Gem::
|
|
178
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
179
179
|
s.add_runtime_dependency(%q<sequel>, ["= 3.12.0"])
|
|
180
180
|
s.add_runtime_dependency(%q<activesupport>, ["= 2.3.5"])
|
|
181
181
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
|
@@ -190,4 +190,3 @@ Gem::Specification.new do |s|
|
|
|
190
190
|
s.add_dependency(%q<rspec>, [">= 0"])
|
|
191
191
|
end
|
|
192
192
|
end
|
|
193
|
-
|
data/lib/models/trip_leg.rb
CHANGED
|
@@ -721,7 +721,20 @@ class TripLeg < Sequel::Model(:'trip legs')
|
|
|
721
721
|
end
|
|
722
722
|
|
|
723
723
|
def is_deadhead?
|
|
724
|
-
|
|
724
|
+
deadhead==1 or pax_count==0
|
|
725
|
+
# (status==1 or verify_date > 0) and (deadhead==1 or pax_count==0) and [107, 115, 108, 104].include? leg_type_code
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
def is_completed_leg?
|
|
729
|
+
is_flown? and (land_time_act_gmt!=1440 and land_time_act_gmt!=0)
|
|
730
|
+
end
|
|
731
|
+
|
|
732
|
+
def departed?
|
|
733
|
+
(dept_time_act_gmt!=0 and dept_time_act_gmt!=1440)
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
def delayed?
|
|
737
|
+
Time.now.utc > planned_departure_date_time_gmt and !departed?
|
|
725
738
|
end
|
|
726
739
|
|
|
727
740
|
# sort on lead_pax value to lead pax = 1 is first and the lead_pax values of 0 are all after
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 4
|
|
8
|
-
-
|
|
9
|
-
version: 0.4.
|
|
8
|
+
- 8
|
|
9
|
+
version: 0.4.8
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Patrick Lardin, Daniel Sudol
|
|
@@ -14,13 +14,14 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-
|
|
17
|
+
date: 2010-07-08 00:00:00 -07:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: sequel
|
|
22
22
|
prerelease: false
|
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
24
|
+
none: false
|
|
24
25
|
requirements:
|
|
25
26
|
- - "="
|
|
26
27
|
- !ruby/object:Gem::Version
|
|
@@ -35,6 +36,7 @@ dependencies:
|
|
|
35
36
|
name: activesupport
|
|
36
37
|
prerelease: false
|
|
37
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
|
39
|
+
none: false
|
|
38
40
|
requirements:
|
|
39
41
|
- - "="
|
|
40
42
|
- !ruby/object:Gem::Version
|
|
@@ -49,6 +51,7 @@ dependencies:
|
|
|
49
51
|
name: rspec
|
|
50
52
|
prerelease: false
|
|
51
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
|
54
|
+
none: false
|
|
52
55
|
requirements:
|
|
53
56
|
- - ">="
|
|
54
57
|
- !ruby/object:Gem::Version
|
|
@@ -208,6 +211,7 @@ rdoc_options:
|
|
|
208
211
|
require_paths:
|
|
209
212
|
- lib
|
|
210
213
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
214
|
+
none: false
|
|
211
215
|
requirements:
|
|
212
216
|
- - ">="
|
|
213
217
|
- !ruby/object:Gem::Version
|
|
@@ -215,6 +219,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
215
219
|
- 0
|
|
216
220
|
version: "0"
|
|
217
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
|
+
none: false
|
|
218
223
|
requirements:
|
|
219
224
|
- - ">="
|
|
220
225
|
- !ruby/object:Gem::Version
|
|
@@ -224,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
224
229
|
requirements: []
|
|
225
230
|
|
|
226
231
|
rubyforge_project:
|
|
227
|
-
rubygems_version: 1.3.
|
|
232
|
+
rubygems_version: 1.3.7
|
|
228
233
|
signing_key:
|
|
229
234
|
specification_version: 3
|
|
230
235
|
summary: Sequel orm wrapper to FOS
|