timeunits 0.0.1 → 0.0.2
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/lib/{timeunits-0.0.1.rb → timeunits-0.0.2.rb} +2 -1
- data/lib/timeunits.rb +2 -1
- metadata +2 -2
@@ -15,7 +15,8 @@ $__timeunits__ = File.expand_path __FILE__
|
|
15
15
|
def days() hours.send(__more__,24) end
|
16
16
|
def weeks() days.send(__more__,7) end
|
17
17
|
def months() weeks.send(__more__,4) end
|
18
|
-
def years() months.send(__more__,12) end
|
18
|
+
#def years() months.send(__more__,12) end
|
19
|
+
def years() days.send(__more__,365) end
|
19
20
|
def decades() years.send(__more__,10) end
|
20
21
|
def centuries() decades.send(__more__,10) end
|
21
22
|
instance_methods.select{|m| m !~ /__/}.each do |plural|
|
data/lib/timeunits.rb
CHANGED
@@ -15,7 +15,8 @@ $__timeunits__ = File.expand_path __FILE__
|
|
15
15
|
def days() hours.send(__more__,24) end
|
16
16
|
def weeks() days.send(__more__,7) end
|
17
17
|
def months() weeks.send(__more__,4) end
|
18
|
-
def years() months.send(__more__,12) end
|
18
|
+
#def years() months.send(__more__,12) end
|
19
|
+
def years() days.send(__more__,365) end
|
19
20
|
def decades() years.send(__more__,10) end
|
20
21
|
def centuries() decades.send(__more__,10) end
|
21
22
|
instance_methods.select{|m| m !~ /__/}.each do |plural|
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: timeunits
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
6
|
+
version: 0.0.2
|
7
7
|
date: 2006-09-05 00:00:00.000000 -06:00
|
8
8
|
summary: timeunits
|
9
9
|
require_paths:
|
@@ -34,8 +34,8 @@ files:
|
|
34
34
|
- gemspec.rb
|
35
35
|
- sample
|
36
36
|
- README
|
37
|
-
- lib/timeunits-0.0.1.rb
|
38
37
|
- lib/timeunits.rb
|
38
|
+
- lib/timeunits-0.0.2.rb
|
39
39
|
- sample/a.rb
|
40
40
|
test_files: []
|
41
41
|
rdoc_options: []
|