timeunits 0.0.0 → 0.0.1

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/README CHANGED
@@ -2,6 +2,11 @@ NAME
2
2
 
3
3
  timeunits.rb
4
4
 
5
+ URIS
6
+
7
+ http://rubyforge.org/projects/codeforpeople/
8
+ http://codeforpeople.org/lib/ruby/
9
+
5
10
  SYNOPSIS
6
11
 
7
12
  adds methods to Numeric and Time classes to support time units and time
@@ -3,12 +3,12 @@ $__timeunits__ = File.expand_path __FILE__
3
3
 
4
4
  class Time
5
5
  module Units
6
- VERSION = "0.0.0"
6
+ VERSION = "0.0.1"
7
7
 
8
8
  def __less__() "/" end
9
9
  def __more__() "*" end
10
- def microseconds() self.send(Float(__more__,(10 ** -6))) end
11
- def milliseconds() self.send(Float(__more__,(10 ** -3))) end
10
+ def microseconds() Float(self.send(__more__,(10 ** -6))) end
11
+ def milliseconds() Float(self.send(__more__,(10 ** -3))) end
12
12
  def seconds() self end
13
13
  def minutes() seconds.send(__more__,60) end
14
14
  def hours() minutes.send(__more__,60) end
data/lib/timeunits.rb CHANGED
@@ -3,12 +3,12 @@ $__timeunits__ = File.expand_path __FILE__
3
3
 
4
4
  class Time
5
5
  module Units
6
- VERSION = "0.0.0"
6
+ VERSION = "0.0.1"
7
7
 
8
8
  def __less__() "/" end
9
9
  def __more__() "*" end
10
- def microseconds() self.send(Float(__more__,(10 ** -6))) end
11
- def milliseconds() self.send(Float(__more__,(10 ** -3))) end
10
+ def microseconds() Float(self.send(__more__,(10 ** -6))) end
11
+ def milliseconds() Float(self.send(__more__,(10 ** -3))) end
12
12
  def seconds() self end
13
13
  def minutes() seconds.send(__more__,60) end
14
14
  def hours() minutes.send(__more__,60) end
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.0
6
+ version: 0.0.1
7
7
  date: 2006-09-05 00:00:00.000000 -06:00
8
8
  summary: timeunits
9
9
  require_paths:
@@ -34,7 +34,7 @@ files:
34
34
  - gemspec.rb
35
35
  - sample
36
36
  - README
37
- - lib/timeunits-0.0.0.rb
37
+ - lib/timeunits-0.0.1.rb
38
38
  - lib/timeunits.rb
39
39
  - sample/a.rb
40
40
  test_files: []