From ba33dfec573e5ceedc7de5cc0f394c9294155568 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 11 Aug 2010 13:51:21 +0300 Subject: [PATCH 1/2] added min and sec aliases to minutes and seconds methods respectively to Numeric for unit consitency --- lib/time_ext.rb | 1 + lib/time_ext/core_ext/numeric.rb | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 lib/time_ext/core_ext/numeric.rb diff --git a/lib/time_ext.rb b/lib/time_ext.rb index 6cea5ce..0b59b37 100644 --- a/lib/time_ext.rb +++ b/lib/time_ext.rb @@ -5,3 +5,4 @@ require 'time_ext/calculations' require 'time_ext/iterations' require 'time_ext/support' require 'time_ext/core_ext/time' +require 'time_ext/core_ext/numeric' diff --git a/lib/time_ext/core_ext/numeric.rb b/lib/time_ext/core_ext/numeric.rb new file mode 100644 index 0000000..e7c112c --- /dev/null +++ b/lib/time_ext/core_ext/numeric.rb @@ -0,0 +1,4 @@ +class Numeric + alias :sec :seconds + alias :min :minutes +end From 74574beaf003a30f2c30fb7939f9ed3ece66ca3e Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 11 Aug 2010 13:51:50 +0300 Subject: [PATCH 2/2] Version bump to 0.2.4 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 7179039..abd4105 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.3 +0.2.4