aq1018-sunspot_mongoid 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{aq1018-sunspot_mongoid}
8
- s.version = "0.4.0"
8
+ s.version = "0.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jugyo", "aq1018"]
12
- s.date = %q{2011-02-15}
12
+ s.date = %q{2011-02-16}
13
13
  s.description = %q{A Sunspot wrapper for Mongoid that is like sunspot_rails.}
14
14
  s.email = %q{jugyo.org@gmail.com aq1018@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -38,10 +38,7 @@ module Sunspot
38
38
  # The sunspot solr_index method is very dependent on ActiveRecord, so
39
39
  # we'll change it to work more efficiently with Mongoid.
40
40
  def solr_index(opt={})
41
- all.each do |m|
42
- Sunspot.index(m)
43
- end
44
- Sunspot.commit
41
+ Sunspot.index!(all)
45
42
  end
46
43
  end
47
44
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: aq1018-sunspot_mongoid
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.5.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - jugyo
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-02-15 00:00:00 -08:00
14
+ date: 2011-02-16 00:00:00 -08:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency