fossil 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fossil.gemspec +1 -1
- data/lib/dbr_models/trip_leg.rb +0 -1
- data/lib/sequel/core_patch.rb +1 -2
- data/spec/sequel/core_patch_spec.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.6
|
data/fossil.gemspec
CHANGED
data/lib/dbr_models/trip_leg.rb
CHANGED
@@ -20,5 +20,4 @@ class TripLeg
|
|
20
20
|
many_to_one :arrival_transport_comment, :class=>:Comment, :key=>:arrival_transport_comment_id
|
21
21
|
many_to_one :departure_general_comment, :class=>:Comment, :key=>:departure_general_comment_id
|
22
22
|
many_to_one :arrival_general_comment, :class=>:Comment, :key=>:arrival_general_comment_id
|
23
|
-
|
24
23
|
end
|
data/lib/sequel/core_patch.rb
CHANGED
@@ -11,8 +11,7 @@ module Sequel
|
|
11
11
|
db = Sequel.mysql(opts)
|
12
12
|
db.extend(MySql::Pervasive::DatabaseMethods)
|
13
13
|
# require the dbr libs
|
14
|
-
|
15
|
-
Dir.glob(File.join(dbr_lib_dir , '*.rb')).each{|f| require f}
|
14
|
+
Dir.glob(File.join(File.dirname(__FILE__),'..','dbr_models' , '*.rb')).each{|f| require_relative f}
|
16
15
|
db
|
17
16
|
end
|
18
17
|
|
@@ -28,10 +28,10 @@ describe Sequel do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
it "actually works to see dbr tables" do
|
31
|
-
TripLeg.db=@db
|
31
|
+
[TripLeg,Aircraft,Code,CrewLeg].each{|model| model.db=@db}
|
32
32
|
TripLeg.first.should_not be nil
|
33
|
-
Aircraft.db=@db
|
34
33
|
TripLeg.first.aircraft.should_not be nil
|
34
|
+
TripLeg.filter(:'trip legs__kid_date'=>40475..40475, :cancel_code=>0,:leg_type_code=>7).eager_graph(:crew_legs=>:position_code).all.size.should == 3
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|