Permalink
Browse files

Updated for MM 0.9 series.

  • Loading branch information...
1 parent a4e1e5e commit dd636caef6a9c46fd511b04754f7fcc5d68d2674 @jnunemaker committed Sep 17, 2011
Showing with 33 additions and 23 deletions.
  1. +2 −1 Gemfile
  2. +26 −19 Gemfile.lock
  3. +1 −1 hunt.gemspec
  4. +4 −2 lib/hunt.rb
View
@@ -1,7 +1,8 @@
source "http://rubygems.org"
-gem 'bson_ext', '1.1.5', :require => false
+gem 'bson_ext', :require => false
gemspec
gem 'i18n'
+gem 'rake'
View
@@ -1,29 +1,37 @@
PATH
remote: .
specs:
- hunt (0.2)
+ hunt (0.3)
fast-stemmer (~> 1.0)
- mongo_mapper (~> 0.8.6)
+ mongo_mapper (~> 0.9.0)
GEM
remote: http://rubygems.org/
specs:
- activesupport (3.0.3)
- bson (1.1.5)
- bson_ext (1.1.5)
+ activemodel (3.1.0)
+ activesupport (= 3.1.0)
+ bcrypt-ruby (~> 3.0.0)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activesupport (3.1.0)
+ multi_json (~> 1.0)
+ bcrypt-ruby (3.0.1)
+ bson (1.3.1)
+ bson_ext (1.3.1)
+ builder (3.0.0)
diff-lcs (1.1.2)
fast-stemmer (1.0.0)
- i18n (0.4.2)
- jnunemaker-validatable (1.8.4)
- activesupport (>= 2.3.4)
- mongo (1.1.5)
- bson (>= 1.1.5)
- mongo_mapper (0.8.6)
- activesupport (>= 2.3.4)
- jnunemaker-validatable (~> 1.8.4)
- plucky (~> 0.3.6)
- plucky (0.3.6)
- mongo (~> 1.1)
+ i18n (0.6.0)
+ mongo (1.3.1)
+ bson (>= 1.3.1)
+ mongo_mapper (0.9.2)
+ activemodel (~> 3.0)
+ activesupport (~> 3.0)
+ plucky (~> 0.3.8)
+ multi_json (1.0.2)
+ plucky (0.3.8)
+ mongo (~> 1.3)
+ rake (0.9.2)
rspec (2.3.0)
rspec-core (~> 2.3.0)
rspec-expectations (~> 2.3.0)
@@ -37,9 +45,8 @@ PLATFORMS
ruby
DEPENDENCIES
- bson_ext (= 1.1.5)
- fast-stemmer (~> 1.0)
+ bson_ext
hunt!
i18n
- mongo_mapper (~> 0.8.6)
+ rake
rspec (~> 2.3)
View
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
s.description = %q{Really basic search for MongoMapper models.}
s.add_dependency 'fast-stemmer', '~> 1.0'
- s.add_dependency 'mongo_mapper', '~> 0.8.6'
+ s.add_dependency 'mongo_mapper', '~> 0.9.0'
s.add_development_dependency 'rspec', '~> 2.3'
View
@@ -3,8 +3,10 @@
require 'hunt/util'
module Hunt
- def self.configure(model)
- model.before_save(:index_search_terms)
+ extend ActiveSupport::Concern
+
+ included do
+ before_save(:index_search_terms)
end
module ClassMethods

0 comments on commit dd636ca

Please sign in to comment.