governor_thinking_sphinx 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/README.rdoc +35 -1
- data/VERSION +1 -1
- data/governor_thinking_sphinx.gemspec +5 -5
- metadata +7 -8
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
@@ -1,6 +1,40 @@
|
|
1
1
|
= governor_thinking_sphinx
|
2
2
|
|
3
|
-
|
3
|
+
*Governor[http://carpeliam.github.com/governor/]* (named after Rod
|
4
|
+
Blagojevich) is the pluggable blogging platform for Rails, built for people
|
5
|
+
who want to build their blog into their website, not build their website into
|
6
|
+
their blog.
|
7
|
+
|
8
|
+
*governor_thinking_sphinx* is a plugin for Governor, allowing people to search
|
9
|
+
within your blog.
|
10
|
+
|
11
|
+
== Dependencies
|
12
|
+
|
13
|
+
* Governor, version 0.2.2 or higher.
|
14
|
+
* ThinkingSphinx
|
15
|
+
* ActiveRecord
|
16
|
+
|
17
|
+
== Setting Up
|
18
|
+
|
19
|
+
First, install Governor[http://carpeliam.github.com/governor/]. Then, in your
|
20
|
+
Gemfile, add the following:
|
21
|
+
|
22
|
+
gem 'governor_thinking_sphinx'
|
23
|
+
|
24
|
+
Once you've installed the gem into your app, you need to run the generator:
|
25
|
+
|
26
|
+
rails generate governor:add_thinking_sphinx [RESOURCE]
|
27
|
+
|
28
|
+
If you've only created one type of resource (which is typical), then you won't
|
29
|
+
need any arguments. Otherwise, you'll need to specify which model you want to
|
30
|
+
add searching to. This will create a migration to enable your article class to
|
31
|
+
support delta indexing.
|
32
|
+
|
33
|
+
== Usage
|
34
|
+
|
35
|
+
The current version does not have a built-in view for searching. The best
|
36
|
+
example is in the
|
37
|
+
spec[https://github.com/carpeliam/governor_thinking_sphinx/blob/master/spec/rails_app/app/views/layouts/application.html.erb#L21].
|
4
38
|
|
5
39
|
== Contributing to governor_thinking_sphinx
|
6
40
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{governor_thinking_sphinx}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Liam Morley"]
|
12
|
-
s.date = %q{2011-04-
|
12
|
+
s.date = %q{2011-04-12}
|
13
13
|
s.description = %q{A plugin for the Rails 3-based Governor blogging system that adds ThinkingSphinx search functionality to a blog.}
|
14
14
|
s.email = %q{liam@carpeliam.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -134,7 +134,7 @@ Gem::Specification.new do |s|
|
|
134
134
|
|
135
135
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
136
136
|
s.add_runtime_dependency(%q<governor>, ["= 0.2.2"])
|
137
|
-
s.add_runtime_dependency(%q<thinking-sphinx>, ["
|
137
|
+
s.add_runtime_dependency(%q<thinking-sphinx>, ["~> 2.0"])
|
138
138
|
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
139
139
|
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
140
140
|
s.add_development_dependency(%q<rspec-rails>, [">= 0"])
|
@@ -149,7 +149,7 @@ Gem::Specification.new do |s|
|
|
149
149
|
s.add_development_dependency(%q<mysql2>, [">= 0"])
|
150
150
|
else
|
151
151
|
s.add_dependency(%q<governor>, ["= 0.2.2"])
|
152
|
-
s.add_dependency(%q<thinking-sphinx>, ["
|
152
|
+
s.add_dependency(%q<thinking-sphinx>, ["~> 2.0"])
|
153
153
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
154
154
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
155
155
|
s.add_dependency(%q<rspec-rails>, [">= 0"])
|
@@ -165,7 +165,7 @@ Gem::Specification.new do |s|
|
|
165
165
|
end
|
166
166
|
else
|
167
167
|
s.add_dependency(%q<governor>, ["= 0.2.2"])
|
168
|
-
s.add_dependency(%q<thinking-sphinx>, ["
|
168
|
+
s.add_dependency(%q<thinking-sphinx>, ["~> 2.0"])
|
169
169
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
170
170
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
171
171
|
s.add_dependency(%q<rspec-rails>, [">= 0"])
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: governor_thinking_sphinx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Liam Morley
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-12 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -41,14 +41,13 @@ dependencies:
|
|
41
41
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
|
-
- -
|
44
|
+
- - ~>
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
hash:
|
46
|
+
hash: 3
|
47
47
|
segments:
|
48
48
|
- 2
|
49
49
|
- 0
|
50
|
-
|
51
|
-
version: 2.0.0
|
50
|
+
version: "2.0"
|
52
51
|
requirement: *id002
|
53
52
|
- !ruby/object:Gem::Dependency
|
54
53
|
type: :development
|