fossil 0.3.22 → 0.3.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/fossil.gemspec +2 -2
  3. data/lib/sequel/fos_dates.rb +10 -5
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.22
1
+ 0.3.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.3.22"
8
+ s.version = "0.3.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-03-08}
12
+ s.date = %q{2010-03-10}
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 = [
@@ -30,20 +30,25 @@ module TimeFunctions
30
30
  BigDecimal.new(val, 2).round(1).to_s
31
31
  end
32
32
 
33
- def in_hundredths_rounded_XOJET_style
33
+ # xos is rounding XOJET STYLE, which is a funky copy of how ipc did it
34
+ def in_hundredths_rounded_xos
34
35
  return 0 if hour + min == 0
35
36
  # It was determined that "ODD" increments of .05 (ie .15, .35, .55, .75, .95) of an hour (ie. 9,21,33,45,57 minutes) rounded UP whereas even increments of .05 rounded DOWN - sn
36
- minutes = hour*60 + min
37
+ minutes = as_minutes
37
38
  (minutes/60.0 + ([9, 21, 33, 45, 57].include?( min ) ? 0.001 : -0.001)).round(2)
38
- #minutes/60.0
39
39
  end
40
40
 
41
- def in_tenths_rounded_XOJET_style
41
+ # xos is rounding XOJET STYLE, which is a funky copy of how ipc did it
42
+ def in_tenths_rounded_xos
42
43
  return 0 if hour + min == 0
43
44
  # It was determined that "ODD" increments of .05 (ie .15, .35, .55, .75, .95) of an hour (ie. 9,21,33,45,57 minutes) rounded UP whereas even increments of .05 rounded DOWN - sn
44
- minutes = hour*60 + min
45
+ minutes = as_minutes
45
46
  (minutes/60.0 + ([9, 21, 33, 45, 57].include?( min ) ? 0.01 : -0.01)).round(1)
46
47
  end
48
+
49
+ def hm
50
+ to_s(:hm)
51
+ end
47
52
  end
48
53
 
49
54
  module ClassMethods
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.22
4
+ version: 0.3.23
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-08 00:00:00 -08:00
12
+ date: 2010-03-10 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency