fossil 0.5.22 → 0.5.23

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 CHANGED
@@ -1 +1 @@
1
- 0.5.22
1
+ 0.5.23
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.5.22"
8
+ s.version = "0.5.23"
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-21}
12
+ s.date = %q{2011-01-20}
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.extra_rdoc_files = [
data/lib/fossil_dbr.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  # require the dbr models files that rewrite the model associations
2
- Dir.glob(File.join(File.dirname(__FILE__),'dbr_models' , '*.rb')).each{|f| require_relative f}
2
+ Dir.glob('dbr_models/*.rb').each{|f| require f}
@@ -11,7 +11,7 @@ module Sequel
11
11
  db = Sequel.mysql(opts)
12
12
  db.extend(MySql::Pervasive::DatabaseMethods)
13
13
  # require the dbr libs
14
- Dir.glob(File.join(File.dirname(__FILE__),'..','dbr_models' , '*.rb')).each{|f| require_relative f}
14
+ Dir.glob('../dbr_models*.rb').each{|f| require f}
15
15
  db
16
16
  end
17
17
 
data/spec/silly_spec.rb CHANGED
@@ -12,9 +12,11 @@ DB = Sequel.fos('fosprod', :loggers=>[Logger.new($stdout)])
12
12
  #date = Date.today - 1
13
13
  #pp CrewDuty.find_crew_duty_in_time_range(date, date).collect{|v| [v.duty_start_time.to_s, v.duty_end_time.to_s, v.amended, v.amended_date, v.verified_date] }
14
14
 
15
- [Personnel,ACQualification,Code].each{|m| m.db=DB}
16
- p ACQualification.first
17
- p Personnel.first(:employee_id=>'COXD').ac_qualifications.find{|ac| ac.aircraft_type_id='C750'}
15
+ [CrewDuty].each{|m| m.db=DB}
16
+ p CrewDuty.count
17
+ #[Personnel,ACQualification,Code].each{|m| m.db=DB}
18
+ #p ACQualification.first
19
+ #p Personnel.first(:employee_id=>'COXD').ac_qualifications.find{|ac| ac.aircraft_type_id='C750'}
18
20
 
19
21
  #ACQualification.filter(:aircraft_type_id=>'C750')
20
22
  #p per.ac_qualifications.first.aircraft_type_id
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 22
9
- version: 0.5.22
8
+ - 23
9
+ version: 0.5.23
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-12-21 00:00:00 -08:00
17
+ date: 2011-01-20 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency