hunt 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'bson_ext', '1.1.5', :require => false
3
+ gem 'bson_ext', :require => false
4
4
 
5
5
  gemspec
6
6
 
7
7
  gem 'i18n'
8
+ gem 'rake'
@@ -1,29 +1,37 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hunt (0.2)
4
+ hunt (0.4)
5
5
  fast-stemmer (~> 1.0)
6
- mongo_mapper (~> 0.8.6)
6
+ mongo_mapper (~> 0.9.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- activesupport (3.0.3)
12
- bson (1.1.5)
13
- bson_ext (1.1.5)
11
+ activemodel (3.1.0)
12
+ activesupport (= 3.1.0)
13
+ bcrypt-ruby (~> 3.0.0)
14
+ builder (~> 3.0.0)
15
+ i18n (~> 0.6)
16
+ activesupport (3.1.0)
17
+ multi_json (~> 1.0)
18
+ bcrypt-ruby (3.0.1)
19
+ bson (1.3.1)
20
+ bson_ext (1.3.1)
21
+ builder (3.0.0)
14
22
  diff-lcs (1.1.2)
15
23
  fast-stemmer (1.0.0)
16
- i18n (0.4.2)
17
- jnunemaker-validatable (1.8.4)
18
- activesupport (>= 2.3.4)
19
- mongo (1.1.5)
20
- bson (>= 1.1.5)
21
- mongo_mapper (0.8.6)
22
- activesupport (>= 2.3.4)
23
- jnunemaker-validatable (~> 1.8.4)
24
- plucky (~> 0.3.6)
25
- plucky (0.3.6)
26
- mongo (~> 1.1)
24
+ i18n (0.6.0)
25
+ mongo (1.3.1)
26
+ bson (>= 1.3.1)
27
+ mongo_mapper (0.9.2)
28
+ activemodel (~> 3.0)
29
+ activesupport (~> 3.0)
30
+ plucky (~> 0.3.8)
31
+ multi_json (1.0.3)
32
+ plucky (0.3.8)
33
+ mongo (~> 1.3)
34
+ rake (0.9.2)
27
35
  rspec (2.3.0)
28
36
  rspec-core (~> 2.3.0)
29
37
  rspec-expectations (~> 2.3.0)
@@ -37,9 +45,8 @@ PLATFORMS
37
45
  ruby
38
46
 
39
47
  DEPENDENCIES
40
- bson_ext (= 1.1.5)
41
- fast-stemmer (~> 1.0)
48
+ bson_ext
42
49
  hunt!
43
50
  i18n
44
- mongo_mapper (~> 0.8.6)
51
+ rake
45
52
  rspec (~> 2.3)
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.description = %q{Really basic search for MongoMapper models.}
14
14
 
15
15
  s.add_dependency 'fast-stemmer', '~> 1.0'
16
- s.add_dependency 'mongo_mapper', '~> 0.8.6'
16
+ s.add_dependency 'mongo_mapper', '~> 0.9.0'
17
17
 
18
18
  s.add_development_dependency 'rspec', '~> 2.3'
19
19
 
@@ -3,8 +3,10 @@ require 'mongo_mapper'
3
3
  require 'hunt/util'
4
4
 
5
5
  module Hunt
6
- def self.configure(model)
7
- model.before_save(:index_search_terms)
6
+ extend ActiveSupport::Concern
7
+
8
+ included do
9
+ before_save(:index_search_terms)
8
10
  end
9
11
 
10
12
  module ClassMethods
@@ -1,3 +1,3 @@
1
1
  module Hunt
2
- VERSION = "0.3"
2
+ VERSION = "0.4"
3
3
  end
@@ -8,7 +8,7 @@ Bundler.require(:default, :development)
8
8
  require 'hunt'
9
9
 
10
10
  MongoMapper.connection = Mongo::Connection.new
11
- MongoMapper.database = 'hunt-test'
11
+ MongoMapper.database = 'test'
12
12
 
13
13
  Rspec.configure do |c|
14
14
  c.before(:each) do
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hunt
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease: false
4
+ hash: 3
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
9
- version: "0.3"
8
+ - 4
9
+ version: "0.4"
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Nunemaker
@@ -14,8 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-29 00:00:00 -05:00
18
- default_executable:
17
+ date: 2011-09-17 00:00:00 Z
19
18
  dependencies:
20
19
  - !ruby/object:Gem::Dependency
21
20
  name: fast-stemmer
@@ -40,12 +39,12 @@ dependencies:
40
39
  requirements:
41
40
  - - ~>
42
41
  - !ruby/object:Gem::Version
43
- hash: 51
42
+ hash: 59
44
43
  segments:
45
44
  - 0
46
- - 8
47
- - 6
48
- version: 0.8.6
45
+ - 9
46
+ - 0
47
+ version: 0.9.0
49
48
  type: :runtime
50
49
  version_requirements: *id002
51
50
  - !ruby/object:Gem::Dependency
@@ -89,7 +88,6 @@ files:
89
88
  - spec/hunt/util_spec.rb
90
89
  - spec/hunt_spec.rb
91
90
  - specs.watchr
92
- has_rdoc: true
93
91
  homepage: http://github.com/jnunemaker/hunt
94
92
  licenses: []
95
93
 
@@ -119,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
117
  requirements: []
120
118
 
121
119
  rubyforge_project:
122
- rubygems_version: 1.3.7
120
+ rubygems_version: 1.8.9
123
121
  signing_key:
124
122
  specification_version: 3
125
123
  summary: Really basic search for MongoMapper models.