From ea4acb92f3828e9b1b14b42b869156c45851058a Mon Sep 17 00:00:00 2001 From: Esteban Pastorino Date: Thu, 20 Jan 2011 16:52:23 -0300 Subject: [PATCH] require activesupport 3, because of array#sum, hash#reverse_merge and others --- Rakefile | 2 +- lib/classifier.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index dbc6742..b315f79 100644 --- a/Rakefile +++ b/Rakefile @@ -11,7 +11,7 @@ begin s.author = "Luis Parravicini" s.email = "lparravi@gmail.com" - s.add_dependency "activesupport", ">= 2.2.2" + s.add_dependency "activesupport", ">= 3.0.0" s.add_dependency "ruby-stemmer", ">= 0.5.1" end rescue LoadError diff --git a/lib/classifier.rb b/lib/classifier.rb index 250ff65..03795ae 100644 --- a/lib/classifier.rb +++ b/lib/classifier.rb @@ -25,6 +25,7 @@ # License:: LGPL require 'active_support' +require 'active_support/core_ext' require 'lingua/stemmer' require 'classifier/base' require 'classifier/bayes'