sunspot_mongoid 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/README.md +0 -5
- data/VERSION +1 -1
- data/lib/sunspot/mongoid.rb +1 -1
- data/lib/sunspot/rails/railtie.rb +21 -0
- data/sunspot_mongoid.gemspec +71 -0
- metadata +14 -5
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -30,11 +30,6 @@ add a gem to Gemfile as following,
|
|
30
30
|
|
31
31
|
gem 'sunspot_mongoid'
|
32
32
|
|
33
|
-
create config/initializers/sunspot_mongoid.rb,
|
34
|
-
|
35
|
-
Sunspot.session = Sunspot::Rails.build_session
|
36
|
-
ActionController::Base.module_eval { include(Sunspot::Rails::RequestLifecycle) }
|
37
|
-
|
38
33
|
### as plugin:
|
39
34
|
|
40
35
|
add gems to Gemfile as following,
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/sunspot/mongoid.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
module Sunspot
|
2
|
+
module Rails
|
3
|
+
class Railtie < ::Rails::Railtie
|
4
|
+
initializer 'sunspot_rails.init' do
|
5
|
+
Sunspot.session = Sunspot::Rails.build_session
|
6
|
+
ActiveSupport.on_load(:mongoid) do
|
7
|
+
include(Sunspot::Rails::RequestLifecycle)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
rake_tasks do
|
12
|
+
load 'sunspot/rails/tasks.rb'
|
13
|
+
end
|
14
|
+
|
15
|
+
generators do
|
16
|
+
load "generators/sunspot_rails.rb"
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{sunspot_mongoid}
|
8
|
+
s.version = "0.4.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["jugyo"]
|
12
|
+
s.date = %q{2010-09-22}
|
13
|
+
s.description = %q{A Sunspot wrapper for Mongoid that is like sunspot_rails.}
|
14
|
+
s.email = %q{jugyo.org@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.md",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"examples/example.rb",
|
27
|
+
"init.rb",
|
28
|
+
"lib/sunspot/mongoid.rb",
|
29
|
+
"lib/sunspot/rails/railtie.rb",
|
30
|
+
"lib/sunspot_mongoid.rb",
|
31
|
+
"sunspot_mongoid.gemspec",
|
32
|
+
"test/helper.rb",
|
33
|
+
"test/test_sunspot_mongoid.rb"
|
34
|
+
]
|
35
|
+
s.homepage = %q{http://github.com/jugyo/sunspot_mongoid}
|
36
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
s.rubygems_version = %q{1.3.7}
|
39
|
+
s.summary = %q{A Sunspot wrapper for Mongoid.}
|
40
|
+
s.test_files = [
|
41
|
+
"test/helper.rb",
|
42
|
+
"test/test_sunspot_mongoid.rb",
|
43
|
+
"examples/example.rb"
|
44
|
+
]
|
45
|
+
|
46
|
+
if s.respond_to? :specification_version then
|
47
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
48
|
+
s.specification_version = 3
|
49
|
+
|
50
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
|
+
s.add_runtime_dependency(%q<mongoid>, [">= 0"])
|
52
|
+
s.add_runtime_dependency(%q<sunspot>, [">= 1.1.0"])
|
53
|
+
s.add_runtime_dependency(%q<sunspot_rails>, [">= 1.1.0"])
|
54
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
55
|
+
s.add_development_dependency(%q<rr>, [">= 0"])
|
56
|
+
else
|
57
|
+
s.add_dependency(%q<mongoid>, [">= 0"])
|
58
|
+
s.add_dependency(%q<sunspot>, [">= 1.1.0"])
|
59
|
+
s.add_dependency(%q<sunspot_rails>, [">= 1.1.0"])
|
60
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
61
|
+
s.add_dependency(%q<rr>, [">= 0"])
|
62
|
+
end
|
63
|
+
else
|
64
|
+
s.add_dependency(%q<mongoid>, [">= 0"])
|
65
|
+
s.add_dependency(%q<sunspot>, [">= 1.1.0"])
|
66
|
+
s.add_dependency(%q<sunspot_rails>, [">= 1.1.0"])
|
67
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
68
|
+
s.add_dependency(%q<rr>, [">= 0"])
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 4
|
8
|
+
- 0
|
9
|
+
version: 0.4.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- jugyo
|
@@ -14,13 +14,14 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-09-22 00:00:00 +09:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: mongoid
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
24
25
|
requirements:
|
25
26
|
- - ">="
|
26
27
|
- !ruby/object:Gem::Version
|
@@ -33,6 +34,7 @@ dependencies:
|
|
33
34
|
name: sunspot
|
34
35
|
prerelease: false
|
35
36
|
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
36
38
|
requirements:
|
37
39
|
- - ">="
|
38
40
|
- !ruby/object:Gem::Version
|
@@ -47,6 +49,7 @@ dependencies:
|
|
47
49
|
name: sunspot_rails
|
48
50
|
prerelease: false
|
49
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
50
53
|
requirements:
|
51
54
|
- - ">="
|
52
55
|
- !ruby/object:Gem::Version
|
@@ -61,6 +64,7 @@ dependencies:
|
|
61
64
|
name: shoulda
|
62
65
|
prerelease: false
|
63
66
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
64
68
|
requirements:
|
65
69
|
- - ">="
|
66
70
|
- !ruby/object:Gem::Version
|
@@ -73,6 +77,7 @@ dependencies:
|
|
73
77
|
name: rr
|
74
78
|
prerelease: false
|
75
79
|
requirement: &id005 !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
76
81
|
requirements:
|
77
82
|
- - ">="
|
78
83
|
- !ruby/object:Gem::Version
|
@@ -100,7 +105,9 @@ files:
|
|
100
105
|
- examples/example.rb
|
101
106
|
- init.rb
|
102
107
|
- lib/sunspot/mongoid.rb
|
108
|
+
- lib/sunspot/rails/railtie.rb
|
103
109
|
- lib/sunspot_mongoid.rb
|
110
|
+
- sunspot_mongoid.gemspec
|
104
111
|
- test/helper.rb
|
105
112
|
- test/test_sunspot_mongoid.rb
|
106
113
|
has_rdoc: true
|
@@ -113,6 +120,7 @@ rdoc_options:
|
|
113
120
|
require_paths:
|
114
121
|
- lib
|
115
122
|
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
116
124
|
requirements:
|
117
125
|
- - ">="
|
118
126
|
- !ruby/object:Gem::Version
|
@@ -120,6 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
128
|
- 0
|
121
129
|
version: "0"
|
122
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
123
132
|
requirements:
|
124
133
|
- - ">="
|
125
134
|
- !ruby/object:Gem::Version
|
@@ -129,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
138
|
requirements: []
|
130
139
|
|
131
140
|
rubyforge_project:
|
132
|
-
rubygems_version: 1.3.
|
141
|
+
rubygems_version: 1.3.7
|
133
142
|
signing_key:
|
134
143
|
specification_version: 3
|
135
144
|
summary: A Sunspot wrapper for Mongoid.
|