radiant-sphinx_search-extension 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sphinx_search/radius_tags.rb +2 -2
- data/radiant-sphinx_search-extension.gemspec +21 -64
- metadata +11 -31
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.5
|
@@ -132,8 +132,8 @@ module SphinxSearch
|
|
132
132
|
}
|
133
133
|
tag 'search:results:each:excerpt' do |tag|
|
134
134
|
content = case tag.attr['for']
|
135
|
-
when 'title'
|
136
|
-
when nil
|
135
|
+
when 'title' then tag.locals.page.title
|
136
|
+
when nil then tag.locals.page.parts.map(&:content).join(' ')
|
137
137
|
else tag.locals.page.part(tag.attr['for']).try(:content) || ''
|
138
138
|
end
|
139
139
|
tag.globals.results.excerpt_for(content, tag.locals.page.class)
|
@@ -1,68 +1,25 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
5
3
|
|
6
4
|
Gem::Specification.new do |s|
|
7
|
-
|
8
|
-
s.
|
9
|
-
|
10
|
-
s.
|
11
|
-
s.authors
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
|
17
|
-
|
18
|
-
s.files
|
19
|
-
"
|
20
|
-
|
21
|
-
"Rakefile",
|
22
|
-
"VERSION",
|
23
|
-
"app/models/search_page.rb",
|
24
|
-
"config/locales/en.yml",
|
25
|
-
"db/migrate/20100808155751_add_delta_to_pages.rb",
|
26
|
-
"lib/radiant-sphinx_search-extension.rb",
|
27
|
-
"lib/sphinx_search.rb",
|
28
|
-
"lib/sphinx_search/link_renderer.rb",
|
29
|
-
"lib/sphinx_search/page_context_extensions.rb",
|
30
|
-
"lib/sphinx_search/page_extensions.rb",
|
31
|
-
"lib/sphinx_search/radius_tags.rb",
|
32
|
-
"lib/tasks/sphinx_search_extension_tasks.rake",
|
33
|
-
"lib/templates/initializer.rb",
|
34
|
-
"lib/templates/sphinx.yml",
|
35
|
-
"radiant-sphinx_search-extension.gemspec",
|
36
|
-
"spec/datasets/search_pages_dataset.rb",
|
37
|
-
"spec/lib/search_radius_tags_spec.rb",
|
38
|
-
"spec/models/page_spec.rb",
|
39
|
-
"spec/spec.opts",
|
40
|
-
"spec/spec_helper.rb",
|
41
|
-
"sphinx_search_extension.rb"
|
42
|
-
]
|
43
|
-
s.homepage = %q{http://ext.radiantcms.org/extensions/15-sphinx-search}
|
44
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
5
|
+
version = File.read(File.join(File.dirname(__FILE__), 'VERSION'))
|
6
|
+
s.name = 'radiant-sphinx_search-extension'
|
7
|
+
s.version = version
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Josh French", "Kunal Shah", "Justin Blecher"]
|
10
|
+
s.email = 'josh@vitamin-j.com'
|
11
|
+
s.homepage = 'http://ext.radiantcms.org/extensions/15-sphinx-search'
|
12
|
+
s.summary = %Q{Sphinx Search Extension for Radiant CMS}
|
13
|
+
s.description = %Q{Adds fulltext search capability to Radiant content via Thinking Sphinx.}
|
14
|
+
s.add_dependency 'thinking-sphinx', '>= 1.3.3', '< 2.0.0'
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
45
19
|
s.require_paths = ["lib"]
|
46
|
-
|
47
|
-
s.
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
"spec/spec_helper.rb"
|
53
|
-
]
|
54
|
-
|
55
|
-
if s.respond_to? :specification_version then
|
56
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
57
|
-
s.specification_version = 3
|
58
|
-
|
59
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
60
|
-
s.add_runtime_dependency(%q<thinking-sphinx>, [">= 1.3.3", "< 2.0.0"])
|
61
|
-
else
|
62
|
-
s.add_dependency(%q<thinking-sphinx>, [">= 1.3.3", "< 2.0.0"])
|
63
|
-
end
|
64
|
-
else
|
65
|
-
s.add_dependency(%q<thinking-sphinx>, [">= 1.3.3", "< 2.0.0"])
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
20
|
+
|
21
|
+
s.post_install_message = %{
|
22
|
+
Add this to your radiant project with:
|
23
|
+
config.gem 'radiant-sphinx_search-extension', :version => '#{version}'
|
24
|
+
}
|
25
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-sphinx_search-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 9
|
9
|
-
- 4
|
10
|
-
version: 0.9.4
|
4
|
+
prerelease:
|
5
|
+
version: 0.9.5
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Josh French
|
@@ -17,7 +12,7 @@ autorequire:
|
|
17
12
|
bindir: bin
|
18
13
|
cert_chain: []
|
19
14
|
|
20
|
-
date:
|
15
|
+
date: 2012-01-20 00:00:00 -05:00
|
21
16
|
default_executable:
|
22
17
|
dependencies:
|
23
18
|
- !ruby/object:Gem::Dependency
|
@@ -28,30 +23,20 @@ dependencies:
|
|
28
23
|
requirements:
|
29
24
|
- - ">="
|
30
25
|
- !ruby/object:Gem::Version
|
31
|
-
hash: 29
|
32
|
-
segments:
|
33
|
-
- 1
|
34
|
-
- 3
|
35
|
-
- 3
|
36
26
|
version: 1.3.3
|
37
27
|
- - <
|
38
28
|
- !ruby/object:Gem::Version
|
39
|
-
hash: 15
|
40
|
-
segments:
|
41
|
-
- 2
|
42
|
-
- 0
|
43
|
-
- 0
|
44
29
|
version: 2.0.0
|
45
30
|
type: :runtime
|
46
31
|
version_requirements: *id001
|
47
32
|
description: Adds fulltext search capability to Radiant content via Thinking Sphinx.
|
48
|
-
email:
|
33
|
+
email: josh@vitamin-j.com
|
49
34
|
executables: []
|
50
35
|
|
51
36
|
extensions: []
|
52
37
|
|
53
|
-
extra_rdoc_files:
|
54
|
-
|
38
|
+
extra_rdoc_files: []
|
39
|
+
|
55
40
|
files:
|
56
41
|
- .gitmodules
|
57
42
|
- README.md
|
@@ -80,9 +65,9 @@ has_rdoc: true
|
|
80
65
|
homepage: http://ext.radiantcms.org/extensions/15-sphinx-search
|
81
66
|
licenses: []
|
82
67
|
|
83
|
-
post_install_message:
|
84
|
-
rdoc_options:
|
85
|
-
|
68
|
+
post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-sphinx_search-extension', :version => '0.9.5'\n "
|
69
|
+
rdoc_options: []
|
70
|
+
|
86
71
|
require_paths:
|
87
72
|
- lib
|
88
73
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -90,23 +75,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
75
|
requirements:
|
91
76
|
- - ">="
|
92
77
|
- !ruby/object:Gem::Version
|
93
|
-
hash: 3
|
94
|
-
segments:
|
95
|
-
- 0
|
96
78
|
version: "0"
|
97
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
80
|
none: false
|
99
81
|
requirements:
|
100
82
|
- - ">="
|
101
83
|
- !ruby/object:Gem::Version
|
102
|
-
hash: 3
|
103
|
-
segments:
|
104
|
-
- 0
|
105
84
|
version: "0"
|
106
85
|
requirements: []
|
107
86
|
|
108
87
|
rubyforge_project:
|
109
|
-
rubygems_version: 1.
|
88
|
+
rubygems_version: 1.6.2
|
110
89
|
signing_key:
|
111
90
|
specification_version: 3
|
112
91
|
summary: Sphinx Search Extension for Radiant CMS
|
@@ -114,4 +93,5 @@ test_files:
|
|
114
93
|
- spec/datasets/search_pages_dataset.rb
|
115
94
|
- spec/lib/search_radius_tags_spec.rb
|
116
95
|
- spec/models/page_spec.rb
|
96
|
+
- spec/spec.opts
|
117
97
|
- spec/spec_helper.rb
|