fossil 0.3.31 → 0.3.32

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.31
1
+ 0.3.32
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.31"
8
+ s.version = "0.3.32"
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-03-23}
12
+ s.date = %q{2010-04-01}
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 = [
@@ -676,12 +676,12 @@ class TripLeg < Sequel::Model(:'trip legs')
676
676
  column_view :dept_date_act_home, :date, :actual_departure_date_base
677
677
  column_view :depart_time_act_home, :time, :actual_departure_time_base
678
678
  column_def_datetime :actual_departure_date_time_base_old, :'dept date act home', :'depart time act home'
679
- def actual_departure_date_time_base() actual_departure_date_time_gmt + (home_tz_gmt_offset/240); end
679
+ def actual_departure_date_time_base() actual_departure_date_time_gmt + (home_tz_gmt_offset/10).hours; end
680
680
 
681
681
  column_view :arr_date_act_home, :date, :actual_arrival_date_base
682
682
  column_view :arrival_time_act_hom, :time, :actual_arrival_time_base
683
683
  column_def_datetime :actual_arrival_date_time_base_old, :'arr date act home', :'arrival time act hom'
684
- def actual_arrival_date_time_base() actual_arrival_date_time_gmt + (home_tz_gmt_offset/240); end
684
+ def actual_arrival_date_time_base() actual_arrival_date_time_gmt + (home_tz_gmt_offset/10).hours; end
685
685
 
686
686
  column_view :ete, :time
687
687
  column_view :eft, :time
@@ -721,12 +721,11 @@ class TripLeg < Sequel::Model(:'trip legs')
721
721
  # icao's that you make are valid icao codes, but you can't search the airport based it, since these
722
722
  # airport rows don't have an icao code at all, they only have the prefix and airport_id. whacky.
723
723
  def departure_icao_val
724
- departure_icao.blank? ? depart_ap_prefix + depart_airport_id : ''
724
+ departure_icao == nil || departure_icao.blank? ? depart_ap_prefix + depart_airport_id : departure_icao
725
725
  end
726
726
 
727
- # same comment as above
728
727
  def arrival_icao_val
729
- arrival_icao.blank? ? arrival_ap_prefix + arrival_airport_id : ''
728
+ arrival_icao == nil || arrival_icao.blank? ? arrival_ap_prefix + arrival_airport_id : arrival_icao
730
729
  end
731
730
 
732
731
  def departure_icao_expanded
@@ -189,11 +189,9 @@ class Sequel::Model
189
189
  column_value = send(column_name)
190
190
  case type
191
191
  when :date
192
- Date.from_fos_days(column_value)
193
- # Date.from_fos_days(column_value) if column_value
192
+ Date.from_fos_days(column_value) if column_value
194
193
  when :time
195
- Time.from_fos_time(column_value)
196
- # Time.utc(2000,1,1) + column_value.minutes if column_value
194
+ Time.from_fos_time(column_value) if column_value
197
195
  when :currency
198
196
  number_to_currency( (column_value || 0).to_f/100, :unit=>'', :precision=>2)
199
197
  when :precision
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.31
4
+ version: 0.3.32
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-03-23 00:00:00 -07:00
12
+ date: 2010-04-01 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency