[ditz-talk] [PATCH] ruby1.9 fix: SHA1 -> Digest::SHA1

Alexander Neumann alexander at bumpern.de
Wed Dec 2 08:28:18 EST 2009


Hi,

Here is another small fix for ruby1.9

Cheers,
- Alex

---
 lib/ditz/model-objects.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/ditz/model-objects.rb b/lib/ditz/model-objects.rb
index 7b3298d..65e1bda 100644
--- a/lib/ditz/model-objects.rb
+++ b/lib/ditz/model-objects.rb
@@ -215,7 +215,7 @@ class Issue < ModelObject

   ## make a unique id
   def make_id config, project
-    SHA1.hexdigest [Time.now, rand, creation_time, reporter, title, desc].join("\n")
+    Digest::SHA1.hexdigest [Time.now, rand, creation_time, reporter, title, desc].join("\n")
   end

   def sort_order; [STATUS_SORT_ORDER[status], creation_time] end
-- 
1.6.3.3


More information about the ditz-talk mailing list