fossil 0.5.13 → 0.5.14

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.13
1
+ 0.5.14
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fossil}
8
- s.version = "0.5.13"
8
+ s.version = "0.5.14"
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"]
@@ -131,14 +131,11 @@ class CrewDuty < Sequel::Model(:'crew duty')
131
131
  # Fetches the crew duty records in a given interval
132
132
  def self.find_crew_duty_in_time_range(from_datetime, to_datetime)
133
133
  # Fetching the records verified or amended in the time interval passed in
134
- crew_duties=CrewDuty.filter(
134
+ CrewDuty.filter(
135
135
  {:verified=>1, :amended=>0, :verified_date=>from_datetime.to_fos_days, :verified_time=>(from_datetime.as_minutes..1440)} |
136
136
  {:verified=>1, :amended=>0, :verified_date=>to_datetime.to_fos_days, :verified_time=>(0..to_datetime.as_minutes)} |
137
137
  {:verified=>1, :amended=>1, :amended_date=>from_datetime.to_fos_days, :amended_time=>(from_datetime.as_minutes..1440)} |
138
138
  {:verified=>1, :amended=>1, :amended_date=>to_datetime.to_fos_days, :amended_time=>(0..to_datetime.as_minutes)}
139
139
  ).all
140
-
141
- # Extracting the meaningful values from the result set
142
- crew_duties.collect {|crew_duty| crew_duty.fill_hash([:employee_id,:duty_start_time,:duty_end_time]) }
143
140
  end
144
141
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 13
9
- version: 0.5.13
8
+ - 14
9
+ version: 0.5.14
10
10
  platform: ruby
11
11
  authors:
12
12
  - Patrick Lardin, Daniel Sudol