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 CHANGED
@@ -1 +1 @@
1
- 0.5.5
1
+ 0.5.6
data/fossil.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fossil}
8
- s.version = "0.5.5"
8
+ s.version = "0.5.6"
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"]
@@ -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
@@ -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
- dbr_lib_dir = File.join(File.dirname(__FILE__),'..','lib','dbr_fos_models')
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
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 5
9
- version: 0.5.5
8
+ - 6
9
+ version: 0.5.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Patrick Lardin, Daniel Sudol